Window is launched in the Background when the Alt key is down!
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, For some reason, I need to launch an application from my c++ code while holding the Alt key. the code is really simple:
char appName[64]; strcpy(appName,"c:\\WINDOWS\\notepad.exe"); ShellExecute(hWnd,"open",appName,NULL,NULL,SW_SHOWNORMAL);
But when executed whith the Alt key down, the application is opened behind the main window :confused: Does anyone have any clue fro this ? I appreciate your help. Thanks