Click here to Skip to main content
16,005,552 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to catch mouse in picture control Pin
zon_cpp9-Oct-06 0:14
zon_cpp9-Oct-06 0:14 
GeneralRe: how to catch mouse in picture control Pin
hansen.Xue9-Oct-06 19:39
hansen.Xue9-Oct-06 19:39 
GeneralRe: how to catch mouse in picture control Pin
zon_cpp9-Oct-06 20:20
zon_cpp9-Oct-06 20:20 
GeneralRe: how to catch mouse in picture control Pin
hansen.Xue9-Oct-06 21:23
hansen.Xue9-Oct-06 21:23 
AnswerRe: how to catch mouse in picture control Pin
Hamid_RT8-Oct-06 7:13
Hamid_RT8-Oct-06 7:13 
GeneralRe: how to catch mouse in picture control Pin
hansen.Xue8-Oct-06 17:04
hansen.Xue8-Oct-06 17:04 
GeneralRe: how to catch mouse in picture control Pin
Hamid_RT9-Oct-06 19:38
Hamid_RT9-Oct-06 19:38 
QuestionHow to completely suppress a window? Pin
jipai7-Oct-06 20:48
jipai7-Oct-06 20:48 
Hi, I'm trying to completely suppress a window of another process, i.e. the main window doesn't display, doesn't appear at taskbar for even one second.
Imagine you are playing 3D game in full screen, suddenly a window appears and minimizes your game screen, and you die in the game...
I've tried using SetWindowsHookEx to install a hook for each WH_CALLWNDPROC and WH_CBT, then SetWindowLong to subclass the target window to modify every single call to WM_SHOWWINDOW, WM_SETFOCUS, WM_ACTIVATE, WM_ACTIVATEAPP, WM_WINDOWPOSCHANGING, etc. In addition, I also call LockSetForegroundWindow(LSFW_LOCK) and PostMessage(hWnd, WM_CLOSE, 0, 0) whenever possible.
In the subclass WindowProc, for every WM_WINDOWPOSCHANGING message, I modify the lParam, change the flags to SWP_HIDEWINDOW|SWP_NOACTIVATE|SWP_NOMOVE|SWP_ NOOWNERZORDER|SWP_NOREPOSITION|SWP_NOSENDCHANGING|SWP_NOSIZE|SWP_NOZORDER
For every WM_SHOWWINDOW and WM_ACTIVATEAPP message, I modify the wParam to FALSE.
So far, the window will appear for a brief split second then disappear. This is still not good enough for me because of that split second, it minimizes the active game screen.

Does anybody know what other message, or flag that I show be trying? Is what I'm trying to do possible at all?

Thanks much!
AnswerRe: How to completely suppress a window? Pin
Mark Salsbery8-Oct-06 8:39
Mark Salsbery8-Oct-06 8:39 
QuestionCreateHardlink Pin
zon_cpp7-Oct-06 20:45
zon_cpp7-Oct-06 20:45 
QuestionRe: CreateHardlink Pin
Hamid_RT7-Oct-06 21:26
Hamid_RT7-Oct-06 21:26 
AnswerRe: CreateHardlink Pin
zon_cpp7-Oct-06 22:14
zon_cpp7-Oct-06 22:14 
GeneralRe: CreateHardlink Pin
Hamid_RT8-Oct-06 7:13
Hamid_RT8-Oct-06 7:13 
AnswerRe: CreateHardlink Pin
A_Fa8-Oct-06 0:01
A_Fa8-Oct-06 0:01 
GeneralRe: CreateHardlink Pin
zon_cpp10-Oct-06 23:16
zon_cpp10-Oct-06 23:16 
AnswerRe: CreateHardlink Pin
A_Fa8-Oct-06 0:12
A_Fa8-Oct-06 0:12 
AnswerRe: CreateHardlink Pin
A_Fa8-Oct-06 0:16
A_Fa8-Oct-06 0:16 
AnswerRe: CreateHardlink Pin
Michael Dunn8-Oct-06 11:17
sitebuilderMichael Dunn8-Oct-06 11:17 
QuestionContinueDebugEvent Pin
samira forooghi7-Oct-06 19:34
samira forooghi7-Oct-06 19:34 
AnswerRe: ContinueDebugEvent Pin
Hamid_RT8-Oct-06 7:13
Hamid_RT8-Oct-06 7:13 
QuestionHow to work with controls in MFC? Pin
Lord Kixdemp7-Oct-06 19:11
Lord Kixdemp7-Oct-06 19:11 
AnswerRe: How to work with controls in MFC? Pin
Hamid_RT7-Oct-06 19:28
Hamid_RT7-Oct-06 19:28 
GeneralRe: How to work with controls in MFC? Pin
Lord Kixdemp7-Oct-06 20:12
Lord Kixdemp7-Oct-06 20:12 
GeneralRe: How to work with controls in MFC? Pin
Hamid_RT7-Oct-06 21:10
Hamid_RT7-Oct-06 21:10 
GeneralRe: How to work with controls in MFC? [modified] Pin
Lord Kixdemp8-Oct-06 6:14
Lord Kixdemp8-Oct-06 6:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.