flat assembler
Message board for the users of flat assembler.

Index > Main > Fasm 1.67.21 and Flat ToolBar.

Author
Thread Post new topic Reply to topic
Everhest



Joined: 26 Jun 2008
Posts: 84
Location: Russia
Everhest
Hi everyone. Please help me. What moved 800h(TBSTYLE_FLAT) in fsStyle(db).

Code:
struct TBBUTTON
  iBitmap   dd ?
  idCommand dd ?
  fsState   db ?
  fsStyle   db ?
            dw ?
  dwData    dd ?
  iString   dd ?
ends    


and in MDSN

Code:
typedef struct _TBBUTTON { \\ tbb  
    int iBitmap; 
    int idCommand; 
    BYTE fsState; 
    BYTE fsStyle; 
    DWORD dwData; 
    int iString; 
} TBBUTTON, NEAR* PTBBUTTON, FAR* LPTBBUTTON; 
typedef const TBBUTTON FAR* LPCTBBUTTON;    

_________________
Forgive for my bad english, I from russia...
Post 18 Jul 2008, 22:26
View user's profile Send private message ICQ Number Reply with quote
Everhest



Joined: 26 Jun 2008
Posts: 84
Location: Russia
Everhest
I in than mistaken?
Post 18 Jul 2008, 22:44
View user's profile Send private message ICQ Number Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
I've just tested "printf("%d\n", sizeof(TBBUTTON));" in Visual C++, and prints 20 so the fasm declaration is OK. And how is it possible? Because that extra "dw" is used for padding so every dword sized field below it is in a multiple of four address.
Post 18 Jul 2008, 23:01
View user's profile Send private message Reply with quote
Everhest



Joined: 26 Jun 2008
Posts: 84
Location: Russia
Everhest
Ok. What create Flat ToolBar?
Post 18 Jul 2008, 23:04
View user's profile Send private message ICQ Number Reply with quote
Everhest



Joined: 26 Jun 2008
Posts: 84
Location: Russia
Everhest
Can there is example of the drawing the component?
Post 19 Jul 2008, 12:16
View user's profile Send private message ICQ Number Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Just in case someone else is expecting me to post an example don't wait anymore, I don't have an example so don't hesitate to post one yourself Smile
Post 19 Jul 2008, 16:34
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17714
Location: In your JS exploiting you and your system
revolution
LocoDelAssembly wrote:
Just in case someone else is expecting me to post an example don't wait anymore, I don't have an example so don't hesitate to post one yourself Smile
Hehe, yeah, I, for one, was waiting for another great example from LocoDelAssembly. Oh well, I guess I can survive without it. Maybe the lack of example will encourage someone to read the fucking manual?
Post 19 Jul 2008, 20:04
View user's profile Send private message Visit poster's website Reply with quote
Everhest



Joined: 26 Jun 2008
Posts: 84
Location: Russia
Everhest
Well, I itself shall write new component for itself... Post is finished.
Post 19 Jul 2008, 21:09
View user's profile Send private message ICQ Number Reply with quote
farrier



Joined: 26 Aug 2004
Posts: 274
Location: North Central Mississippi
farrier
A very basic example:

hth,

farrier


Description:
Download
Filename: ToolBar.zip
Filesize: 7.22 KB
Downloaded: 236 Time(s)


_________________
Some Assembly Required
It's a good day to code!
U.S.Constitution; Bill of Rights; Amendment 1:
... the right of the people peaceably to assemble, ...
The code is dark, and full of errors!
Post 20 Jul 2008, 12:21
View user's profile Send private message Reply with quote
Everhest



Joined: 26 Jun 2008
Posts: 84
Location: Russia
Everhest
All many thanks...
Post 28 Jul 2008, 09:12
View user's profile Send private message ICQ Number 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 GitHub, YouTube, Twitter.

Website powered by rwasa.