BackGround color of Status Bar
-
Hi, I'm able to set the text and the background color of the text for Status bar, but I'm not able to set the color for the 'seperator' of the status bar. I have 3 column on the status bar, each of the text and background I'm able to set it but have no luck on the 'seperator' I've done it by creating a custom status bar inherited from CStatusBar By drawing it on DrawItem CODE: CDC oDC; CDC* pdc = CDC::FromHandle(pDIS->hDC); pdc->FillSolidRect(&pDIS->rcItem, RGB(255,255,255)); oDC.Attach(pDIS->hDC); oDC.SetTextColor(RGB(255,0,0)); oDC.SetBkColor(pDIS->itemData); pDIS->rcItem.left += 2; oDC.DrawText(_T("Test"),&pDIS->rcItem,DT_LEFT); oDC.Detach(); Any ways to do this? I wanted to change the whole status bar into white color RGB(255,255,255) Any help would be appreciated. KH
good
-
Hi, I'm able to set the text and the background color of the text for Status bar, but I'm not able to set the color for the 'seperator' of the status bar. I have 3 column on the status bar, each of the text and background I'm able to set it but have no luck on the 'seperator' I've done it by creating a custom status bar inherited from CStatusBar By drawing it on DrawItem CODE: CDC oDC; CDC* pdc = CDC::FromHandle(pDIS->hDC); pdc->FillSolidRect(&pDIS->rcItem, RGB(255,255,255)); oDC.Attach(pDIS->hDC); oDC.SetTextColor(RGB(255,0,0)); oDC.SetBkColor(pDIS->itemData); pDIS->rcItem.left += 2; oDC.DrawText(_T("Test"),&pDIS->rcItem,DT_LEFT); oDC.Detach(); Any ways to do this? I wanted to change the whole status bar into white color RGB(255,255,255) Any help would be appreciated. KH
good
-
Hi, I'm able to set the text and the background color of the text for Status bar, but I'm not able to set the color for the 'seperator' of the status bar. I have 3 column on the status bar, each of the text and background I'm able to set it but have no luck on the 'seperator' I've done it by creating a custom status bar inherited from CStatusBar By drawing it on DrawItem CODE: CDC oDC; CDC* pdc = CDC::FromHandle(pDIS->hDC); pdc->FillSolidRect(&pDIS->rcItem, RGB(255,255,255)); oDC.Attach(pDIS->hDC); oDC.SetTextColor(RGB(255,0,0)); oDC.SetBkColor(pDIS->itemData); pDIS->rcItem.left += 2; oDC.DrawText(_T("Test"),&pDIS->rcItem,DT_LEFT); oDC.Detach(); Any ways to do this? I wanted to change the whole status bar into white color RGB(255,255,255) Any help would be appreciated. KH
good
Did you try to handle the WM_CTLCOLOR to change the status bar color?
«_Superman_»
-
Did you try to handle the WM_CTLCOLOR to change the status bar color?
«_Superman_»