Edit Control Boxes in win32

Started by
1 comment, last by chollida1 19 years, 1 month ago
I need to be able to take a float value as input with the edit control boxes in win32? How can I do that? Can it be done with a simple flag in the IDE or do I need to call some functions to allow floating point values? Thanks
Advertisement
Once you get the string input from the edit control you could use the atof() function to convert it to a double.
-------------------------Rayoom Sledge Hammer Productions - Programmer
A better solution might be to sub class the edit control and use DDX to get the value back as a float with no conversion.

Cheers
Chris
CheersChris

This topic is closed to new replies.

Advertisement