About window loses focus still get keyboard input...
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Bikram Singh,by using WM_NCACTIVATE as you tell me,my program seems to be OK,but it seems to be a visual effect.My target(Windows Media Player) still loses focus when I click a button on my dialog. Please tell me more about this.
-
Bikram Singh,by using WM_NCACTIVATE as you tell me,my program seems to be OK,but it seems to be a visual effect.My target(Windows Media Player) still loses focus when I click a button on my dialog. Please tell me more about this.
Why not save the hwnd of the media player? This way, when u press a button in your app, u can, before sending keystrokes, make the Media player window focused by using SetFocus() Bikram Singh