Set window z order?

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 halo.

I want to write a DLL to set the Blitz window z order so it isn't on top of everything. How would I get the Blitz window and set its z order? Please be explicit, I am new to PB.

By the way, Mark says he's going to fix the DLL problem. I'm glad we got to the bottom of that.

Thanks.
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 Justin.

Look at the SetWindowPos api, search for it at:
http://msdn.microsoft.com/

maybe you will have to pass the blitz window handle to the dll.
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 halo.

Well the BLitzSys .dll does it by finding the Blitz Window by the title, then performing the operation on the window.
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 PB.

> [...] to set the Blitz window z order so it isn't on top of everything.

To set a window so that it's not always on top, use the following:

Code: Select all

; hWnd = Handle of window in question.  You can find it like so:
; hWnd=FindWindow_(0, "window title")
SetWindowPos_(hWnd,#HWND_NOTOPMOST,0,0,0,0,#SWP_NOMOVE|#SWP_NOSIZE)

PB - Registered PureBasic Coder
Post Reply