Thread: starting with a maximized window

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

    starting with a maximized window

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

  2. #2
    Registered User
    Join Date
    May 2002

    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
    near a computer
    Try using WS_MAXIMISE with the


    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
    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
    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, 06: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, 06:53 PM
  3. Adding buttons, edit boxes, etc to the window
    By rainmanddw in forum Windows Programming
    Replies: 1
    Last Post: 04-10-2006, 03:07 PM
  4. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM
  5. Invoking MSWord
    By Donn in forum C Programming
    Replies: 21
    Last Post: 09-08-2001, 04:08 PM