1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
case WM_CREATE:
{
// Create status bar
HWND hStatus;
int statwidths[] = {150, 450, -1};
hStatus = CreateWindowW(STATUSCLASSNAMEW, NULL, WS_CHILD | WS_VISIBLE | SBARS_SIZEGRIP,
0, 0, 0, 0, hWnd, (HMENU)IDC_STATUS, GetModuleHandle(NULL), NULL);
SendMessageW(hStatus, SB_SETPARTS, sizeof(statwidths)/sizeof(int), (LPARAM)statwidths);
SendMessageW(hStatus, SB_SETTEXT, 0, (LPARAM)" Author: Me");
SendMessageW(hStatus, SB_SETTEXT, 1, (LPARAM)" - Ver. 1.00 -");
SendMessageW(hStatus, SB_SETTEXT, 2, (LPARAM)" Other Info ");
}
| |