[an error occurred while processing this directive]
|
Из MSDN
CSliderCtrl::GetPos
int GetPos( ) const;
Return Value
The current position.
Remarks
Call this function to retrieve the current position of the slider in a slider control.CSpinButtonCtrl::GetPos
int GetPos( ) const;
Return Value
The current position in the low-order word. The high-order word is nonzero if an error occurred.
Remarks
Call this function to retrieve the current position of a spin button control. When it processes the value returned, the control updates its current position based on the caption of the buddy window. The control returns an error if there is no buddy window or if the caption specifies an invalid or out-of-range value.
Одно и тоже действие перевода слайдера и спина из положение 0 в -1 выдает GetPos сответственно -1 и 65535. Оба инта преобразую через itoa и выдаю через SetWindowText. Чезахрень? Как правильно делать преобразование типов чтоб формат данных был в обоих случаях одинаковый?
E-mail: info@telesys.ru