popping up a cmenu in the right place
Posted on 2007-08-03
I have a CDialog, with a CDialog created as a child on top of it, something like:
m_pChildDlg = new CMyDialogChild();
m_pChildDlg->MoveWindow(0, 30, 100, 100);
When I handle right clicks in the child dialog, I use ClientToScreen() to convert the clicked point to place a popup menu exactly where the user right clicked - but it is always offset by 30 pixels in the Y direction, exactly as much as it is offset in relation to the parent. How do I get it to popup in the right place?
Also, experts exchange made this insance ask questions qizard updte, now I have to go through like 10 steps to ask a question - is there some way to go back to the 'classic' way, it was much faster?