Вниз
Скачать: CL | DM;

WndClassEx.cbWndExtra (cbClsExtra)   Найти похожие ветки 

 
akvilon ©   (2004-08-03 00:13) [0]

Добрый час, Мастера! В структуре wndclass есть параметры, задающие количество дополнительных байт, присоединяемых к окну или классу окна cbWndExtra и cbClsExtra. А как в них писать и читать их потом?
Через GetWindowLong и GWL_USERDATA?


 
GuAV ©   (2004-08-03 00:28) [1]


> Через GetWindowLong и GWL_USERDATA?


Через GetWindowLong но не GWL_USERDATA.

LONG GetWindowLong(

   HWND hWnd, // handle of window
   int nIndex  // offset of value to retrieve
  );

nIndex

Specifies the zero-based offset to the value to be retrieved. Valid values are in the range zero through the number of bytes of extra window memory, minus four; for example, if you specified 12 or more bytes of extra memory, a value of 8 would be an index to the third 32-bit integer. To retrieve any other value, specify one of the following values:

т.е. не GWL_USERDATA, а смещение "в дополнительных байтах", от 0 до cbWndExtra - 4


 
GuAV ©   (2004-08-03 00:30) [2]

Для  cbClsExtra - аналогично с GetClassLong
Запись - соовт-но Set


 
akvilon ©   (2004-08-03 00:34) [3]

Ах вот как!!! ё-моё! как просто
Спасибо :)



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.027 c
14-1092948046
ИМХО
2004-08-20 00:40
2004.09.19
Николай Карполь


4-1091610721
Ven
2004-08-04 13:12
2004.09.19
TAPI


3-1093002969
MaXie
2004-08-20 15:56
2004.09.19
Из жизни потоков2


1-1094532016
Andrey V.
2004-09-07 08:40
2004.09.19
Можно ли в ToolBar ...


14-1093517950
BorisUK
2004-08-26 14:59
2004.09.19
Автоматическое тестирование программ




   Наверх