button.button_id = wxAUI_BUTTON_MAXIMIZE_RESTORE;
pinfo.buttons.Add(button);
}
-
+
+ if (pinfo.HasPinButton())
+ {
+ wxAuiPaneButton button;
+ button.button_id = wxAUI_BUTTON_PIN;
+ pinfo.buttons.Add(button);
+ }
+
if (pinfo.HasCloseButton())
{
wxAuiPaneButton button;
void wxAuiManager::UpdateButtonOnScreen(wxAuiDockUIPart* button_ui_part,
- const wxMouseEvent& event)
+ const wxMouseEvent& event)
{
wxAuiDockUIPart* hit_test = HitTest(event.GetX(), event.GetY());
-
+ if (!hit_test || !button_ui_part)
+ return;
+
int state = wxAUI_BUTTON_STATE_NORMAL;
if (hit_test == button_ui_part)