CRect programEditCntrlRect; m_editCtrl.GetWindowRect(&programEditCntrlRect); // m_editCtrl is control variable for CEDit control. this->ScreenToClient(&programEditCntrlRect); int programEditCntrlX = programEditCntrlRect.left; int programEditCntrlY = programEditCntrlRect.top;
CRect programEditCntrlRect; CWnd* prgEdit = GetDlgItem(IDC_EDIT_PrgTxt); prgEdit->GetWindowRect(&programEditCntrlRect); this->ScreenToClient(&programEditCntrlRect);
GetClientRect
ScreenToClient
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)