HideWindow

Blitz3D Forums/Blitz3D Programming/HideWindow

RGR(Posted 2004) [#1]
;-


Odds On(Posted 2004) [#2]
You should just need this:

.lib "user32.dll"

FindWindow%(ClassName$,Caption$):"FindWindowA"
ShowWindow%( hWnd, nCmdShow ) : "ShowWindow"
You can copy and paste the Const values (SW_HIDE etc) from Robs code.

[Edit]
Use it like this:

hWnd = FindWindow( "Blitz Runtime Class", "my caption" )
ShowWindow( hWnd, SW_HIDE )



RGR(Posted 2004) [#3]
;-


Robert(Posted 2004) [#4]
Alternatively you can edit the .decls file entry for FindWindow, replace the class$ parameter with an integer (class%) then just set that parameter to 0 in your code and you don't have to worry about finding out the class name.