I have the code
HWND hWndTmp = pDX->m_pDlgWnd->GetSafeHwnd();
hWndTmp = GetDlgItem(hWndTmp, pDX->m_idLastControl);
CWnd *wnd;
wnd = wnd->FromHandle(hWndTmp);
RECT wndRect;
wnd->GetWindowRect(&wndRect);
Which gives me the rectangle around the control described in pDX.
What I would like to do is draw a rectangle around this control a few times to draw the users eyes to it. I have searched for a while on how I could do this but nothing seems to actually work for me.
I've tried this http://msdn.microsoft.com/en-us/library/sx8yykw8.aspx?cs-save-lang=1&cs-lang=cpp#code-snippet-1
But it tells me "System" cannout be found or is not real.
Is there a simple way given the coordinates to draw a rectangle?
OnPaint
– dario_ramos