Window always on top

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by WolfgangS.

How can i open a window which is always on top of the other windows ?
Probably i have to set an API flag. I think that would be also nice as a PB - OpenWindow() flag. Whats your opinion ??

MFG
:)WolfgangS
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Berikco.

Code: Select all

hwnd= OpenWindow(1, 200, 100, 673, 155 ,#PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget| #PB_Window_SizeGadget,"PB Window 1")
setwindowpos_(hwnd,#HWND_TOPMOST,0,0,0,0,#SWP_NOSIZE |#SWP_NOMOVE) 
Maybe you can ad the flag #HWND_TOPMOST in the open command, just try

Regards,

Berikco

http://www.benny.zeb.be
Post Reply