[.net] Status bar/Tools bar in Win32 API

This topic is 4349 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

Hello everyone ^^, i am trying to divide the Status bar to 3 parts i tried it like this
HWND hStatus;
int statwidths[] = {100,100,90,-1};
hStatus = CreateWindowEx(0, STATUSCLASSNAME, NULL,
WS_CHILD | WS_VISIBLE | SBARS_SIZEGRIP, 0, 0, 0, 0,
SendMessage(hStatus, SB_SETPARTS, sizeof(statwidths)/sizeof(int), (LPARAM)statwidths);
SendMessage(hStatus, SB_SETTEXT, 0, (LPARAM)"Hi there :)");


all i got was 2 parts one small and one big =\ i don't know what to do and about Tools bar i want make more than one tools bar one after one like usually apps thank you ,

Share on other sites
Just curious, if you are using .Net why are you not using the .Net equivalents to these controls instead of using an (ugly) diversion into Win32 API? In general it will be easier, and you can use a nice IDE (Google "Visual Studio Express" if you don't have one) to place status bars and tool bars and edit them visually.

Share on other sites
Its been a while but try this...

int statwidths[] = {100,200,290,-1};

I think this was posted in the wrong forum too.

Share on other sites
thanks Mike2343 ^^

• 40
• 15
• 10
• 23
• 19