HWND child = GetFirstChild( mHwnd ); if( child ) { SetFocus( child ); }
LRESULT WndProc(HWND h,int m,WPARAM w,LPARAM l){ switch(m) { case WM_ACTIVATE: if(w) SetFocus(GetWindow(h,GW_HWNDCHILD)); return 0; } return DefWindowProc(h,m,w,l);}
while(GetMessage(&msg,0,0,0)) { if(!IsDialogMessage(hwnd,&msg)) { .. .. } }
SetFocus(hChild);
WM_ACTIVATE
WM_MOUSEACTIVATE
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)