|
From: Bosso <han...@gm...> - 2002-12-05 20:05:18
|
Could you send some more code.
Hannes
On Thu, 5 Dec 2002 14:20:55 -0500
"Dreamjunky" <li...@dr...> wrote:
> 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:
>
> =====================================================
> DWORD style = WS_CHILD | WS_VISIBLE;
>
> CreateWindow(TEXT("EDIT"), NULL, style , 0, 0, CW_USEDEFAULT, CW_USEDEFAULT, handle, (HMENU) FIELD_URL, NULL, NULL);
> =====================================================
>
> 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
>
|