G
Guest
Hello
I want to be able to show/hide an application that is running. When i am
getting the handles corresponding to an MS Office application (Excel for
example), it appears that i get a handle for the Excel MDI application which
got MDI children corresponding to the document(s) opened. Therefore, i am
able to hide the Excel window and the documents it contains. But there also
is a handle corresponding to the button which appears in the taskbar. Excel
doesnt seem to be a regular MDI application, as you can see an icon in the
taskbar for each opened documents, instead of seeing only one for the Excel
MDI application.
First i thought, this was working as the "Owner/Owned windows" model (Visual
Studio .net for example), which behavior is the following :
- when the owner is reduced, the owned windows are hidden.
- when the owner is restored, the owned windows are shown.
For this kind of applications i can call the GetWindow with OWNER
parameter, and find the owner this way.
But for the case of Excel application, the Excel MDI application does not
have any parent or owner. And the taskbar handle do not have any children. So
i dont know how to establish the relation between them.
Was hoping someone has maybe already had solved this problem. Help would be
more than appreciated
Thanks.
Flo
I want to be able to show/hide an application that is running. When i am
getting the handles corresponding to an MS Office application (Excel for
example), it appears that i get a handle for the Excel MDI application which
got MDI children corresponding to the document(s) opened. Therefore, i am
able to hide the Excel window and the documents it contains. But there also
is a handle corresponding to the button which appears in the taskbar. Excel
doesnt seem to be a regular MDI application, as you can see an icon in the
taskbar for each opened documents, instead of seeing only one for the Excel
MDI application.
First i thought, this was working as the "Owner/Owned windows" model (Visual
Studio .net for example), which behavior is the following :
- when the owner is reduced, the owned windows are hidden.
- when the owner is restored, the owned windows are shown.
For this kind of applications i can call the GetWindow with OWNER
parameter, and find the owner this way.
But for the case of Excel application, the Excel MDI application does not
have any parent or owner. And the taskbar handle do not have any children. So
i dont know how to establish the relation between them.
Was hoping someone has maybe already had solved this problem. Help would be
more than appreciated

Thanks.
Flo