VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Hook Win32 API Functions: includes a sample of customizing VB DTPicker by hooking GetLocaleInfo

Vlad Vissoultchev  (13 Submissions)   Windows API Call/Explanation   Visual Basic 3.0   Advanced   Wed 3rd February 2021

This code is based on an originally code found in a MSDN's Bugslayer article written by John Robbins. Of course i had to 'just' translate it to VB which in fact turned out quite nicely and secondly had to find some usage for the such written code. Well, the problem of customizing VB DTPicker in MS Windows Common Controls 2 has bugged me for years now and viola, totally hacked GetLocaleInfo is my answer. Probably these two events happened in reverse order but nevermind;-))
Speaking of purpose, another cool thing will be to intercept DrawFrameControl api function and for instance swap the arrows of every scrollbar in your application ;-)) Now, for the serious stuff -- try as an excercise to get those arrows on the DTPicker work correctly under win 2k -- they tend to draw incorrectly when depressed, anyone else noticed this problem?
And while on the DrawFrameControl topic someone might try to fix the freaking Microsoft Windowless Controls .ocx. It has all sort of drawing problems -- most noteably scrollbars and dropdown arrows.

Rate Hook Win32 API Functions: includes a sample of customizing VB DTPicker by hooking GetLocaleInfo (12(12 Vote))

Download Hook Win32 API Functions: includes a sample of customizing VB DTPicker by hooking GetLocaleInfo

Hook Win32 API Functions: includes a sample of customizing VB DTPicker by hooking GetLocaleInfo Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters