Whenever I use this code in my MainWindow it displays the StatusBar but won't cut the StatusBar into three pieces...
I checked the return value for the SendMessage call and it is TRUE for succesful...

sbParts db 80,140,-1

invoke CreateStatusWindow,WS_CHILD or WS_VISIBLE,ADDR AppName,hwnd,ID_STATUSBAR
mov hStatusBar,eax
invoke SendMessage,eax,SB_SETPARTS,3,ADDR sbParts

is it a bug? or am I missing something?

Thanks for helping me out...

JimmyClif :alright:
Posted on 2001-11-02 20:24:05 by JimmyClif
You have declared sbParts incorrectly. It should be an array


LOCAL sbParts[4]:DWORD

mov [sbParts + 0],80
mov [sbParts + 4],140
mov [sbParts + 8],-1

invoke SendMessage,hStatusBar,SB_SETPARTS,3,addr sbParts
Posted on 2001-11-02 23:06:12 by anon
Thanks a lot...

You helped me out big time... ;-)
Posted on 2001-11-03 00:10:25 by JimmyClif