Context menu now created in constructor; old context menu deleted when new one set.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2009-09-29 06:45:36 +00:00
parent c06de7d4c8
commit 8e43fc7776
2 changed files with 21 additions and 15 deletions

View File

@@ -177,7 +177,7 @@ public:
/// Get/set context menu
wxMenu* GetContextMenu() const { return m_contextMenu; }
void SetContextMenu(wxMenu* menu) { m_contextMenu = menu; }
void SetContextMenu(wxMenu* menu);
/// Anchor so we know how to extend the selection
/// It's a caret position since it's between two characters.