Default Control Events
The latest version of this topic can be found at Default Control Events.
The following control names have the accompanying default events:
Control name | Default event |
---|---|
Animate | ACN_START |
Check box | BN_CLICKED |
Combo box | CBN_SELCHANGE |
Custom | TTN_GETDISPINFO |
Date time picker | DTN_DATETIMECHANGE |
Edit box | EN_CHANGE |
Group Box | (Not applicable) |
Hot key | NM_OUTOFMEMORY |
IP address | IPN_FIELDCHANGED |
List | LVN_ITEMCHANGE |
List box | LBN_SELCHANGE |
Month calendar | MCN_SELCHANGE |
Picture Control | (Not applicable) |
Progress | NM_CUSTOMDRAW |
Push button | BN_CLICKED |
Radio button | BN_CLICKED |
Rich edit | EN_CHANGE |
Scroll bar | NM_THEMECHANGED |
Slider | NM_CUSTOMDRAW |
Spin | UDN_DELTAPOS |
Static Text | (Not applicable) |
Tab | TCN_SELCHANGE |
Tree | TVN_SELCHANGE |
For information on adding resources to managed projects, please see Resources in Applications in the .NET Framework Developer's Guide. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resources strings to properties, see Walkthrough: Localizing Windows Forms and Walkthrough: Using Resources for Localization with ASP.NET.
Requirements
Win32
See Also
Defining Member Variables for Dialog Controls
Message Types Associated with User-Interface Objects
Editing a Message Handler
Defining a Message Handler for a Reflected Message
Declaring a Variable Based on Your New Control Class
Overriding a Virtual Function