flat assembler
Message board for the users of flat assembler.

Index > Windows > ToolBar structures in Win64 need updating

Author
Thread Post new topic Reply to topic
murder



Joined: 03 Nov 2011
Posts: 10
murder
Structure TBUTTON in file COMCTL64.INC should be defined as
Code:
struct TBBUTTON
  iBitmap   dd ?
  idCommand dd ?
  fsState   db ?
  fsStyle   db ?,6 dup ?
  dwData    dq ?         ;in original file this is dword
  iString   dq ?         ;in original file this is dword
ends    

Also for win64a.inc should be
Code:
TB_ADDBUTTONS   = WM_USER+20
TB_INSERTBUTTON = WM_USER+21    

and for win64w.inc
Code:
TB_INSERTBUTTON = WM_USER+67
TB_ADDBUTTONS   = WM_USER+68    

_________________
sorry for my english Embarassed
Post 12 Dec 2011, 07:03
View user's profile Send private message Reply with quote
murder



Joined: 03 Nov 2011
Posts: 10
murder
And may be need to add some new definitions
Code:
TBSTYLE_EX_MIXEDBUTTONS       = 08h
TBSTYLE_EX_HIDECLIPPEDBUTTONS = 10h ;don't show partially obscured buttons
TBSTYLE_EX_DOUBLEBUFFER       = 80h ;Double Buffer the toolbar

TBSTYLE_AUTOSIZE = 10h ;obsolete; use BTNS_AUTOSIZE instead
TBSTYLE_NOPREFIX = 20h ;obsolete; use BTNS_NOPREFIX instead

BTNS_BUTTON        = TBSTYLE_BUTTON     ; 0x0000
BTNS_SEP           = TBSTYLE_SEP        ; 0x0001
BTNS_CHECK         = TBSTYLE_CHECK      ; 0x0002
BTNS_GROUP         = TBSTYLE_GROUP      ; 0x0004
BTNS_CHECKGROUP    = TBSTYLE_CHECKGROUP ; (TBSTYLE_GROUP | TBSTYLE_CHECK)
BTNS_DROPDOWN      = TBSTYLE_DROPDOWN   ; 0x0008
BTNS_AUTOSIZE      = TBSTYLE_AUTOSIZE   ; 0x0010; automatically calculate the cx of the button
BTNS_NOPREFIX      = TBSTYLE_NOPREFIX   ; 0x0020; this button should not have accel prefix
BTNS_SHOWTEXT      = 40h                ; ignored unless TBSTYLE_EX_MIXEDBUTTONS is set
BTNS_WHOLEDROPDOWN = 80h    
Post 12 Dec 2011, 07:14
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 GitHub, YouTube, Twitter.

Website powered by rwasa.