inherit
66746
0
Oct 7, 2012 14:05:38 GMT -8
«The Silver Lining»™
^ Me !!!!
1,338
December 2005
chrisrulez001
|
Post by «The Silver Lining»™ on Dec 30, 2011 12:24:50 GMT -8
Hi There,
I currently have the following code to create a status bar:
HWND hStatus; hStatus = CreateWindowEx(0, STATUSCLASSNAME, NULL, WS_CHILD | WS_VISIBLE | SBARS_SIZEGRIP, 0, 0, 0, 0, hwnd, (HMENU)IDC_MAIN_STATUS, GetModuleHandle(NULL), NULL);
int statwidths[] = {185, 400, -1};
SendMessage(hStatus, SB_SETPARTS, sizeof(statwidths)/sizeof(int), (LPARAM)statwidths); SendMessage(hStatus, SB_SETTEXT, 0, (LPARAM)L"Number of items in list: 0"); SendMessage(hStatus, SB_SETTEXT, 1, (LPARAM)L"Refreshing list in: 60 Seconds");
For your information IDC_MAIN_STATUS is defined in my resource.h
Ok, my question is:
How do i change the text colour of text in the status bar sections?
Example: that the refreshing list in: x seconds is in red
EDIT: Found out from searching the internet that i can't change the colour of the text in the status bar.
|
|