Re: [Dev-C++] Probably an easy problem, but stil,l I need help
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <cg...@wo...> - 2003-01-21 11:39:24
|
When yo need one:
HWND hEdit;
...
hEdit =3D CreateWindowEx(dwExStyles,
"edit",
"",
WS_VISIBLE | other dwStyles,
upperleft.x coordinate in=20
relation to the window, =20
upperleft.y,
width, =20
height,
hwnd (of the parent),
ID of the control,
hInstance of the program,
0 (LPVOID to window creation=20
data));
If you haven'tWS_VISIBLE, then you can use ShowWindow(hEdit, SW_SHOW);=20
when you want it to be visible. and ShowWindow(hEdit, SW_HIDE); for hide=20
it. (You can retrieve the edit control handle with GetDlgItem(hwnd=20
(handle of parent window), ID of the edit);
Johan H=F6rnell wrote:
> Hi Everbody.
> I'm wonder=EDng one thing.
> Hown shall I do to get an TEXTEDIT control in my program,
> I have seen many turtorials out ther, but none of these have worked.=20
> They all compile well and works well, but when I use the code in my=20
> program, you can not see any control, might that because of my=20
> backround picture? I have tried to remove it but that doesn't help!
> =20
> What shall I do?
> =20
> Please Help me!
> =20
> Regards Johan H=F6rnell
|