Hi.
In my application I have a list view in report mode. I want when the user does a right click on an item from the list view to open a popup menu. The menu works, but it doesn't show properly(it is dysplayed very narrow, so the text is not shown, but I can choose a command from it and the message handler is called).
Code:void CKasaDBDlg::OnRclickMainListview(NMHDR* pNMHDR, LRESULT* pResult) { // TODO: Add your control notification handler code here CMenu theMenu; theMenu.LoadMenu(IDR_MAIN_LV_MENU); theMenu.AppendMenu(MF_STRING | MF_ENABLED,ID_MAIN_LV_DELETE,"Delete"); theMenu.TrackPopupMenu(TPM_RIGHTBUTTON,500,500,this);
Any suggestions are appreciated.



LinkBack URL
About LinkBacks


