I have an application I am developing which uses MDI windows.
The MDI child windows may be any one of (currently) three different Window Classes.
One of these classes is "Reports;" the user may have created any number of these child windows. I want to offer the user a menu option to "close all report windows."
I can enumerate all the MDI child Windows OK, but I can't seem to figure out how to tell if this particular child Window is of window class "Report."
I hoped there might be a GetWindowLong I could use to get the Classname of a window, but I can't seem to find one.
A thought I had was to identify the report windows with a "special" value using SetWindowLong (i.e., SetWindowLong hWnd, %GWL_USERDATA, %ID_REPORT_WINDOW) to set the extra data which I can interrogate later, but that seems clunky.
Is there a better way?
Regards,
MCM
The MDI child windows may be any one of (currently) three different Window Classes.
One of these classes is "Reports;" the user may have created any number of these child windows. I want to offer the user a menu option to "close all report windows."
I can enumerate all the MDI child Windows OK, but I can't seem to figure out how to tell if this particular child Window is of window class "Report."
I hoped there might be a GetWindowLong I could use to get the Classname of a window, but I can't seem to find one.
A thought I had was to identify the report windows with a "special" value using SetWindowLong (i.e., SetWindowLong hWnd, %GWL_USERDATA, %ID_REPORT_WINDOW) to set the extra data which I can interrogate later, but that seems clunky.
Is there a better way?
Regards,
MCM
Comment