hai i want to get a cursor position for the buttoncontrol in mfc,give me sample code
Thanks
Printable View
hai i want to get a cursor position for the buttoncontrol in mfc,give me sample code
Thanks
What is a "cursor position" of a buttoncontrol?
A button control in MFC is represented by a CButton instance.
CButton is derived from CWnd.
To get the screen coordinates of a CWnd call
All this is well described in the MSDN.Code:CRect r;
pButton->GetWindowRect(&r);
With regards
Programartist
Thanks Programartist i want to do page up and page down access in a dialog window, upto the button i want to move down/up , so i want to move the cursor position . give me sample code
Thanks
Sona