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

Вниз

GetWindowLong   Найти похожие ветки 

 
jonni   (2004-11-07 01:21) [0]

Есть вот такой кусок кода.........

struct TWIconDataT
{
 DWORD imageIndex;
 NOTIFYICONDATAW dw;
};
typedef TWIconDataT* pTWIconDataT;

struct TWIconsInfoT {
  int Cnt;
  pTWIconDataT* iconData;
};

struct TWDataT {
  DWORD unknown[7];
  TWIconsInfoT* iconsInfo;
  HIMAGELIST    iconList;
};

TWDataT* twd=(TWDataT*)GetWindowLong(NotifyWnd,0);

NotifyWnd это NotifyTrayWnd (System Tray)

Help по функции GetWindowLong показал то что ни одна из постоянных типа GWL_****  не имеет нулегого значения....

Что же получается при выполнение GetWindowLong с "0"????

кстати как это можно переписать на Delphi???

cgfcb,j


 
GuAV ©   (2004-11-07 02:25) [1]

jonni   (07.11.04 1:21)
Что же получается при выполнение GetWindowLong с "0"????

Из MSDN:

LONG GetWindowLong(          HWND hWnd,
   int nIndex
);


nIndex
[in] 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.
...

Remarks

Reserve extra window memory by specifying a nonzero value in the cbWndExtra member of the WNDCLASSEX structure used with the RegisterClassEx function.

Т.е. первый DWORD в "дополнительной памяти окна".



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

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

Наверх





Память: 0.44 MB
Время: 0.039 c
1-1102067876
Aleksandr.
2004-12-03 12:57
2004.12.19
Как получить доступ к FMemory TMemoryStream?


10-1072519836
Guest
2003-12-27 13:10
2004.12.19
TAO Developer s Guide


1-1102150483
Артем Владимирович
2004-12-04 11:54
2004.12.19
Включение графики в браузере


4-1099405020
Genocid
2004-11-02 17:17
2004.12.19
Системная ловушка


1-1102146910
DelphiN!
2004-12-04 10:55
2004.12.19
Как перевести в режим редактирования SubItems ListView-a?





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский