CStatusBarCtrl::SetMinHeight

Visual Studio 6.0

CStatusBarCtrl::SetMinHeight

void SetMinHeight( int nMin );

Parameters

nMin

Minimum height, in pixels, of the control.

Remarks

Call this function to set the minimum height of a status bar control’s drawing area. The minimum height is the sum of nMin and twice the width, in pixels, of the vertical border of the status bar control.

Example

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

   SetMinHeight(40);

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

   return 0;
}

CStatusBarCtrl OverviewClass MembersHierarchy Chart

See Also   CStatusBarCtrl::GetRect, CStatusBarCtrl::GetBorders

Show: