HideWindow DLL

Blitz3D Forums/Blitz3D Userlibs/HideWindow DLL

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Edit - Sorry if the DLL didn't work had a wrong setting when I compiled, should work now.

Don't know if this one exists in the Blitz forums. Pretty much hides a currently running window.

Also in the code archives at http://www.blitzbasic.com/codearcs/codearcs.php?code=2328

Description: Use to hide/show a window currently running. Use the HideWindow function once putting the "hidewindow.dll" and "hidewindow.decls" files in the Blitz3D\UserLibs folder. HideWindow takes one parameter f_procName$ which is the name of the TITLE of the window. Also use ShowWindow the same way.

Download: http://rapidshare.com/files/150758760/HideWindowDLL.zip.html

Example Code:

 

;Can change Title$ to whatever you want to hide.

AppTitle "HideWindow Example"

		Title$ = "HideWindow Example"
		
		Result% = HideWindow(Title$)

  If Result%

		Print Title$ + " hidden!"
		
  Else

		Print "Failed to hide " + Title$
		
  End If


		Delay 2000
		
		Print
		
		Result% = ShowWindow(Title$)

  If Result%

		Print Title$ + " shown!"
		
  Else

		Print "Failed to show " + Title$
		
  End If


		Print
		Print "Press any key to quit."
		Print
		
		WaitKey
		End



Hope it helps!