Hi! KetilO

sorry for my bad English! I've downloaded your new RadASM ToolBar Creator, but I have trouble on creating ToolBar

in your sample of RichEditEditor, I made a little change when create toolbar thu adding a resource of toolbar bmp , the bmp ID is 1212, but run the recompiled exe file, I only see toolbar without bmp, I don't know where happened something wrong! I attached the snippet code and recompiled exe file

DoToolBar proc hInst:DWORD,hToolBar:HWND
LOCAL tbab:TBADDBITMAP

;Set toolbar struct size
invoke SendMessage,hToolBar,TB_BUTTONSTRUCTSIZE,sizeof TBBUTTON,0
;Set toolbar bitmap
push hInst
;=====================================
pop tbab.hInst
mov tbab.nID,1212
;=====================================
invoke SendMessage,hToolBar,TB_ADDBITMAP,15,addr tbab
;Set toolbar buttons
invoke SendMessage,hToolBar,TB_ADDBUTTONS,ntbrbtns,addr tbrbtns
mov eax,hToolBar
ret

DoToolBar endp
Posted on 2002-02-16 05:15:27 by dREAMtHEATER
Hi dREAMtHEATER

Change this line in the .rc file:

1212 bmp Res\Toolbar.bmp

to:

1212 BITMAP DISCARDABLE Res\Toolbar.bmp

and it should work.

KetilO
Posted on 2002-02-16 09:01:06 by KetilO