This sample demonstrates some of the new controls available with MFC on Windows Vista, including the command link button (
The sample creates a tabbed dialog which contains 4 tabs, each of which demonstrates one of the controls:
The CPagerCtrl tab demonstrates the pager control and some of its capabilities. On this tab you can control the border size, background color, and button size of the pager.
The CButton (Command Link) tab demonstrates the command link button and some of its capabilities. On this tab you can set the content of the note on the command link button and show or hide the elevation icon on the button.
The CSplitButton tab demonstrates the split button and some of its capabilities. On this tab you can set the dropdown menu content, set or clear the dropdown state, set the split style, and set the size of the split portion of the button.
The CNetworkAddressCtrl tab demonstrates the network address control and some of its capabilities. On this tab you can select various address types and then enter a network address and validate it against the selected address types. The edit control uses the banner capability to set the prompt text directly inside the control.
Requirements
This sample requires Windows Vista or later.