VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



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

by Vlad Vissoultchev (13 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (12 Votes)

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

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

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

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

No comments have been posted about Hook Win32 API Functions: includes a sample of customizing VB DTPicker by hooking GetLocaleInfo. Why not be the first to post a comment about Hook Win32 API Functions: includes a sample of customizing VB DTPicker by hooking GetLocaleInfo.

Post your comment

Subject:
Message:
0/1000 characters