Search code examples
c++mfc

Loop through MFC Child Dialogs, MDIFrames etc


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?


Solution

  • You could use EnumChildWindows to iterate through child windows of certain window.