Home > Software engineering >  WS_EX_NOACTIVATE failure style window
WS_EX_NOACTIVATE failure style window

Time:09-22

I created WS_EX_NOACTIVATE style window, similar to the soft keyboard. Pop up, does not use focus. But if the main window has a MessageBox pop-up, the homemade soft keyboard window will be failure, into normal window, which is started to grab focus. Only close it, open it again. Excuse me what method can solve?

CodePudding user response:

Whether you need AttachThreadInput ?

CodePudding user response:

MessageBox
After add
WM_CANCELMODE?

CodePudding user response:

Or
Int CSKWindow: : onm ouseActivate (CWnd * pDesktopWnd, UINT nHitTest, UINT message)
{
//TODO: Add your message handler code here and/or call the default
Return MA_NOACTIVATEANDEAT;
}
  • Related