Article ID: 151031
Article Last Modified on 11/21/2006
// MyStatusBar.h : header file
//
////////////////////////////////////////////////////////////////////
// CMyStatusBar window
#ifndef __MYSTATUSBAR_H__
#define __MYSTATUSBAR_H__
class CMyStatusBar : public CStatusBar
{
// Construction
public:
CMyStatusBar() {}
// Implementation
public:
virtual ~CMyStatusBar() {}
// Generated message map functions
protected:
//{{AFX_MSG(CMyStatusBar)
//NOTE-the ClassWizard will add and remove member functions here.
//}}AFX_MSG
#if _MFC_VER == 0x0400 || _MFC_VER == 0x0410 || _MFC_VER == 0x420 ||\
_MFC_VER == 0x421
afx_msg LRESULT OnSetMinHeight(WPARAM wParam, LPARAM);
#endif
DECLARE_MESSAGE_MAP()
};
#endif //__MYSTATUSBAR_H__
////////////////////////////////////////////////////////////////////
// MyStatusBar.cpp : implementation file
//
#include "stdafx.h"
#include "MyStatusBar.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
////////////////////////////////////////////////////////////////////
// CMyStatusBar
BEGIN_MESSAGE_MAP(CMyStatusBar, CStatusBar)
//{{AFX_MSG_MAP(CMyStatusBar)
//NOTE-the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
#if _MFC_VER == 0x0400 || _MFC_VER == 0x0410 || _MFC_VER == 0x420 ||\
_MFC_VER == 0x421
ON_MESSAGE(SB_SETMINHEIGHT, OnSetMinHeight)
#endif
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////
// CMyStatusBar message handlers
#if _MFC_VER == 0x0400 || _MFC_VER == 0x0410 || _MFC_VER == 0x420 ||\
_MFC_VER == 0x421
LRESULT CMyStatusBar::OnSetMinHeight(WPARAM wParam, LPARAM)
{
LRESULT lResult = Default();
m_nMinHeight = wParam;
return lResult;
}
#endif
Keywords: kbbug kbfix kbnoupdate kbstatbar kbuidesign kbvc600fix kbui KB151031