void MyFrame::OnSize(wxSizeEvent& event)
{
- if ( m_treeCtrl
+ if ( m_treeCtrl
#if wxUSE_LOG
- && m_textCtrl
+ && m_textCtrl
#endif // wxUSE_LOG
)
{
#endif
}
-MyTreeCtrl::~MyTreeCtrl()
-{
-}
-
int MyTreeCtrl::OnCompareItems(const wxTreeItemId& item1,
const wxTreeItemId& item2)
{
{
//attempt to guess where to show the menu
if (item.IsOk())
- {
+ {
//if an item was clicked, show menu to the right of it
wxRect rect;
GetBoundingRect(item, rect, true); //true = only the label
//event was generated by mouse, use supplied coords
pt = ScreenToClient(pt);
}
-
+
ShowMenu(item, pt);
}