Win32 way of Getting Dialog Control Type?
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?
HWND hwndEditBoxName = GetDlgItem (m_hWnd, IDC_EDIT_NAME);
EDIT: More specifically, I do the following:
HWND hwnd = GetTopWindow(m_hWnd);
// Loop through all the controls on the Window and save it's functions
// 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; ????