CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    May 1999
    Posts
    23

    Progress control

    Hi all,

    I'm using CProgressCtrl class to implement a progress bar. The progress is not smooth and it is progressing by displaying blocks of rectangles. I don't like this. Is there any way to implement it such that it shows a smooth progress.

    thanks in advance
    bye



  2. #2
    Guest

    Re: Progress control

    use the style PBS_SMOOTH. you can set this in the dialog editor in VC++ 6.



  3. #3
    Join Date
    May 1999
    Posts
    23

    Re: Progress control

    Hello,

    I am not creating the progress control through the dialog editor. I'm creating it directly through the code by deriving a class from CProgressCtrl and I couldn't find any member functions of CProgressCtrl that can be used to set the style of the control. Please give me a solution.

    bye


  4. #4
    Guest

    Re: Progress control

    ok, so you're calling the Create() function then to create the progress control? just include the PBS_SMOOTH style for the dwStyle parameter of this function.



  5. #5
    Join Date
    May 1999
    Posts
    23

    Re: Progress control

    Thank you,

    If you don't mind, can I ask another question? The question is how can I arrange the controls in a dialog when the dialog is resized.

    thanks in advance
    bye


  6. #6
    Guest

    Re: Progress control

    How did you create a CProgressCtrl in your dialog window? I cant seem to manage it. my problem is that the dialog window wont display.
    Can you please post your dialog windows .cpp and .h file so i may see how it should be coded.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured