Hello !
 
I am using Measurement studio 7.0.0 (341) (602)
and I am using CNiGraph for plotting the some values.
 
I have used popup menu for setting its properties
 
void CGraphDlg::MouseDownGraph(short Button, short Shift, long x, long y)
{
  if(Button == RIGHT_MOUSE_CLICK)
  {
    CMenu obj_Menu;
    obj_Menu.CreatePopupMenu();
    obj_Menu.AppendMenu(MF_STRING, ID_GRAPHPROPERTIES, "&Properties");
    CPoint pt;
    GetCursorPos(&pt);
    int nCmd = obj_Menu.TrackPopupMenu(TPM_LEFTALIGN |TPM_LEFTBUTTON | TPM_RIGHTBUTTON | TPM_RETURNCMD, pt.x,pt.y, this);
  }
}
 
The code for context menu is perfectly working fine but after doing a left double click on control CNiGraph, Dialog CGraphDlg appears to hang and all other events on some buttons also disabled and even I am not able to minimize, maximize the dialog.
 
But when I open other application running on machine and coming to graph dialog then after that it working fine.
 
Any kind of help is appreciated !
 
Thanks,
 
-
Sameer