Click here to Skip to main content
15,891,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting Output Parameter from _CommandPtr Pin
alex120517-Feb-04 16:38
alex120517-Feb-04 16:38 
GeneralCEdit focus problem Pin
Niko Tanghe16-Feb-04 21:20
Niko Tanghe16-Feb-04 21:20 
GeneralRe: CEdit focus problem Pin
Selvam R16-Feb-04 23:58
professionalSelvam R16-Feb-04 23:58 
GeneralRe: CEdit focus problem Pin
David Crow17-Feb-04 3:03
David Crow17-Feb-04 3:03 
GeneralRouting jobs to Multiple trays in a printer Pin
Member 64506716-Feb-04 21:10
Member 64506716-Feb-04 21:10 
QuestionWhat is the difference between Tab Control and Property Sheet?Is there any advantages and dis between these two? Pin
P_JAYAPRAKASH16-Feb-04 21:09
P_JAYAPRAKASH16-Feb-04 21:09 
AnswerRe: What is the difference between Tab Control and Property Sheet?Is there any advantages and dis between these two? Pin
Prakash Nadar16-Feb-04 22:07
Prakash Nadar16-Feb-04 22:07 
GeneralMFC Dialog app and ShellExecute() Pin
Steve Messer16-Feb-04 20:20
Steve Messer16-Feb-04 20:20 
I have a MFC based dialog application which uses ShellExecute() to launch executables. After calling ShellExecute with for example:

ShellExecute( hwnd,"open",
"C:\\program files\\winamp\\winamp.exe" ,
"c:\\song.mp3",
"c:\\program files\\winamp\\",
SW_SHOWMINNOACTIVE );

I have tried SW_SHOWMINNOACTIVE and SW_MINIMIZE and after the call to launch the executable my dialog application loses focus. I have tried using SetFocus() after the call and nothing I try sets the focus back to the dialog which called the executable.

How do you get the calling application to retain focus after a call to ShellExecute?


Thanks,

Steve
GeneralRe: MFC Dialog app and ShellExecute() Pin
Prakash Nadar16-Feb-04 20:41
Prakash Nadar16-Feb-04 20:41 
GeneralRe: MFC Dialog app and ShellExecute() Pin
Steve Messer16-Feb-04 20:51
Steve Messer16-Feb-04 20:51 
GeneralRe: MFC Dialog app and ShellExecute() Pin
Prakash Nadar16-Feb-04 22:10
Prakash Nadar16-Feb-04 22:10 
GeneralRe: MFC Dialog app and ShellExecute() Pin
Steve Messer16-Feb-04 22:24
Steve Messer16-Feb-04 22:24 
GeneralRe: MFC Dialog app and ShellExecute() Pin
David Crow17-Feb-04 3:05
David Crow17-Feb-04 3:05 
GeneralRe: MFC Dialog app and ShellExecute() Pin
Steve Messer17-Feb-04 6:00
Steve Messer17-Feb-04 6:00 
GeneralI have written a program which will accept only 20 connections to the server port. If connection goes beyond 20 then below mentioned code will be executed which is in while loop Pin
kathyayini16-Feb-04 19:39
kathyayini16-Feb-04 19:39 
GeneralRe: I have written a program which will accept only 20 connections to the server port. If connection goes beyond 20 then below mentioned code will be executed which is in while loop Pin
pfsat16-Feb-04 20:45
pfsat16-Feb-04 20:45 
GeneralRe: I have written a program which will accept only 20 connections to the server port. If connection goes beyond 20 then below mentioned code will be executed which is in while loop Pin
kathyayini16-Feb-04 22:54
kathyayini16-Feb-04 22:54 
GeneralRe: I have written a program which will accept only 20 connections to the server port. If connection goes beyond 20 then below mentioned code will be executed which is in while loop Pin
pfsat26-Feb-04 10:12
pfsat26-Feb-04 10:12 
GeneralProperty sheet inside a Form View Pin
P_JAYAPRAKASH16-Feb-04 18:51
P_JAYAPRAKASH16-Feb-04 18:51 
GeneralRe: Property sheet inside a Form View Pin
Prakash Nadar16-Feb-04 19:14
Prakash Nadar16-Feb-04 19:14 
GeneralRe: Property sheet inside a Form View Pin
Rick York16-Feb-04 19:50
mveRick York16-Feb-04 19:50 
GeneralRe: Property sheet inside a Form View Pin
Selvam R17-Feb-04 0:06
professionalSelvam R17-Feb-04 0:06 
GeneralTooltips in a dialog based application Pin
satadru16-Feb-04 18:45
satadru16-Feb-04 18:45 
GeneralRe: Tooltips in a dialog based application Pin
Selvam R16-Feb-04 21:10
professionalSelvam R16-Feb-04 21:10 
GeneralHELP, Run time error - Pure virtual function call Pin
Md Saleem Navalur16-Feb-04 18:35
Md Saleem Navalur16-Feb-04 18:35 

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.