Using Buttons
This section gives implementation details and example code for button controls. The following topics are discussed.
In this section
| Topic | Description |
|---|---|
|
To create buttons dynamically, you use the CreateWindow or CreateWindowEx function. This topic demonstrates how to use the CreateWindow function to create a default push button. | |
|
This topic describes one way to create a command link. | |
|
How to Handle the BCN_DROPDOWN Notification from a Split Button |
This topic describes one possible way of responding to the BCN_DROPDOWN notification in a dialog procedure. |
Send comments about this topic to Microsoft
Build date: 3/6/2012
Incorrect AppendMenu example
In the split button code example the second parameter to AppendMenu should not be MF_BYPOSITION since this flag controls the interpretation of the last two parameters. The correct flags are listed in the AppendMenu documentation.
- 9/28/2009
- Colin Jeanne