Solved

Win32 function to setpos in CProgressCtrl?

Posted on 1997-11-23
2
448 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
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C++ BOOL WINAPI ReadFile fails on windows 10 when reading from USB cable 9 429
Path of Workbook 3 77
Message not shown 5 50
Problem to App 4 81
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

776 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