CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: MFC

  1. #1
    Join Date
    May 1999
    Location
    Hyderabad, India
    Posts
    8

    MFC

    Dear Sir,
    In MFC programs, may I know the procedure for these problems:


    1. After creation of a window and help menu attached to it, when the user clicks the help item, a Pop-up window appears. For this, don't we require the handle of the main (i.e., parent) window? How to get the handle for window? In class CFrameWnd, m_hWnd is a protected member!

    2. In the above (question #1), when the user clicks the pop-up window, another pop-up window comes, and so on upto a limit, say 5. When the actual parent window is closed, all the offspring windows automatically get destroyed.



    With many thanks,

    Yours sincerely,
    T.S. Prasad

  2. #2
    Guest

    Re: MFC

    1. Use GetSafeHwnd();
    2. What you need them to stay?



  3. #3
    Join Date
    May 1999
    Location
    Hyderabad, India
    Posts
    8

    Re: MFC

    Dear Sir/Madam,
    Thank you very much for your suggestion. I hope I will obtain such benefits from peers like you in future, too.



    With many thanks,

    Yours sincerely,
    T.S. Prasad

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