How to open window maximized

This is a discussion on How to open window maximized within the Windows Programming forums, part of the Platform Specific Boards category; Hi! Does anyone know how to open window/view maximized using MFC!?!?! Thanks new to MFC...

  1. #1
    Unregistered
    Guest

    Question How to open window maximized

    Hi!
    Does anyone know how to open window/view maximized using MFC!?!?!

    Thanks
    new to MFC

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    88
    I don't know much about MFC, but with winapi you would call ShowWindow() with SW_SHOWMAXIMIZED
    Hope you don't mind my bad english, I'm Austrian!

  3. #3
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Originally posted by Shade
    I don't know much about MFC, but with winapi you would call ShowWindow() with SW_SHOWMAXIMIZED
    Isn't the constant SW_MAXIMIZE?
    1978 Silver Anniversary Corvette

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    223

    showing window maximized

    you can maximize it from withing the view
    ((CMDIChildWnd*)GetParent())->MDIMaximize( );


    CMDIFrameWnd::MDIMaximize
    void MDIMaximize( CWnd* pWnd ); //where pWnd is the window you intend to maximize....


    if this is an MDI app ofcourse...
    zMan

  5. #5
    Registered User
    Join Date
    Aug 2001
    Posts
    223

    opening view maximized

    by the way do this somewhere during initialization for the form like initial update or something....
    zMan

  6. #6
    Unregistered
    Guest
    Thank you all for your tip!

    They all worked but I have another problem now that maximized window caused!

    On my view I draw a two line graph, one below another.
    The graph's enlarges within window being maximized and the second line graph overstepes half of the first line graph.
    That's not good!

    It's SDI app.

    Can I fix that somehow???

    Best Regards
    new to MFC


    p.s. My knowledge of english languages is not to good as well, it's not my mother language either.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. show window minimized maximized without focus taken
    By eXistenZ in forum Windows Programming
    Replies: 16
    Last Post: 12-15-2008, 12:38 PM
  2. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  3. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 11:17 AM
  4. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 11:14 PM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21