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 ctrl question

Progress bar ctrl question

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 Posts 2 Posters 1 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.
  • J Offline
    J Offline
    josip cagalj
    wrote on last edited by
    #1

    Hi. Why my progress bar ctrl doesn't apply smooth style although I set it's 'Smooth' property to TRUE??? I'm working in VS2008. Thanks.

    I 1 Reply Last reply
    0
    • J josip cagalj

      Hi. Why my progress bar ctrl doesn't apply smooth style although I set it's 'Smooth' property to TRUE??? I'm working in VS2008. Thanks.

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      Load the resource file in a text editor, and look for the progress control there - make sure the styles are as you expect. You can also use Spy++ to find the control, and look at its styles. This is assuming the control is part of a dialog, and created automatically. If you use CreateWindow(Ex) yourself, then look at your code. Also, many control styles are only valid at creation - using SetWindowLong (xxx_STYLE, blah)[*] won;t affect them. Iain. [*] too lazy to look it up, but I hope it makes the point.

      J 1 Reply Last reply
      0
      • I Iain Clarke Warrior Programmer

        Load the resource file in a text editor, and look for the progress control there - make sure the styles are as you expect. You can also use Spy++ to find the control, and look at its styles. This is assuming the control is part of a dialog, and created automatically. If you use CreateWindow(Ex) yourself, then look at your code. Also, many control styles are only valid at creation - using SetWindowLong (xxx_STYLE, blah)[*] won;t affect them. Iain. [*] too lazy to look it up, but I hope it makes the point.

        J Offline
        J Offline
        josip cagalj
        wrote on last edited by
        #3

        Thanks Iain. I've looked up using Spy++ and PBS_SMOOTH is present!? The control is part of dialog, added on from toolbox on the dialog. I don't use any code like 'CreateWindow...' or setting any style with 'SetWindowLong...' Strange? Also, forget to mention I'm on XP.

        I 1 Reply Last reply
        0
        • J josip cagalj

          Thanks Iain. I've looked up using Spy++ and PBS_SMOOTH is present!? The control is part of dialog, added on from toolbox on the dialog. I don't use any code like 'CreateWindow...' or setting any style with 'SetWindowLong...' Strange? Also, forget to mention I'm on XP.

          I Offline
          I Offline
          Iain Clarke Warrior Programmer
          wrote on last edited by
          #4

          josip cagalj wrote:

          Also, forget to mention I'm on HP.

          I saw your original post! I'm more of a fan of Heinz myself... Not sure what to recommend really. I'd suggest starting an empty project with a dialog and progress bar. Build up from there - see what you're doing differently. Iain.

          J 1 Reply Last reply
          0
          • I Iain Clarke Warrior Programmer

            josip cagalj wrote:

            Also, forget to mention I'm on HP.

            I saw your original post! I'm more of a fan of Heinz myself... Not sure what to recommend really. I'd suggest starting an empty project with a dialog and progress bar. Build up from there - see what you're doing differently. Iain.

            J Offline
            J Offline
            josip cagalj
            wrote on last edited by
            #5

            Once again thanks. I'll do that, relay nothing else to try.

            J 1 Reply Last reply
            0
            • J josip cagalj

              Once again thanks. I'll do that, relay nothing else to try.

              J Offline
              J Offline
              josip cagalj
              wrote on last edited by
              #6

              OK. I've tried opening new project (dialog based) and put progress ctrl on dialog with smooth property and still nothing. I've did some surfing on net and found similar questions, they suggested (over at MSDN) to change windows theme to classic. After doing so, my progress ctrl did work with smooth style applied but come on that can't be solution!? I don't wont to do that!

              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