Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "WinAPI";
Текущий архив: 2004.09.19;
Скачать: [xml.tar.bz2];

Вниз

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 вся ветка

Форум: "WinAPI";
Текущий архив: 2004.09.19;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.195 c
11-1080588102
GuAV
2004-03-29 23:21
2004.09.19
KOL + MCK + Frame = ?


1-1094424402
Tom
2004-09-06 02:46
2004.09.19
Картинка в StringGrid


14-1094100676
Rule
2004-09-02 08:51
2004.09.19
Вопрос к жителям юга Украины, вчастности Одессы, Кречи и


1-1093935514
hgd
2004-08-31 10:58
2004.09.19
Подсмотреть команду с exe


3-1092706621
Вовчик
2004-08-17 05:37
2004.09.19
Не могу подключиться с серверу





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский