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
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.
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
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
1978 Silver Anniversary Corvette