ASingerMustDie
Programmer
Hi Everyone
Now imagine I am wishing to use a CSpinButtonCtrl to change the numeric contents of a CEdit control.
This is simple enough, of course, if I wish to increment/decrement the CEdit value by 1. Now suppose I actually wish to multiply the spin value by 5, i.e. show 5 for 1, 10 for 2, 15, 20, 25, etc...
How would I go about this?
I thought that maybe I could add code to a function that executes each time the spin is updated such as:
ceditvar.SetWindowText(5 * cspinvar.GetPos());
(Let's pretend you can pass a numeric value to SetWindowText, that isnt the problem here)
However, there is no appropraite function to execute each time the spin has been updated. What can be done?
Thanks in advance,
ASMD
Now imagine I am wishing to use a CSpinButtonCtrl to change the numeric contents of a CEdit control.
This is simple enough, of course, if I wish to increment/decrement the CEdit value by 1. Now suppose I actually wish to multiply the spin value by 5, i.e. show 5 for 1, 10 for 2, 15, 20, 25, etc...
How would I go about this?
I thought that maybe I could add code to a function that executes each time the spin is updated such as:
ceditvar.SetWindowText(5 * cspinvar.GetPos());
(Let's pretend you can pass a numeric value to SetWindowText, that isnt the problem here)
However, there is no appropraite function to execute each time the spin has been updated. What can be done?
Thanks in advance,
ASMD