Hello,
how can i make a window be on top of all other windows in asm with this API ?
thanks for your time in advance :rolleyes:
how can i make a window be on top of all other windows in asm with this API ?
SetWindowPos(hwnd,HWND_TOPMOST, (int)ScreenX ,(int)ScreenY,(int)WinX,(int)WinY,NULL);
thanks for your time in advance :rolleyes:
The same way you say:
An example here (after about dialog, the window gets topmost):
invoke SetWindowPos,[hwnd],HWND_TOPMOST, 30, 0, 1,1,SWP_SHOWWINDOW+SWP_NOMOVE+SWP_NOSIZE
An example here (after about dialog, the window gets topmost):
no this thing is not working
no errors on compiling and app is running but doesnt stay ontop
.if wParam == IDONTOP
invoke SetWindowPos,[IDD_DIALOG1],HWND_TOPMOST, 30, 0, 1, 1,SWP_SHOWWINDOW+SWP_NOMOVE+SWP_NOSIZE
.endif
no errors on compiling and app is running but doesnt stay ontop
contains what? it should be the window handle, not its id