Accessing 'window' menu infomation

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Accessing 'window' menu infomation

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:24 pm

by michaelj >> Thu, 5 Jun 2003 11:07:16 GMT

Hi,

MDI Frame forms in windows generally have a 'windows' menu that displays all their immediate children. What I would like to do is access the assigned numbers ( and possibly the windows handle) for each of these forms. Does anyone know of an API call(s) that could achieve this? I have had a bit of a search but could not find anything.

The reason I would like to do this is for a status-bar based summary of the type 'Window: 3 of 24'. i.e. similar to the way MSWord has 'page 3 of 12'

Obviously I can relatively easily implement tracking info, when I open,close and activate windows, that could be used to achieve this. But an API would save me the hassle of keeping window numbers and also keeping them synchronised with what the MDI parent is showing.

I suppose if im guaranteed of new windows always being added at the highest number +1, then sync is easy but can I be assured of this?

Thanks,
Michael J

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 21 guests

cron