That's it! The button will be displayed with an arrow (using the Marlett font if available), and will display a popup menu when clicked.

Notes

When designing a dialog-box that uses this class, instead of using a normal button control, use a checkbox control that has the "Push like" style-bit set. The advantage of using a checkbox is that the button will stay pushed whilst the popup menu is displayed (see the example project for more details)

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

Comments and Discussions

Using Marlett font for arrow glyphs is great. I figured, it is system font and Windows 95/98/Me are using it for displaying scroll bar arrows, Maximize and Minimize buttons, option buttons, check boxes, and other controls. What about Windows NT/2000/XP ?