So, I have a dialog application using pure WinAPI. There is a main dialog box, and then a few other dialogs, which are tool windows. These tool windows are designed for free placement, the user can drag them, hide them and show them, but they do not have a taskbar entry. This is what I intended, but the problem is that when I switch from the main window to another application, then click on the taskbar title for the main window, the main window will appear, but this will not happen in the tool windows. They remain hidden behind the main window, and sometimes with the windows of other applications, and you cannot use them until you move all the topmost windows and pull out the window tool.
So, what I'm trying to do to get around this, when the user restores the window from a minimum, I want to list all the tool windows and bring them to the forefront, perhaps by calling SetActiveWindow() .
But what message is sent when restoring a window? I thought WM_SHOW or WM_RESTORE, but they do not exist.
Another question, and if you answer this question, the first question does not matter, because I will no longer need to use this workaround: is there a better way to bring all the tool windows to the front?
source share