If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

MDI interface question

Hi, ALL,
In the Visual Studio if you open too many windows, in the "Window" menu an additional menu will be added - "Windows...". When you select this menu, the dialog pops-up which displays all open documents and user can select which document to close, which to select/activate.
Is this handler (i.e. showing dialog) provided by Windows itself or I have to write some message handler?

Re: MDI interface question

Hi, D Drmmr,
I just tried to create a new MFC application with the wizard. There is no mention of such menu and the handler.
Problem is I am not working with MFC but with Win32 API and I don't even see what ID the wizard/MDI supplies for that particular sub-menu.

Re: MDI interface question

Originally Posted by OneEyeMan

Hi, D Drmmr,
I just tried to create a new MFC application with the wizard. There is no mention of such menu and the handler.
Problem is I am not working with MFC but with Win32 API and I don't even see what ID the wizard/MDI supplies for that particular sub-menu.

Any idea?

Thank you.

When you create an MFC MDI application, you get the Window menu, including the feature you mention for free. It's all handled by the framework (or the WinAPI, I don't know).
If you don't use MFC, then do you get the Window menu for free or did you have to make this yourself?
Did you try to use Spy++ to find which message is sent?

Cheers, D Drmmr

Please put [code][/code] tags around your code to preserve indentation and make it more readable.

As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.