May 18, 2005 #1 CaKiwi Programmer Apr 8, 2001 1,294 US int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { HWND hwnd; //What do I put here to get the handle of a window I can pass to the test1 routine test1(hwnd); return 0; } CaKiwi
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { HWND hwnd; //What do I put here to get the handle of a window I can pass to the test1 routine test1(hwnd); return 0; } CaKiwi
May 18, 2005 Thread starter #2 CaKiwi Programmer Apr 8, 2001 1,294 US I passed it a NULL and it seemed happy with that CaKiwi Upvote 0 Downvote
May 20, 2005 #3 CodingNovice Programmer Dec 30, 2003 108 GB You get your HWND from CreateWindow() or CreateWindowEx(). Get the parameter information from your helpfiles. Upvote 0 Downvote
You get your HWND from CreateWindow() or CreateWindowEx(). Get the parameter information from your helpfiles.