003
28.04.2005, 11:28 Uhr
~urs
Gast
|
..bekommt man denn wenigstens den NAMEN über die control-id heraus?? , indem man z.b. in der Dialogklasse selbst damit arbeitet:
Man klickt z.B. auf einen Button im Dialog, der das hier macht:
//Run over all Controls for (CWnd* pWnd = CWnd::FromHandle(::FindWindowEx(m_hWnd, NULL, _T("Edit"), NULL)); pWnd != NULL; pWnd = CWnd::FromHandle(::FindWindowEx(m_hWnd, pWnd->m_hWnd, _T("Edit"), NULL))) { //name name of control such as "IDC_DATE_EDIT" //remember in List } for (/*CWnd**/ pWnd = CWnd::FromHandle(::FindWindowEx(m_hWnd, NULL, _T("Button"), NULL)); pWnd != NULL; pWnd = CWnd::FromHandle(::FindWindowEx(m_hWnd, pWnd->m_hWnd, _T("Button"), NULL))) { //get name of control such as IDC_YES_RADIO //remember in List }
//All Controls in List IDC_DATE_EDIT IDC_TIME_EDIT IDC_YEAR_EDIT ... IDC_YES_RADIO IDC_NO_RADIO IDC_GREEN_RADIO IDC_YELLOW_RADIO ...
Thx! |