Archived

This topic is now archived and is closed to further replies.

JensE

UpDown Control + float-Numbers?

Recommended Posts

JensE    122
Hi all, Is there a way to implement this? I don''t use MFC but the normal Win32-API and create an UpDown common control. Then I associate it with a usual edit control. The UpDown control only seems to accept increments and decrements of whole numbers and not floating point values. Did anyone has the same problem?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
don''t set the auto-buddy or set-buddy-int styles. do the incrementing/decrementing yourself, in code, using the up/down control''s notification messsages. for each message received, simply increment/decrement your float by whatever value you choose to use as your delta, and then re-convert the float to a text string and set the accompanying edit/static control''s window text to that.

Share this post


Link to post
Share on other sites