APIs for adding a thumbnail toolbar with a specified set of buttons.
- AddThumbBarButton(wxThumbBarButton *button), ShowThumbnailToolbar(). - Add THBN_CLICKED message handler to top level window and generate a wxCommandEvent event. - Sample. Author: Chaobin Zhang git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -64,6 +64,10 @@
|
||||
extern wxMenu *wxCurrentPopupMenu;
|
||||
#endif // wxUSE_MENUS || wxUSE_MENUS_NATIVE
|
||||
|
||||
#if wxUSE_TASKBARBUTTON
|
||||
#define wxTHBN_CLICKED 0x1800
|
||||
#endif // wxUSE_TASKBARBUTTON
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// event tables
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -862,6 +866,13 @@ bool wxFrame::HandleCommand(WXWORD id, WXWORD cmd, WXHWND control)
|
||||
}
|
||||
#endif // wxUSE_MENUS
|
||||
|
||||
#if wxUSE_TASKBARBUTTON
|
||||
if ( cmd == wxTHBN_CLICKED && MSWGetTaskBarButton() )
|
||||
{
|
||||
return wxTopLevelWindowMSW::HandleTHBNClickedCommand(id);
|
||||
}
|
||||
#endif // wxUSE_TASKBARBUTTON
|
||||
|
||||
return wxFrameBase::HandleCommand(id, cmd, control);;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user