flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Vasilev Vjacheslav 06 Oct 2004, 05:37
it short, but it works
ps. there are many short (not full - os depended) structures, if you want exact structure, do it for yourself ![]() ps. also good idea, if fasm will contain native variable (like %t) which show WINVER _________________ [not enough memory] |
|||
![]() |
|
JohnFound 06 Oct 2004, 06:11
The first element of the structure - cbSize shows the size of the structure. If you set it properly Windows can determine which version it is. Old structure will work for new IE versions (comctl32.dll), but new one maybe will not with old versions.
Of course we can define the structure this way: Code: struct TOOLINFO .cbSize dd ? .uFlags dd ? .hwnd dd ? .uId dd ? .Rect RECT ; should be ==> .rect RECT .hInst dd ? .lpszText dd ? if defined _WIN32_IE if _WIN32_IE >= $0300 .lParam dd ? end if end if ends Now if you define somewhere in the source _WIN32_IE = $301 for example, .lParam will be appended to the structure. |
|||
![]() |
|
vbVeryBeginner 06 Oct 2004, 10:35
Quote:
actually i didn't concern about that ![]() my post actually mean to let people know they got to change their .Rect to .rect ![]() ![]() thanks for showing the tricks JohnFound ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.