Hi Alexander,
If you want to save X,Y-Coordinates, Height and Width of Specific Textfields then try with following:
CRect rcRect;
char strTmp[6];
CString strCord("TextBox1 :");
CEdit *pWnd= (CEdit *)GetDlgItem(IDC_EDIT1); pWnd->GetClientRect(rcRect);
pWnd->ClientToScreen(rcRect);
sprintf(strTmp," X=%d,",rcRect.left);
strCord += strTmp ;
sprintf(strTmp," Y=%d,",rcRect.top);
strCord += strTmp ;
sprintf(strTmp," H=%d,",rcRect.right);
strCord += strTmp ;
sprintf(strTmp," W=%d,",rcRect.bottom);
strCord += strTmp ;
CFile DataEntry;
DataEntry.Open("C:\\DataEntry.txt",CFile::modeCreate |CFile::modeWrite);
DataEntry.Write(strCord,strCord.GetLength());
DataEntry.Close();
And if u want to save all Textfields the try with following
Wnd *pWnd = GetWindow(GW_CHILD);
char strControl[20];
while(pWnd)
{
::GetClassName(ped->GetSafeHwnd(),strControl,20);
if (!strcmpi(strControl,"Edit") )
{
}
pWnd = pWnd->GetNextWindow();
}