I want to create a button that is basically Windows’ close button. How could I do this? I want to avoid drawing this myself because I want it to look like that version of Windows’ close button. Firefox’s tabs do something like this. Thanks
Share
You can get at Windows XP+ theme specific UI elements via the
DrawThemeBackgroundAPI.Use
WP_CLOSEBUTTONfor the window X button (and one ofCBS_NORMAL/HOT/PUSHED/DISABLEDfor its state) and you can draw one wherever you like.