How do I create a status bar with multiple parts ? I tried :



.DATA

tab word 100, 200, -1

.CODE

INVOKE SendMessage, hStatus, SB_SIMPLE, 0, 0
INVOKE SendMessage, hStatus, SB_SETPARTS, 3, ADDR tab
INVOKE UpdateWindow, hStatus


but it displays a simple status bar. Thanks!
Posted on 2001-09-17 06:46:55 by Dr. Manhattan
Try this:

LOCAL sbPanels[4]:DWORD

invoke CreateStatusWindow,WS_CHILD or WS_VISIBLE or ,NULL,hWin,STAT_ID

mov hStatusBar,eax
mov ,125 ; pixels from left
mov ,250 ; pixels from left
mov ,375 ; pixels from left
mov , -1 ; last part
invoke SendMessage,hStatusBar,SB_SETPARTS,4,addr sbPanels


/Delight
Posted on 2001-09-17 07:00:08 by Delight
It works. Thanks a lot !
Posted on 2001-09-18 12:15:58 by Dr. Manhattan