Page 1 of 1

Posted: Tue Jul 09, 2002 3:06 am
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.

Posted: Tue Jul 09, 2002 4:24 pm
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.

Posted: Tue Jul 09, 2002 4:37 pm
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.

Posted: Tue Jul 09, 2002 10:51 pm
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