CEdit associtted with spin control
-
How to set the max and min of CEdit associtted with spin control
-
How to set the max and min of CEdit associtted with spin control
anilksingh wrote:
How to set the max and min of CEdit associtted with spin control
Use
SetRange
orSetRange32
methods of the spin control.
Nibu thomas A Developer Programming tips[^] My site[^]
-
How to set the max and min of CEdit associtted with spin control
See here http://www.codeguru.com/cpp/controls/editctrl/article.php/c511/ Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_
-
How to set the max and min of CEdit associtted with spin control
For example do like this
m\_feEditValue.SetRange(6,23); m\_pSpin = (CSpinButtonCtrl\*) GetDlgItem(IDC\_SPIN1); m\_pSpin->SetBuddy(&m\_feEditValue); m\_pSpin->SetRange(6,23);
And also you should handle onvscroll event for spin, and onchange edit event for edit control. handle both events then you can do this. Hey do you know this is my hundredth post. :rose: Nice talking to you. :-O
If you judge people, you have no time to love them. -- Mother Teresa -
For example do like this
m\_feEditValue.SetRange(6,23); m\_pSpin = (CSpinButtonCtrl\*) GetDlgItem(IDC\_SPIN1); m\_pSpin->SetBuddy(&m\_feEditValue); m\_pSpin->SetRange(6,23);
And also you should handle onvscroll event for spin, and onchange edit event for edit control. handle both events then you can do this. Hey do you know this is my hundredth post. :rose: Nice talking to you. :-O
If you judge people, you have no time to love them. -- Mother TeresaG Haranadh wrote:
Hey do you know this is my hundredth post. :rose:
Good :)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You