[an error occurred while processing this directive]
Недопонимаю разницу в форматах инта для CSliderCtrl и CSpinButtonCtrl
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)

миниатюрный аудио-видеорекордер mAVR

Отправлено колян безпарольный 20 октября 2005 г. 21:16

Из 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: 
NoIX ключ Запомнить

Тема (обязательно):
Сообщение:

Ссылка на URL: 
Название ссылки: 

URL изображения: 


Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru