dcsimg
September 23, 2018
Hot Topics:

Hide the Desktop

  • November 19, 2002
  • By Sam Huggill
  • Send Email »
  • More Articles »

Add a new module (modMain). Copy the following code into the general declarations procedure:

Option Explicit
DefLng A-Z

Declare Function FindWindowEx Lib "user32" _
  Alias "FindWindowExA" (ByVal hWnd As Long, _
  ByVal hWndChild As Long, _
  ByVal lpszClassName As String, _
  ByVal lpszWindow As String) As Long
Declare Function ShowWindow Lib "user32" _
  (ByVal hWnd As Long, _
  ByVal nCmdShow As Long) As Long

'-- Constants for ShowWindow()
Public Const SW_HIDE = 0
Public Const SW_NORMAL = 1
Public Const SW_SHOWMINIMIZED = 2
Public Const SW_SHOWMAXIMIZED = 3
Public Const SW_SHOWNOACTIVATE = 4
Public Const SW_SHOW = 5
Public Const SW_MINIMIZE = 6
Public Const SW_SHOWMINNOACTIVE = 7
Public Const SW_SHOWNA = 8
Public Const SW_RESTORE = 9
Public Const SW_SHOWDEFAULT = 10

'-- Names of the shell window we'll be looking for
Public Const g_cstrShellViewWnd As String = "Progman"




Page 2 of 3



Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

By submitting your information, you agree that developer.com may send you developer offers via email, phone and text message, as well as email offers about other products and services that developer believes may be of interest to you. developer will process your information in accordance with the Quinstreet Privacy Policy.

Sitemap

Thanks for your registration, follow us on our social networks to keep up-to-date