Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.09.19;
Скачать: 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 вся ветка

Текущий архив: 2004.09.19;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.058 c
1-1093937207
8ung
2004-08-31 11:26
2004.09.19
Чтение байтов из файла


4-1092046870
Destroyer0
2004-08-09 14:21
2004.09.19
Событие


3-1092802109
Марат
2004-08-18 08:08
2004.09.19
Ошибка в DBGrid


3-1092903418
Вера
2004-08-19 12:16
2004.09.19
TreeView


4-1091704068
Santana
2004-08-05 15:07
2004.09.19
Определить дескриптор Grid-a