CStatusBarCtrl::SetBkColor

CStatusBarCtrl::SetBkColor

Visual Studio 6.0

CStatusBarCtrl::SetBkColor

COLORREF SetBkColor( COLORREF cr );

Return Value

A https://msdn.microsoft.com/en-us/library/ms532655(v=vs.60).aspx value that represents the previous default background color.

Parameters

cr

COLORREF value that specifies the new background color. Specify the CLR_DEFAULT value to cause the status bar to use its default background color.

Remarks

This member function implements the behavior of the Win32 message https://msdn.microsoft.com/en-us/library/bb760754(v=vs.60).aspx , as described in the Platform SDK.

Example

int CMyStatusBarCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
   if (CStatusBarCtrl::OnCreate(lpCreateStruct) == -1)
      return -1;

   SetBkColor( RGB(0,0,250) );

   HICON hIcon;
   VERIFY( hIcon = AfxGetApp()->LoadIcon(IDR_PANE_0_ICON) );
   VERIFY( SetIcon(0, hIcon) );

   return 0;
}

CStatusBar OverviewClass MembersHierarchy Chart

Show:
© 2016 Microsoft