How my window keep focus ?
-
Hi every body, I use this code to stay my window on top :
::SetWindowPos(m_hWnd ,HWND_TOPMOST,294,251,415,240,SWP_SHOWWINDOW);
is there any way so that my window keep alwas the focus? Thanks in advance Georges -
Hi every body, I use this code to stay my window on top :
::SetWindowPos(m_hWnd ,HWND_TOPMOST,294,251,415,240,SWP_SHOWWINDOW);
is there any way so that my window keep alwas the focus? Thanks in advance GeorgesYou could try resetting the focus back to your window in its onfocus() event, but I'm not entirely sure it will work. Besides, a window that always has the focus will irritate an awful lot of users. The purpose of Windows is to allow users to switch to other tasks. To deliberately break this model will frustrate and anger many users...