Click here to Skip to main content
15,918,676 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Assertion From SendNotifyMessage Pin
ForNow24-Feb-16 8:07
ForNow24-Feb-16 8:07 
GeneralRe: Assertion From SendNotifyMessage Pin
Richard MacCutchan24-Feb-16 8:22
mveRichard MacCutchan24-Feb-16 8:22 
GeneralRe: Assertion From SendNotifyMessage Pin
ForNow24-Feb-16 12:45
ForNow24-Feb-16 12:45 
GeneralRe: Assertion From SendNotifyMessage Pin
Richard MacCutchan24-Feb-16 21:16
mveRichard MacCutchan24-Feb-16 21:16 
GeneralRe: Assertion From SendNotifyMessage Pin
ForNow25-Feb-16 6:18
ForNow25-Feb-16 6:18 
GeneralRe: Assertion From SendNotifyMessage Pin
Richard MacCutchan25-Feb-16 6:31
mveRichard MacCutchan25-Feb-16 6:31 
QuestionUsing ShellExecute or CreateProcess caller lose its focus Pin
sdancer7523-Feb-16 8:30
sdancer7523-Feb-16 8:30 
AnswerRe: Using ShellExecute or CreateProcess caller lose its focus Pin
Richard Andrew x6423-Feb-16 10:22
professionalRichard Andrew x6423-Feb-16 10:22 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
sdancer7523-Feb-16 20:29
sdancer7523-Feb-16 20:29 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
Richard MacCutchan23-Feb-16 21:17
mveRichard MacCutchan23-Feb-16 21:17 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
sdancer7524-Feb-16 0:56
sdancer7524-Feb-16 0:56 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
Victor Nijegorodov24-Feb-16 1:06
Victor Nijegorodov24-Feb-16 1:06 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
sdancer7524-Feb-16 1:12
sdancer7524-Feb-16 1:12 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
Victor Nijegorodov24-Feb-16 1:29
Victor Nijegorodov24-Feb-16 1:29 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
sdancer7524-Feb-16 1:35
sdancer7524-Feb-16 1:35 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
Victor Nijegorodov24-Feb-16 2:07
Victor Nijegorodov24-Feb-16 2:07 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
sdancer7524-Feb-16 2:20
sdancer7524-Feb-16 2:20 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
sdancer7524-Feb-16 2:31
sdancer7524-Feb-16 2:31 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
Victor Nijegorodov24-Feb-16 5:29
Victor Nijegorodov24-Feb-16 5:29 
AnswerRe: Using ShellExecute or CreateProcess caller lose its focus Pin
Jochen Arndt23-Feb-16 23:05
professionalJochen Arndt23-Feb-16 23:05 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
sdancer7524-Feb-16 0:55
sdancer7524-Feb-16 0:55 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
Jochen Arndt24-Feb-16 1:42
professionalJochen Arndt24-Feb-16 1:42 
My intention was to show you a solution that differs from your current implementation and pointing to the fact that you block the message loop.

You must not call WaitForSingleObject from within your main thread to ensure that the window is repainted (e.g. when moving another window over the application window). That will solve the problem of paint corruption and might also solve your other problems.
Overall I think I must shout:
Don't use WaitForSingleObject from within your main GUI thread; especially with long wait times!

I (like most others here) will not download a complete project and build it. Especially in this case where it must be tested with XP too.
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
sdancer7524-Feb-16 2:15
sdancer7524-Feb-16 2:15 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
Jochen Arndt24-Feb-16 2:20
professionalJochen Arndt24-Feb-16 2:20 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
sdancer7524-Feb-16 2:28
sdancer7524-Feb-16 2:28 

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.