Subclassing
Methods dealing with callbacks, enumeration, hooks and subclassing are for VB5/VB6 only.
Updated Monday December 26, 2011
   
Category
Topic
Balloon Tips (InfoTips)
vb6
vb5
Shell_NotifyIcon: Use SetTimer to Define Balloon Tip Life
A subclassed Balloon Tip demo to respond to balloon messages, with a bonus self-closing timer using the SetTimer API.  Jun 17.2004

Shell_NotifyIcon: Display Systray Balloon Tips
How to add Balloon Tips to a systray application running under Windows 2000 or Windows XP.  Jul 7.2002

Shell_NotifyIcon: Respond to Systray Balloon Tip Clicks
Subclassing to respond to Balloon Tip messages.  Jan 7.2003



Controls
vb6
vb5
WM_CTLCOLORSTATIC: Change the BackColor of a Slider
Subclassing to change the background colour of a VB slider control. Includes code to enable/disable the slider's ToolTips. Apr 7.2004

WM_CONTEXTMENU: Kill the Default Combo Box Context Menu
Eliminating the combo edit context menu via subclassing.  Dec 19.2000

WM_CONTEXTMENU: Kill the Default Text Box Context Menu
Eliminating the default textbox context menu via subclassing.  Jun 6.1999

WM_DRAWITEM: Set Command Button ForeColor
Now command buttons can have their own button text colour.  Jul 12.1999

WM_VSCROLL: Subclassing Listview Scrollbar Messages
Demonstrates detecting scrollbar action within a ListView, and scrolling a second control, modifying the scroll message, or discarding the message Aug 29.2000

WM_NOTIFY: Detect Sizing Notifications from a ListView ColumnHeader
Detect column resizing, header repositioning, clicks and double clicks on the ListView header. Aug 22.1999

WM_PAINT: Subclassing to Create a Flat Combo Box
Use the DrawEdge API to alter the appearance of a combo box. Nov 24.1999

WM_LBUTTONDOWN: Substitute a Tabbed List for a Combo's Dropdown List
Trapping a combo's dropdown and substituting a standard List control supporting tab stops. Mar 16.2001

WM_LBUTTONDOWN: Substitute a ListView for a Combo's Dropdown List
Trapping a combo's dropdown and substituting a standard ListView control. Mar 16.2001

WM_LBUTTONDOWN: Using a Combo in a MSFlexGrid to Select Data
Add automatic resizing to a combo/flexgrid. Feb 8.1999



Date/Time
vb6
vb5
WM_TIMECHANGE: Detect System Changes to the Date/Time
Subclass a form to receive date/time change notifications, or notify other windows that it has changed. June 8.1999


Forms
vb6
vb5
WM_SYSCOMMAND: Change and Respond to a Customized System Menu
Modify and react to new items added to a System Menu. Apr 17.1999

WM_SIZING: Maintain Form Aspect Ratio During Resizing
Detecting form resizing and changing the window rect to assure aspect ratio is maintained.  Jan 25.2002

Subclassing Form Messages: WM_ACTIVATEAPP: Detect Application Activation State
Detecting when an application gains and looses focus to another Windows app. Jun 6.1999

Subclassing Form Messages: WM_NCHITTEST: Simulating a Non-Client Action to Move a Form
Click anywhere on the form to reposition it on screen. Jul 1.1998

WM_GETMINMAXINFO: Restrict Form Resizing
Code to restrict resizing of a form to a size you specify. Jul 1.1998

WM_HOTKEY: System-Wide Keyboard Trapping
Create and respond to a system-wide hotkey hook.  Jul 16.1999



Shell
vb6
vb5
SHChangeNotifyRegister: Receive Shell Change Notifications
Track additions, deletions and changes to the physical and virtual file system. Sep 13.1998


System Tray
vb6
vb5
Shell_NotifyIcon: Animate the System Tray Icon
Creating a system tray icon with timed animation.  Jan 29.2002

Shell_NotifyIcon: Use SetTimer to Define Balloon Tip Life
A subclassed Balloon Tip demo to respond to balloon messages, with a bonus self-closing timer using the SetTimer API.  Jun 17.2004

Shell_NotifyIcon: Display Systray Balloon Tips
How to add Balloon Tips to a systray application running under Windows 2000 or Windows XP.  Jul 7.2002

Shell_NotifyIcon: Respond to Systray Balloon Tip Clicks
Subclassing to respond to Balloon Tip messages.  Jan 7.2003

Shell_NotifyIcon: Add Icon to Windows System Tray
Add and respond to an icon placed in the System Tray. June 6.1999

Shell_NotifyIcon: Respond to Systray Icon/Menu Interaction
Add and respond to an icon placed in the System Tray. Demos using the systray to display drive statistics via GetDriveSpaceFreeEx. Jun 6.1999

Shell_NotifyIcon: Respond to Systray Icon/Menu Interaction in a MDI App
Add and respond to an icon placed in the System Tray in a MDI application. Demos using the systray to display drive statistics via GetDriveSpaceFreeEx in MDI Child Windows.  Jul 31.1999

TransparentBlt: Simulating Microsoft's 'Windows Messenger' Notifications  Aug 14.2002
How to create and show a small form that appears and behaves like a notification window displayed by the Microsoft Windows Messenger application.

Shell_NotifyIcon: Windows Systray NOTIFYICONDATA Overview
Discussion of determining shell version to utilize systray code across all platforms. Jan 14.2003



 

 
 

PayPal Link
Make payments with PayPal - it's fast, free and secure!

 
 
 
 

Copyright ©1996-2011 VBnet and Randy Birch. All Rights Reserved.
Terms of Use  |  Your Privacy

 

Hit Counter