devxlogo

Hiding Taskbar

Hiding Taskbar

Question:
I was wondering how to hide the taskbar in NT/95?

Answer:
To hide the task bar you will need to declare two API calls. These two API calls will locate the TaskBar window handle and then alter the state of the window.

Declare the API calls as follows:

Function long FindWindowExA &   ( long hWnd, long hWndChild, &  ref string lpszClassName, &  ref string lpszWindow) library 'user32'Function long ShowWindow &  (long hWnd, long nCmdShow ) library 'user32'

Then add the following code to your PowerBuilder script:

Constant Long SW_HIDE = 0String ls_ShellTaskBarWnd = "Shell_TrayWnd"String ls_NullLong ll_HTaskBarll_HTaskBar = FindWindowExA( 0, 0, &  ls_ShellTaskBarWnd, ls_Null )ShowWindow( ll_HTaskBar, SW_HIDE )

The same code can be used to redisplay the taskbar when you are finished:

Constant Long SW_SHOW = 5String ls_ShellTaskBarWnd = "Shell_TrayWnd"String ls_NullLong ll_HTaskBarll_HTaskBar = FindWindowExA( 0, 0, &   ls_ShellTaskBarWnd, ls_Null )ShowWindow( ll_HTaskBar, SW_SHOW )
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist