Experts,
Some time ago I created an overlay that works on every titelbar for whatever application is active. It has a minimize, maximize, restore and close button that works. What I use for this is:
Code: Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
PostMessage Hwnd, WMCLOSE, 0, 0
And of course SWSHOWNORMAL, SW
SHOWMAXIMIZED and SWMINIMIZE
The problem is that the Help button is not working. That is the question mark in the title bar. For a sample right click on your desktop and show the properties.
You would think that the code:
Code: SendMessage lastHwnd, WM_HELP, 0, 0
should work but it is not. Even the function:
Code:Private Declare Function SetForegroundWindow Lib "user32" (ByVal hwnd As Long) As Long
SetForegroundWindow Hwnd
Does not help.
full working code of this can be found here on Planet Source Code. In the menu it's the 'Active titlebar tickertape demo' And in the source code just look at frmBrowser. It's the code under the question mark that is not working.
Enter your message below
Sign in or Join us (it's free).