Right- click on the column header CListView response

Category: VC/MFC -> UI Author: cde7101769 Date: 2009-11-15 12:50:11
 
cde7101769
2009-11-15 12:50:11
RT
I want to achieve right-click the column header     able to show the context menu
PS: Do not like the menu and click on the list displayed . Under this response

asked what news ?
silencelife
2009-11-15 12:54:47
void   CMainFrame :: OnContextMenu (CWnd *   pWnd,   CPoint   point)  
{
//   TODO:   Add   your   message   handler   code   here
CMenu   menu;
menu.LoadMenu (IDR_MENU1);
CMenu   * popup = menu.GetSubMenu (0);
// CRect   rc ;
// popup- > GetClientRect (& rc);
popup- > TrackPopupMenu (TPM_LEFTALIGN, point.x, point.y, this);

}
zhang_si_yi
2009-11-15 13:09:27
brothers   this method can indeed point you react   click on the following list , but I also like ah. . . . This is not ah
this right is to manipulate the header     this country?