Link to home
Start Free TrialLog in
Avatar of hotheart
hotheart

asked on

Is there no text for CProgressCtrl?

Some documents tell us text of CProgressCtrl.
In the on-line Help, I saw it.
In default processing message, there are WM_GETFONT and WM_SETFONT.
In class library reference, too.
In the first, there is a text below.
"...display, if any, the text..."

How can I display, if any, the text?

Please give me help!
ASKER CERTIFIED SOLUTION
Avatar of RONSLOW
RONSLOW

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hotheart
hotheart

ASKER

Of course, I can't display any text.

But On Help, There is a title "Default progress bar message processing".
In other section there is a "Default ... message processing".
Slider control has no WM_GETFONT and WM_SETFONT.

So I think I can display text on "blue block".
Thank for your answer!

That appears to be a documentation error.

The progress control will process these messages (otherwise you'd have to), and if you owner draw the control and try to output text, then I would say that the font you set with WM_SETFONT would be the one that would be used.

But if you let the control draw itself, then you won't get any text.