flat assembler
Message board for the users of flat assembler.

Index > Windows > About extended structure members

Author
Thread Post new topic Reply to topic
BiDark



Joined: 22 Jun 2003
Posts: 109
Location: .th
BiDark
I have a comctl32 structure like this.

Code:
struc NMTBCUSTOMDRAW
{
    .nmcd                 NMCUSTOMDRAW
    .hbrMonoDither        dd ?
    .hbrLines             dd ?
    .hpenLines            dd ?
    .clrText              dd ?
    .clrMark              dd ?
    .clrTextHighlight     dd ?
    .clrBtnFace           dd ?
    .clrBtnHighlight      dd ?
    .clrHighlightHotTrack dd ?
    .rcText               RECT
    .nStringBkMode        dd ?
    .nHLStringBkMode      dd ?
    .iListGap             dd ?
}
struct NMTBCUSTOMDRAW
    


Actually .iListGap is available on WINNT > 501, the question is if I use this structure below that (98,Me), will it works (without using of it)?

I want to share this structure on every OS without removing this member, is it possible?
Post 30 Nov 2003, 10:12
View user's profile Send private message Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
scientica
Yes it'd work (at leat for one controll), but you'll have an extra dword for nothing. Mybee this could work:

Code:
struc NMTBCUSTOMDRAW
{
    .nmcd                 NMCUSTOMDRAW
    .hbrMonoDither        dd ?
    .hbrLines             dd ?
    .hpenLines            dd ?
    .clrText              dd ?
    .clrMark              dd ?
    .clrTextHighlight     dd ?
    .clrBtnFace           dd ?
    .clrBtnHighlight      dd ?
    .clrHighlightHotTrack dd ?
    .rcText               RECT
    .nStringBkMode        dd ?
    .nHLStringBkMode      dd ?
    if defined OS_WIN_XP
        .iListGap         dd ?
    end if
}
struct NMTBCUSTOMDRAW    

_________________
... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself.
- Bradley Kuhn
Post 30 Nov 2003, 13:03
View user's profile Send private message Visit poster's website Reply with quote
BiDark



Joined: 22 Jun 2003
Posts: 109
Location: .th
BiDark
Thx, I will try
Post 02 Dec 2003, 02:08
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.