Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to load the Bitmap Pin
_AnsHUMAN_ 22-Aug-06 23:57
_AnsHUMAN_ 22-Aug-06 23:57 
AnswerRe: how to load the Bitmap Pin
ramanand_bulusu23-Aug-06 1:02
ramanand_bulusu23-Aug-06 1:02 
AnswerRe: how to load the Bitmap Pin
Hamid_RT23-Aug-06 1:54
Hamid_RT23-Aug-06 1:54 
QuestionHow can I capture frames with directshow ? Pin
monimon22-Aug-06 23:12
monimon22-Aug-06 23:12 
AnswerRe: How can I capture frames with directshow ? Pin
Justin Tay23-Aug-06 4:35
Justin Tay23-Aug-06 4:35 
QuestionProblem on changing Views Pin
kiranin22-Aug-06 23:02
kiranin22-Aug-06 23:02 
QuestionRe: Problem on changing Views Pin
prasad_som22-Aug-06 23:09
prasad_som22-Aug-06 23:09 
QuestionStrange behaviour in ShellExecute with MS Office Pin
e-DJ22-Aug-06 23:01
e-DJ22-Aug-06 23:01 
Hi out there,

I use ShellExecute() to open a file with the default extension. Works well for Word-Documents, Excel, Powerpoint, PDF, JPG and so on.

My program calls ShellExecute() so that the user can read the or work on the file. When finished, the file should be closed or minimized again and my program is visible again. Works well.

Now I created a MessageBox() right after ShellExecute() whee I want the user to click Yes or No (I want to know if the file was of any Help for my user). Now something strange happens:

I call ShellExecute(), a PDF is started, my Messagebox appears and the PDF is displayed. I close my PDF and see my messagebox. Works well

On the other hand:

I call ShellExecute(), a Word-document is started, my messagebox appears, the word-document is brought in the background an my application with the messagebox is displayed as top-window. So my user is asked, if the document was of any help, but the document is in the background, behind my application. The user has to bring it in the foreground. The same happens for Excel-documents.

Is there any way to tell either Office to stay in the foreground or to tell my programm to remain behind the currently started shell-object?

thanks in advance

Juergen
AnswerRe: Strange behaviour in ShellExecute with MS Office Pin
Rage23-Aug-06 1:39
professionalRage23-Aug-06 1:39 
GeneralRe: Strange behaviour in ShellExecute with MS Office Pin
e-DJ23-Aug-06 1:50
e-DJ23-Aug-06 1:50 
GeneralRe: Strange behaviour in ShellExecute with MS Office Pin
Rage23-Aug-06 5:03
professionalRage23-Aug-06 5:03 
GeneralRe: Strange behaviour in ShellExecute with MS Office Pin
e-DJ24-Aug-06 0:56
e-DJ24-Aug-06 0:56 
AnswerRe: Strange behaviour in ShellExecute with MS Office Pin
David Crow23-Aug-06 3:12
David Crow23-Aug-06 3:12 
Questionethernet programming Pin
Muhammad Azeem Azam22-Aug-06 22:46
Muhammad Azeem Azam22-Aug-06 22:46 
AnswerRe: ethernet programming Pin
markkuk22-Aug-06 23:09
markkuk22-Aug-06 23:09 
AnswerRe: ethernet programming Pin
Steve S22-Aug-06 23:09
Steve S22-Aug-06 23:09 
QuestionMemory error. Pin
stevelam22-Aug-06 22:23
stevelam22-Aug-06 22:23 
AnswerRe: Memory error. Pin
Rage22-Aug-06 22:30
professionalRage22-Aug-06 22:30 
AnswerRe: Memory error. Pin
prasad_som22-Aug-06 22:46
prasad_som22-Aug-06 22:46 
GeneralRe: Memory error. Pin
stevelam23-Aug-06 2:12
stevelam23-Aug-06 2:12 
AnswerRe: Memory error. Pin
Cedric Moonen22-Aug-06 22:46
Cedric Moonen22-Aug-06 22:46 
QuestionHow to skip the device driver? Pin
romasan22-Aug-06 21:44
romasan22-Aug-06 21:44 
AnswerRe: How to skip the device driver? Pin
Mike Dimmick23-Aug-06 1:07
Mike Dimmick23-Aug-06 1:07 
GeneralRe: How to skip the device driver? Pin
romasan23-Aug-06 16:49
romasan23-Aug-06 16:49 
QuestionResolving IP Address Pin
Programm3r22-Aug-06 21:27
Programm3r22-Aug-06 21:27 

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.