DoFileToolBar proc hInst:DWORD,hOwner:HWND
LOCAL tbab:TBADDBITMAP
LOCAL hToolBar:HWND
;Create the toolbar
invoke CreateWindowEx,0,addr szToolBarClass,0,WS_CHILD or WS_VISIBLE or TBSTYLE_FLAT or CCS_NODIVIDER,2,0,0,0,hOwner,IDC_FILETB,hInst,0
mov hToolBar,eax
;Set toolbar struct size
invoke SendMessage,hToolBar,TB_BUTTONSTRUCTSIZE,sizeof TBBUTTON,0
;Set toolbar bitmap
push HINST_COMMCTRL
pop tbab.hInst
invoke SendMessage,hToolBar,TB_ADDBITMAP,15,addr tbab
;Set toolbar buttons
invoke SendMessage,hToolBar,TB_ADDBUTTONS,fileTB_,addr fileTB
mov eax,hToolBar
ret
DoFileToolBar endp
DoRebar proc hwnd:HWND,hrebar:HWND,hInst:DWORD
LOCAL rbbi:REBARBANDINFO
invoke GetDlgItem,hwnd,IDC_REB1
mov hrebar,eax
mov rbbi.cbSize,sizeof REBARBANDINFO
mov rbbi.fMask,RBBIM_STYLE or RBBIM_CHILD or RBBIM_SIZE or RBBIM_CHILDSIZE
mov rbbi.fStyle,RBBS_GRIPPERALWAYS or RBBS_CHILDEDGE
;FILE TOOLBAR
mov rbbi.lx,80
mov rbbi.cyMinChild, 22
mov rbbi.cxMinChild, 123
invoke DoFileToolBar,hInst,hwnd
mov rbbi.hwndChild,eax
mov hFileTB,eax
mov hFileTB,eax
invoke SendMessage,hrebar,RB_INSERTBAND,0,addr rbbi
ret
DoRebar endp
Why is the toolbar not wanting to child with the REBARBAND ???