I made a dialog and I handle the way it works (non MFC) and I was wondering if there is a way to get the type of control based on the handle I receive:
Is this possible without MFC and without manually parsing my resource script?Code:HWND hwndEditBoxName = GetDlgItem (m_hWnd, IDC_EDIT_NAME);
EDIT: More specifically, I do the following:
Code:HWND hwnd = GetTopWindow(m_hWnd); UINT id; // Loop through all the controls on the Window and save it's functions while (hwnd) { // Grab the next "Window" control hwnd = GetNextWindow(hwnd, GW_HWNDNEXT); // ** HOW DO I GET THE CONTROL TYPE?? ** // I want to do: // CButton btn; // if (GetDlgItemType() == PUSHBUTTON) btn = hwnd; ???? }



LinkBack URL
About LinkBacks


