VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

XP Manifest UI State fix

selftaught  (17 Submissions)   Miscellaneous   VB Script   Intermediate   Wed 3rd February 2021

Perhaps you've noticed that the VB Form engine does not support dynamic changing of the ui state. It gets the ui state when the form is first created and then never again. Obviously this defeats the whole purpose of it. For example, if the user opens your form using the mouse then the focus rectangles will not show on the command buttons or on other controls that conform to XP ui standards. This code a kludge that will show all ui states instead of only the state that was active when the form was created. Just call this sub in the initialize event of a form that is linked to CC 6 with a manifest.

API Declarations
Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long

Rate XP Manifest UI State fix (3(3 Vote))
XP Manifest UI State fix.bas

XP Manifest UI State fix Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters