CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2005
    Posts
    364

    How to display the unfocussed parent window

    I want to display the unfocussed parent window (or dialog) from a child window (which is a modeless dialog). The display action is performed in the button event of the child window (or dialog).

  2. #2
    Join Date
    Mar 2005
    Location
    Romania,Cluj-Napoca
    Posts
    1,073

    Re: How to display the unfocussed parent window

    Well not sure didn't tried it ( If I understand correctly what you are trying to do ) .... but the logic should be that you show the parent window and put the focus back on child .
    Please use code tags [code] [/code]

    We would change the world, but God won't give us the sourcecode..
    Undocumented futures are fun and useful....
    ___
    ______
    Gili

  3. #3
    Join Date
    May 2005
    Posts
    364

    Re: How to display the unfocussed parent window

    Hi,

    What i want to do is:

    To display a (modeless)child dialog from a parent dialog (which i have already done)

    Since the Child window area is more than the parent, i can't see the total parent window. Hence i want to view the parent window now from Child window button, Still not closing the child window. That is i want to go back to parent window without closing the child window.

  4. #4
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: How to display the unfocussed parent window

    Take the parent's handle and use SetActiveWindow to bring it forth.
    Regards,
    Ramkrishna Pawar

  5. #5
    Join Date
    May 2005
    Posts
    364

    Re: How to display the unfocussed parent window

    Quote Originally Posted by Krishnaa
    Take the parent's handle and use SetActiveWindow to bring it forth.
    Hi,

    Sorry for the late reply.

    But I tried using the parent's handle and the SetActiveWindow, Its not working. The parent window, even though it gets the focus, it is still remaining behind the child window.

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