|
From: Dreamjunky <li...@dr...> - 2002-12-05 19:21:47
|
Okay everybody, here's my newest problem. I can't figure it out. I =
could of course solve it by not using a variable and taking up more =
space.. but I'm just plain curious now. I'm calling CreateWindow and =
instead of having all the styles in the function call I wanted to put =
them into a DWORD first and pass that in. I attempted to do so with the =
following code:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
DWORD style =3D WS_CHILD | WS_VISIBLE;
CreateWindow(TEXT("EDIT"), NULL, style , 0, 0, CW_USEDEFAULT, =
CW_USEDEFAULT, handle, (HMENU) FIELD_URL, NULL, NULL);
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
Of course, it has more styles than that, but you don't need to see them =
all. At any rate, when I try to compile this is my error:
Improper use of typedef 'DWORD' in function WndProc
Statement missing ; in function WndProc
Undefined symbol 'style' in function WndProc
Any ideas? I tried playing around with putting parenthesis around it, =
seperating the declaration and assignment into two statements.... no =
dice either way. I could really use some help on this. Thanks
Tvienti
|