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

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

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



Память: 0.45 MB
Время: 0.023 c
4-1099866123
Змей
2004-11-08 01:22
2004.12.19
ЛОгин юзера


1-1101935725
Tack
2004-12-02 00:15
2004.12.19
THotKey.Eanbled - лучше и не пробовать... :-(


6-1096637751
Lola
2004-10-01 17:35
2004.12.19
Семиричная кодировка в текстовом файле


14-1101796819
uny
2004-11-30 09:40
2004.12.19
человеческий фактор или свобода?


4-1099327420
Dionis
2004-11-01 19:43
2004.12.19
Визуальный компонент для работы с COM-портом




   Наверх