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

    Call a form from other form (child window)

    I would like call a form from other form pressing a button
    (Creating child windows) in full screen in a SDI application with MFC

    The code attached blocked the second form!!!

    Thanks
    Attached Files Attached Files

  2. #2
    Join Date
    Feb 2002
    Posts
    5,757
    What do you mean "call?" Are you referring to calling a member function or creating a window? In general, one solution is messages. Send a message to main frame.

    Kuphryn

  3. #3
    Join Date
    Dec 2003
    Posts
    10

    Problems with forms

    Originally posted by kuphryn
    What do you mean "call?" Are you referring to calling a member function or creating a window? In general, one solution is messages. Send a message to main frame.

    Kuphryn
    My problem is :I want an application in visual c++ that begins with a form in full screen with a button, when you press it appear a second form (closing the first form) with more controls that allow you to go to other forms...

    My parcial solution:I have created a form that pressing a button pass to other form but this form is blocked and I cannot work with it at all!!

    Thanks again

  4. #4
    Join Date
    Feb 2002
    Posts
    5,757
    One solution is MDI architecture.

    Kuphryn

  5. #5
    Join Date
    Nov 2002
    Location
    Israel
    Posts
    182
    maybe we can help you without downloading?
    1. From my point of view you can use only one view and put on it all controls you need and your button will hide part of them and show other part.
    2. What do you think about PropertySheet ?
    3. You can handle the button from the first view in the frame class - destroy the first view and create the second. Obviously, that's what you did. Where is the button handler ? You put it into the first view and there you're trying to destroy this view and create the second one ?
    Good luck

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