Is there a way to loop through all MFC Child Dialogs, MDI frames and etc? And is there a way to find out which dialog or window I am looping through?
You could use EnumChildWindows to iterate through child windows of certain window.
EnumChildWindows