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. Progress bar being resized

Progress bar being resized

Scheduled Pinned Locked Moved C / C++ / MFC
6 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
    PrashantJ
    wrote on last edited by
    #1

    Hi, I have this code to draw a progress bar at run time, but I dont' want the user to resize it. So is there any way by which I could restrict the user from resizing it. CProgressCtrl m_ProgressBar; m_ProgressBar.Create(WS_CHILD|WS_VISIBLE|WS_THICKFRAME , CRect(10,rectWnd.top + headerHeight+55,window.Width()-2*10,20), (CWnd *)this, IDC_PROGRESSBAR); I think will have to add some WS_ option but don't know exactly. Thanks, PJ

    D K 2 Replies Last reply
    0
    • P PrashantJ

      Hi, I have this code to draw a progress bar at run time, but I dont' want the user to resize it. So is there any way by which I could restrict the user from resizing it. CProgressCtrl m_ProgressBar; m_ProgressBar.Create(WS_CHILD|WS_VISIBLE|WS_THICKFRAME , CRect(10,rectWnd.top + headerHeight+55,window.Width()-2*10,20), (CWnd *)this, IDC_PROGRESSBAR); I think will have to add some WS_ option but don't know exactly. Thanks, PJ

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Unless I'm missing something here, controls are not normally resizeable at runtime.


      "Take only what you need and leave the land as you found it." - Native American Proverb

      P 1 Reply Last reply
      0
      • D David Crow

        Unless I'm missing something here, controls are not normally resizeable at runtime.


        "Take only what you need and leave the land as you found it." - Native American Proverb

        P Offline
        P Offline
        PrashantJ
        wrote on last edited by
        #3

        But I draw other controls like button, edit box, group box, They are not resizable.. Thanks,

        D 1 Reply Last reply
        0
        • P PrashantJ

          But I draw other controls like button, edit box, group box, They are not resizable.. Thanks,

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          PrashantJ wrote:

          But I draw other controls like button, edit box, group box, They are not resizable..

          My point exactly.


          "Take only what you need and leave the land as you found it." - Native American Proverb

          1 Reply Last reply
          0
          • P PrashantJ

            Hi, I have this code to draw a progress bar at run time, but I dont' want the user to resize it. So is there any way by which I could restrict the user from resizing it. CProgressCtrl m_ProgressBar; m_ProgressBar.Create(WS_CHILD|WS_VISIBLE|WS_THICKFRAME , CRect(10,rectWnd.top + headerHeight+55,window.Width()-2*10,20), (CWnd *)this, IDC_PROGRESSBAR); I think will have to add some WS_ option but don't know exactly. Thanks, PJ

            K Offline
            K Offline
            krmed
            wrote on last edited by
            #5

            Remove the WS_THICKFRAME style. Good luck. Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

            P 1 Reply Last reply
            0
            • K krmed

              Remove the WS_THICKFRAME style. Good luck. Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

              P Offline
              P Offline
              PrashantJ
              wrote on last edited by
              #6

              No that didn't work :(

              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