starting with a maximized window

This is a discussion on starting with a maximized window within the Windows Programming forums, part of the Platform Specific Boards category; How do you make the window maximized when the program starts?...

  1. #1
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269

    starting with a maximized window

    How do you make the window maximized when the program starts?
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  2. #2
    Registered User
    Join Date
    May 2002
    Posts
    50

    Hmmm.... weird...

    Well presumably you'd use WS_MAXIMIZE when you specify the windows style in the CreateWindowEx() function. But when I do that, it removes the X, minimize, maximize boxes, and makes the window useless....

    So I'm not exactly sure how to specify the style. It almost seems like it will only create a maximized window as a CHILD window of some other process... that doesn't seem right..

  3. #3
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    Try using WS_MAXIMISE with the

    WS_OVERLAPPEDWINDOW

    style as well.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  4. #4
    Registered User
    Join Date
    May 2002
    Posts
    50
    Tried that... doesn't work. In fact, nothing seems to work. No matter where I put it, it never makes a maximized window.. grrr....

  5. #5
    Registered User
    Join Date
    Dec 2001
    Posts
    421
    hwnd = CreateWindow(blah, blah, blah);
    ShowWindow(hwnd, SW_MAXIMIZE);
    Quidquid latine dictum sit, altum sonatur.
    Whatever is said in Latin sounds profound.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C or C++
    By AcerN30 in forum Game Programming
    Replies: 41
    Last Post: 05-30-2008, 07:57 PM
  2. how i create a window whith all it's elements
    By rasheed in forum Windows Programming
    Replies: 1
    Last Post: 05-31-2006, 07:53 PM
  3. Adding buttons, edit boxes, etc to the window
    By rainmanddw in forum Windows Programming
    Replies: 1
    Last Post: 04-10-2006, 04:07 PM
  4. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 11:12 PM
  5. Invoking MSWord
    By Donn in forum C Programming
    Replies: 21
    Last Post: 09-08-2001, 05:08 PM

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