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. controlling Dialog size on runtime

controlling Dialog size on runtime

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 3 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.
  • P Offline
    P Offline
    Pazzuzu
    wrote on last edited by
    #1

    Hi all, Is it Possible to stop the resizing of a Dialog,from inside the "OnSize" event. Depening on the cx,CY values,I would like the dialog to be resized or not. If this is not the right place to the control the dialog size,where should I do it & how? >>OnSize(UINT nType, int cx, int cy) Thanks

    M T 2 Replies Last reply
    0
    • P Pazzuzu

      Hi all, Is it Possible to stop the resizing of a Dialog,from inside the "OnSize" event. Depening on the cx,CY values,I would like the dialog to be resized or not. If this is not the right place to the control the dialog size,where should I do it & how? >>OnSize(UINT nType, int cx, int cy) Thanks

      M Offline
      M Offline
      MailtoGops
      wrote on last edited by
      #2

      If it is MFC, do not call Base class version of OnSize()(CDialog::OnSize()) method.. " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan

      1 Reply Last reply
      0
      • P Pazzuzu

        Hi all, Is it Possible to stop the resizing of a Dialog,from inside the "OnSize" event. Depening on the cx,CY values,I would like the dialog to be resized or not. If this is not the right place to the control the dialog size,where should I do it & how? >>OnSize(UINT nType, int cx, int cy) Thanks

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        Pazzuzu wrote: Is it Possible to stop the resizing of a Dialog,from inside the "OnSize" event. Nope! you have to handle WM_GETMINMAXINFO for limiting size of the Dialog Box

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta VC Forum Q&A :- I/ IV

        P 1 Reply Last reply
        0
        • T ThatsAlok

          Pazzuzu wrote: Is it Possible to stop the resizing of a Dialog,from inside the "OnSize" event. Nope! you have to handle WM_GETMINMAXINFO for limiting size of the Dialog Box

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta VC Forum Q&A :- I/ IV

          P Offline
          P Offline
          Pazzuzu
          wrote on last edited by
          #4

          Thanks all...

          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