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. Increase resizing border width....

Increase resizing border width....

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.
  • N Offline
    N Offline
    Neha
    wrote on last edited by
    #1

    Hi, Is there anyway to increase the dialog border width? Regards Neha

    R P 2 Replies Last reply
    0
    • N Neha

      Hi, Is there anyway to increase the dialog border width? Regards Neha

      R Offline
      R Offline
      RuiSantiago
      wrote on last edited by
      #2

      Use the MoveWindow function Ex. MoveWindow(&myRect, TRUE);

      1 Reply Last reply
      0
      • N Neha

        Hi, Is there anyway to increase the dialog border width? Regards Neha

        P Offline
        P Offline
        Paul M Watt
        wrote on last edited by
        #3

        You can do that in a number of ways. 1) you can use WM_NCCALCSIZE to recalculate the size of the client area for your window or dialog, by reducing the default size of your client area that will increase the size of the borders. 2) You can handle the WM_NCHITTEST yourself, and return the HTRIGHT, HTBOTTOM etc for all of the border cases, and increase the dimensions that count as the border. This will make all of the other default message handlers act as if the border is wider. In either of these cases I would handle the WM_NCPAINT message in order to paint and extend the appearance of hte width of the new border that you create.


        Build a man a fire, and he will be warm for a day
        Light a man on fire, and he will be warm for the rest of his life!

        N 1 Reply Last reply
        0
        • P Paul M Watt

          You can do that in a number of ways. 1) you can use WM_NCCALCSIZE to recalculate the size of the client area for your window or dialog, by reducing the default size of your client area that will increase the size of the borders. 2) You can handle the WM_NCHITTEST yourself, and return the HTRIGHT, HTBOTTOM etc for all of the border cases, and increase the dimensions that count as the border. This will make all of the other default message handlers act as if the border is wider. In either of these cases I would handle the WM_NCPAINT message in order to paint and extend the appearance of hte width of the new border that you create.


          Build a man a fire, and he will be warm for a day
          Light a man on fire, and he will be warm for the rest of his life!

          N Offline
          N Offline
          Neha
          wrote on last edited by
          #4

          Thanks a lot . Neha

          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