git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29013
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
SetColumnImage(col, -1);
}
+ // Show popupmenu at position
+ wxMenu menu(wxT("Test"));
+ menu.Append(LIST_ABOUT, _T("&About"));
+ PopupMenu(&menu, event.GetPoint());
+
wxLogMessage( wxT("OnColumnRightClick at %d."), event.GetColumn() );
}
wxLogLastError(_T("GetCursorPos"));
}
- if ( !::ScreenToClient(hwndHdr, &ptClick) )
+ if ( !::ScreenToClient(GetHwnd(), &ptClick) )
{
wxLogLastError(_T("ScreenToClient(listctrl header)"));
}