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 :)");
[.net] Status bar/Tools bar in Win32 API
Hello everyone ^^,
i am trying to divide the Status bar to 3 parts i tried it like this
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 ,
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.
Its been a while but try this...
int statwidths[] = {100,200,290,-1};
I think this was posted in the wrong forum too.
int statwidths[] = {100,200,290,-1};
I think this was posted in the wrong forum too.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement