|
From: Dreamjunky <li...@dr...> - 2002-12-06 02:26:24
|
> It looks like compiler doesn't see what DWORD is... have you included
> windows.h??? DWORD is defind in one of other headers included from
> <windows.h>, exactly in <windef.h> as:
> typedef unsigned long DWORD;
>
Hello again,
Yeah I have windows included. And if anybody needs it, here's the entire
function that the code's in:
========================================
LRESULT CALLBACK WndProc(HWND handle, UINT msg, WPARAM wp, LPARAM lp) {
switch(msg) {
case WM_CREATE: // create
DWORD style;
style = (WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL | WS_BORDER |
ES_LEFT | ES_AUTOHSCROLL | ES_AUTOVSCROLL);
CreateWindow(TEXT("EDIT"), NULL, style , 0, 0, CW_USEDEFAULT,
CW_USEDEFAULT, handle, (HMENU) FIELD_URL, NULL, NULL);
case WM_DESTROY: // close
PostQuitMessage(0);
return 0;
default: // default
return DefWindowProc(handle,msg,wp,lp);
break;
}
}
=======================================
Doesn't look to pretty in email but any ideas I'd greatly appreciate. I'm
still stumped (for two days now)
Thanks
Tvienti
|