Solved

Win32 function to setpos in CProgressCtrl?

Posted on 1997-11-23
2
465 Views
Last Modified: 2013-11-20
I need a Win32 function to set the position of a progress
bar, CProgressCtrl. I've scanned the help files but I
can't find anything.
0
Comment
Question by:esdave
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 50 total points
ID: 1310652
Use

::SendMessage(m_hWnd, PBM_SETPOS, nPos, 0L);


0
 

Expert Comment

by:hotheart
ID: 1310653
Sorry..

I think that you should not use PBM_SETPOS message.
The reason is because the range of progress control is 0 to 65,535.
PBM_SETRANGE message use MAKELPARAM macro.
This macro combine both nLower and nUpper.
nLower and nUpper is the range of control.

My answer is you create your progress control.
There is a source code at "http://www.concentric.net/~cgalbrai".
Good lucks!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
bigDiff challenge 17 144
sum13 challenge 24 149
Path of Workbook 3 87
Change to event 1 138
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa‚Ķ
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question