Creating Mulipart Statusbar
Hi, I want to create a multipart statusbar but it does not seem to work. Here is what I am doing:
Code:
static int iwidth[2];
statushwnd = CreateWindowEx(NULL,
STATUSCLASSNAME,
"",
WS_CHILD | WS_VISIBLE | SBS_SIZEGRIP,
0,
0,
0,
0,
winhwnd,
(HMENU) ID_STATUSBAR,
hinst,
NULL);
SendMessage(statushwnd, SB_SETTEXT, 0 , (LPARAM)"Part #1");
SendMessage(statushwnd, SB_SETTEXT, 1 | SBT_POPOUT, (LPARAM)"Part #2");
case WM_SIZE:
iwidth[1] = LOWORD(lparam) / 2;
iwidth[2] = -1;
SendMessage(statushwnd, SB_SETPARTS, 4, (LPARAM)iwidth);
I can see two parts but I am unable to see the text on them.
Do you know what is wrong??