3 out of 7 rated this helpful - Rate this topic

Using Buttons

This section gives implementation details and example code for button controls. The following topics are discussed.

In this section

TopicDescription

How to Create a Button

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.

How to Create a Command Link

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

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
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.