Click here to Skip to main content
15,885,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionShellExecute and focus lose Pin
sdancer7519-Oct-14 0:41
sdancer7519-Oct-14 0:41 
AnswerRe: ShellExecute and focus lose Pin
Richard Andrew x6420-Oct-14 9:42
professionalRichard Andrew x6420-Oct-14 9:42 
GeneralRe: ShellExecute and focus lose Pin
sdancer7520-Oct-14 20:31
sdancer7520-Oct-14 20:31 
QuestionRe: ShellExecute and focus lose Pin
David Crow21-Oct-14 3:27
David Crow21-Oct-14 3:27 
AnswerRe: ShellExecute and focus lose Pin
sdancer7521-Oct-14 22:52
sdancer7521-Oct-14 22:52 
QuestionRe: ShellExecute and focus lose Pin
David Crow22-Oct-14 2:15
David Crow22-Oct-14 2:15 
AnswerRe: ShellExecute and focus lose Pin
sdancer7527-Oct-14 7:39
sdancer7527-Oct-14 7:39 
AnswerRe: ShellExecute and focus lose Pin
sdancer7529-Oct-14 22:12
sdancer7529-Oct-14 22:12 
Hi,

I found out accidentally, that using the SetWindowPos to the MainFrm window inside the OnCreateClient it solves the problem. It seems that setting the attribute that does not change the Z-Order of the main window keeps it always in the top.


C++
SetWindowPos(NULL, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_FRAMECHANGED);


What do you think ?

Regards,
sdancer75

QuestionProgram for decrypting graphic files in C. Pin
TheDefenestrator18-Oct-14 12:31
TheDefenestrator18-Oct-14 12:31 
AnswerRe: Program for decrypting graphic files in C. Pin
Richard Andrew x6418-Oct-14 12:45
professionalRichard Andrew x6418-Oct-14 12:45 
GeneralRe: Program for decrypting graphic files in C. Pin
TheDefenestrator18-Oct-14 12:52
TheDefenestrator18-Oct-14 12:52 
GeneralRe: Program for decrypting graphic files in C. Pin
Richard Andrew x6418-Oct-14 12:54
professionalRichard Andrew x6418-Oct-14 12:54 
GeneralRe: Program for decrypting graphic files in C. Pin
TheDefenestrator18-Oct-14 12:58
TheDefenestrator18-Oct-14 12:58 
GeneralRe: Program for decrypting graphic files in C. Pin
TheDefenestrator18-Oct-14 13:36
TheDefenestrator18-Oct-14 13:36 
AnswerRe: Program for decrypting graphic files in C. Pin
Richard Andrew x6418-Oct-14 15:17
professionalRichard Andrew x6418-Oct-14 15:17 
GeneralRe: Program for decrypting graphic files in C. Pin
TheDefenestrator18-Oct-14 15:20
TheDefenestrator18-Oct-14 15:20 
GeneralRe: Program for decrypting graphic files in C. Pin
Richard Andrew x6418-Oct-14 15:26
professionalRichard Andrew x6418-Oct-14 15:26 
GeneralRe: Program for decrypting graphic files in C. Pin
TheDefenestrator22-Oct-14 5:46
TheDefenestrator22-Oct-14 5:46 
GeneralRe: Program for decrypting graphic files in C. Pin
Richard Andrew x6422-Oct-14 8:00
professionalRichard Andrew x6422-Oct-14 8:00 
Question#define VERSION 1.0.0 - too many decimal points Pin
Vaclav_16-Oct-14 4:12
Vaclav_16-Oct-14 4:12 
AnswerRe: #define VERSION 1.0.0 - too many decimal points Pin
Stefan_Lang16-Oct-14 4:35
Stefan_Lang16-Oct-14 4:35 
GeneralRe: #define VERSION 1.0.0 - too many decimal points Pin
PIEBALDconsult16-Oct-14 7:59
mvePIEBALDconsult16-Oct-14 7:59 
GeneralRe: #define VERSION 1.0.0 - too many decimal points Pin
CPallini16-Oct-14 9:17
mveCPallini16-Oct-14 9:17 
GeneralRe: #define VERSION 1.0.0 - too many decimal points Pin
PIEBALDconsult16-Oct-14 9:22
mvePIEBALDconsult16-Oct-14 9:22 
GeneralRe: #define VERSION 1.0.0 - too many decimal points Pin
CPallini16-Oct-14 9:45
mveCPallini16-Oct-14 9:45 

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.