CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2013
    Posts
    1

    Handling CDialogs in MFC app

    Hello All,

    I have a MFC app developed in VS 6.0

    User can open multiple dialogs in this app. Is there a way of keeping track of how many dialogs are open at a given time?

    Also, is there a way of getting the handle to each dialog from a central location?

    Because the dialogs are opened from different parts of the app, i.e., different files its hard to keep track of all dialogs.

    Any sample code will help.

    Thanks in advance.

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: Handling CDialogs in MFC app

    Quote Originally Posted by krisguy76 View Post
    User can open multiple dialogs in this app. Is there a way of keeping track of how many dialogs are open at a given time?

    Also, is there a way of getting the handle to each dialog from a central location?
    There would be, of course in case you organized the way.

    Because the dialogs are opened from different parts of the app, i.e., different files its hard to keep track of all dialogs.
    Nothing hard at all. You always can send some special message with dialog handle to your main window from your dialogs indicating dialog creation/destruction.
    Best regards,
    Igor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured