Progress bar ctrl question
-
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.
-
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.
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.
-
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.
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.
-
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.
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.
-
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.
Once again thanks. I'll do that, relay nothing else to try.
-
Once again thanks. I'll do that, relay nothing else to try.
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!