]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/listctrl/listtest.cpp
fixed MSW linking (check for wxUSE_GENERIC_DIALOGS_IN_MSW)
[wxWidgets.git] / samples / listctrl / listtest.cpp
index b440b9eaf75a61e6918f847c7a62728f1e810bc2..7198ec34cae62086c7546f089f0934c9b1bd9e15 100644 (file)
@@ -686,6 +686,11 @@ void MyListCtrl::OnColRightClick(wxListEvent& event)
         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() );
 }