![]() |
Source Code |
3 | Code Libraries Source Code |   |
  |
Set the Show In Taskbar property at run time
The rules the taskbar uses to decide whether a button should be shown for a window aren't very well documented. Here is how it is done: 'When you create a window, the taskbar examines the window’s extended style to see if either the WS_EX_APPWINDOW (&H40000) or WS_EX_TOOLWINDOW (defined as &H80) style is turned on. If WS_EX_APPWINDOW is turned on, the taskbar shows a button for the window, and if WS_EX_ TOOLWINDOW is turned on, the taskbar does not show a button for the window. A window should never have both of these extended styles. If the window doesn't have either of these styles, the taskbar decides to create a button if the window is unowned and does not create a button if the window is owned.' Incidentally, VB forms seem to have neither of these extended styles. Here is some code which allows you to set the WS_EX_APPWINDOW style at run time:
' Declares: You should call this code once your window has a valid hWnd and is visible, for example, in the Form_Activate event. Back to top Back to Source Code Overview |
  |
![]() |
|
About Contribute Send Feedback Privacy
|