Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Easy (?) Dialog question

Easy (?) Dialog question

Scheduled Pinned Locked Moved C / C++ / MFC
questioncom
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cabadam
    wrote on last edited by
    #1

    I have a dialog based app. In the dialog editor I added the maximize/minimize box. I want the dialog box to START maximized. How can I do this? Thx Adam cabadam@houston.rr.com

    R 1 Reply Last reply
    0
    • C Cabadam

      I have a dialog based app. In the dialog editor I added the maximize/minimize box. I want the dialog box to START maximized. How can I do this? Thx Adam cabadam@houston.rr.com

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      Handle WM_INITDLG (OnInitDialog). In the handler do this:

      PostMessage (WM_SYSCOMMAND, SC_MAXIMIZE);

      /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com

      C 1 Reply Last reply
      0
      • R Ravi Bhavnani

        Handle WM_INITDLG (OnInitDialog). In the handler do this:

        PostMessage (WM_SYSCOMMAND, SC_MAXIMIZE);

        /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com

        C Offline
        C Offline
        Cabadam
        wrote on last edited by
        #3

        Thanks! Adam cabadam@houston.rr.com

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups