I'm working on a project that executes a separate application with different parameters in order to upload data to another server. The problem is, my App is full screen and when the other application starts, mine minimizes. Any idea on how I could keep my window on top, without having it to minimize?
I tried doing the following thing:
//Got the window handles using Globalconstruct.h and doing the following:
dbMaximizeWindow();
SetWindowLong(g_pGlob->hWnd, GWL_STYLE, ::GetWindowLong(g_pGlob->hWnd, GWL_STYLE) & ~(WS_BORDER | WS_DLGFRAME | WS_THICKFRAME));
SetWindowLong(g_pGlob->hWnd, GWL_EXSTYLE, ::GetWindowLong(g_pGlob->hWnd, GWL_EXSTYLE) & ~WS_EX_DLGMODALFRAME);
SetWindowPos(g_pGlob->hWnd , HWND_TOPMOST, 0, 0, dbScreenWidth(), dbScreenHeight(), SWP_SHOWWINDOW );
// more code here
//The execution routine
int execute = system("scoreboard.exe get,CrazySoccer");
ShowWindow(g_pGlob->hWnd,SW_MAXIMIZE);
g_eGameMode = eGameMM;
Still, the Window keeps minimizing when scoreboard.exe is executed!