Click here to Skip to main content
15,501,490 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Assertion From SendNotifyMessage Pin
Richard MacCutchan24-Feb-16 7:10
mveRichard MacCutchan24-Feb-16 7:10 
GeneralRe: Assertion From SendNotifyMessage Pin
ForNow24-Feb-16 9:07
MemberForNow24-Feb-16 9:07 
GeneralRe: Assertion From SendNotifyMessage Pin
Richard MacCutchan24-Feb-16 9:22
mveRichard MacCutchan24-Feb-16 9:22 
GeneralRe: Assertion From SendNotifyMessage Pin
ForNow24-Feb-16 13:45
MemberForNow24-Feb-16 13:45 
GeneralRe: Assertion From SendNotifyMessage Pin
Richard MacCutchan24-Feb-16 22:16
mveRichard MacCutchan24-Feb-16 22:16 
GeneralRe: Assertion From SendNotifyMessage Pin
ForNow25-Feb-16 7:18
MemberForNow25-Feb-16 7:18 
GeneralRe: Assertion From SendNotifyMessage Pin
Richard MacCutchan25-Feb-16 7:31
mveRichard MacCutchan25-Feb-16 7:31 
QuestionUsing ShellExecute or CreateProcess caller lose its focus Pin
sdancer7523-Feb-16 9:30
Membersdancer7523-Feb-16 9:30 
I want to call an external application (created by me) using ShellExecute or CreateProcess. It is just an update application for the main app. The problem is, what ever I tried I failed to get window focus back to my main app when the process (update app) is terminated. I created a simple MFC/SDI app that calls window's notepad under "C:\windows\notepad.exe" which suffers from the same problem, just to show you what I mean. I need the parent window -which is the main app- to be disabled (like a modal dialog box behaviour) until the new app -update application- will finish its job.

PS:If I do not disable the main window with EnableWindow(FALSE) I have paint corruption with windows XP and back when I move the update application.

Here an example:
http://www.filedropper.com/shellexecutecreateprocesstestapp[^]
sdancer75

AnswerRe: Using ShellExecute or CreateProcess caller lose its focus Pin
Richard Andrew x6423-Feb-16 11:22
professionalRichard Andrew x6423-Feb-16 11:22 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
sdancer7523-Feb-16 21:29
Membersdancer7523-Feb-16 21:29 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
Richard MacCutchan23-Feb-16 22:17
mveRichard MacCutchan23-Feb-16 22:17 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
sdancer7524-Feb-16 1:56
Membersdancer7524-Feb-16 1:56 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
Victor Nijegorodov24-Feb-16 2:06
MemberVictor Nijegorodov24-Feb-16 2:06 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
sdancer7524-Feb-16 2:12
Membersdancer7524-Feb-16 2:12 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
Victor Nijegorodov24-Feb-16 2:29
MemberVictor Nijegorodov24-Feb-16 2:29 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
sdancer7524-Feb-16 2:35
Membersdancer7524-Feb-16 2:35 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
Victor Nijegorodov24-Feb-16 3:07
MemberVictor Nijegorodov24-Feb-16 3:07 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
sdancer7524-Feb-16 3:20
Membersdancer7524-Feb-16 3:20 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
sdancer7524-Feb-16 3:31
Membersdancer7524-Feb-16 3:31 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
Victor Nijegorodov24-Feb-16 6:29
MemberVictor Nijegorodov24-Feb-16 6:29 
AnswerRe: Using ShellExecute or CreateProcess caller lose its focus Pin
Jochen Arndt24-Feb-16 0:05
professionalJochen Arndt24-Feb-16 0:05 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
sdancer7524-Feb-16 1:55
Membersdancer7524-Feb-16 1:55 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
Jochen Arndt24-Feb-16 2:42
professionalJochen Arndt24-Feb-16 2:42 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
sdancer7524-Feb-16 3:15
Membersdancer7524-Feb-16 3:15 
GeneralRe: Using ShellExecute or CreateProcess caller lose its focus Pin
Jochen Arndt24-Feb-16 3:20
professionalJochen Arndt24-Feb-16 3:20 

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.