flat assembler
Message board for the users of flat assembler.

Index > Windows > Note about TBBUTTON

Author
Thread Post new topic Reply to topic
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 09 Oct 2003, 09:56
IMPORTANT:
There is a bug in comctl32.inc file of FASMW.

It must be:
Code:
struc TBBUTTON
 {
   .iBitmap   dd ?
   .idCommand dd ?
   .fsState   db ?
   .fsStyle   db ?
   .resword   dw ? ; reserved for dword alignment
   .dwData    dd ?
   .iString   dd ?
 }    


This leads to wrong work with .dwData and .iString fields.
Post 09 Oct 2003, 09:56
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Dunduk



Joined: 08 Sep 2003
Posts: 38
Location: Russia
Dunduk 10 Oct 2003, 02:55
Strange, but Win32 Help said me that version of structure in comctl32.inc is right...
Post 10 Oct 2003, 02:55
View user's profile Send private message Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv 10 Oct 2003, 07:34
In C compiler, they help you align to dword. Now with assembler you need to do it yourself.

Even in masm it looks like
Code:
TBBUTTON STRUCT
  iBitmap           DWORD      ?
  idCommand         DWORD      ?
  fsState           BYTE       ?
  fsStyle           BYTE       ?
  _wPad1            WORD       ?
  dwData            DWORD      ?
  iString           DWORD      ?
TBBUTTON ENDS
    
Post 10 Oct 2003, 07:34
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
Dunduk



Joined: 08 Sep 2003
Posts: 38
Location: Russia
Dunduk 10 Oct 2003, 08:12
Mmm, I see... Thanks for information.
Post 10 Oct 2003, 08:12
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.