Jump to content
  • Advertisement
Sign in to follow this  
ff8

[.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.

If you intended to correct an error in the post then please contact us.

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,
				hwnd, (HMENU)IDC_MAIN_STATUS, GetModuleHandle(NULL), NULL);
			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 this post


Link to post
Share on other sites
Advertisement
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 this post


Link to post
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 this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!