Im trying to add a Edit box control and a enter button to like the bottom of an SDI application......i'm new to programming in windows and would perfer to do this in API.....could someone point me in the right direction.....thanks alot
Printable View
Im trying to add a Edit box control and a enter button to like the bottom of an SDI application......i'm new to programming in windows and would perfer to do this in API.....could someone point me in the right direction.....thanks alot
For edit box:
CreateWindow(
"edit",
"Text",
WS_CHILD | WS_VISIBLE | WS_BORDER,
x_position,
y_position,
length,
width,
hWnd, // handle to main window
(HMENU)1,
hInst, // program's instance handler
NULL
);
For a button:
CreateWindow(
"button",
"Text",
WS_CHILD | WS_VISIBLE,
x_position,
y_position,
length,
width,
hWnd, // handle to main window
(HMENU)1,
hInst, // program's instance handler
NULL
);
I hope this helps.:cool:
Yes, SyntaxBubble is correct. All these controls you are using are simply windows (child windows, to be specific). They just look different. Good luck!
--Garfield