I am using this code
to create a child window. Everything works fine, except for the fact that every time my child (or one of my child's children) gets focus, it looses it in a couple of seconds. Why is this?Code:DWORD WINAPI aeThread(LPVOID lpVoid) { HWND hwnd = CreateWindowEx(0, "AEdit", "In-program Editor", WS_VISIBLE | WS_CAPTION | WS_THICKFRAME, 100, 100, 600, 370, HWND(lpVoid), NULL, GetModuleHandle(NULL), NULL); if(!hwnd) Quit(0, "Creation of AEdit window failed."); MSG aeMes; ZeroMemory(&aeMes, sizeof(MSG)); while(GetMessage(&aeMes, NULL, 0, 0)) { TranslateMessage(&aeMes); DispatchMessage(&aeMes); } return 0; }



LinkBack URL
About LinkBacks


