SetWindowPos(handleFenetre, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); SWP_NOMOVE Retains the current position (ignores the X and Y parameters). SWP_NOSIZE Retains the current size (ignores the cx and cy parameters).
HWND handleFenetre=GetConsoleHwnd(); SetWindowPos(handleFenetre, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionHWND handleFenetre=GetConsoleWindow(); SetWindowPos(handleFenetre, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);