71 lines
1.8 KiB
C++
71 lines
1.8 KiB
C++
// XMonoFontListComboEdit.h
|
|
//
|
|
// Author: Hans Dietrich
|
|
// hdietrich@gmail.com
|
|
//
|
|
// License:
|
|
// This software is released into the public domain. You are free to use
|
|
// it in any way you like, except that you may not sell this source code.
|
|
//
|
|
// This software is provided "as is" with no expressed or implied warranty.
|
|
// I accept no liability for any damage or loss of business that this
|
|
// software may cause.
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef XMONOFONTLISTCOMBOEDIT_H
|
|
#define XMONOFONTLISTCOMBOEDIT_H
|
|
|
|
//=============================================================================
|
|
class CXMonoFontListComboEdit : public CEdit
|
|
//=============================================================================
|
|
{
|
|
// Construction
|
|
public:
|
|
CXMonoFontListComboEdit();
|
|
virtual ~CXMonoFontListComboEdit();
|
|
|
|
// Attributes
|
|
public:
|
|
void SetBold(BOOL bBold) { m_bBold = bBold; }
|
|
void SetWindowText(LPCTSTR lpszString);
|
|
|
|
// Operations
|
|
public:
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CXMonoFontListComboEdit)
|
|
protected:
|
|
virtual void PreSubclassWindow();
|
|
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
public:
|
|
CFont m_Font;
|
|
CFont m_BoldFont;
|
|
BOOL m_bBold;
|
|
CString m_strText;
|
|
CBrush m_brush;
|
|
|
|
CFont * GetSafeFont();
|
|
|
|
// Generated message map functions
|
|
protected:
|
|
//{{AFX_MSG(CXMonoFontListComboEdit)
|
|
afx_msg void OnSetfocus();
|
|
afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
|
|
//}}AFX_MSG
|
|
afx_msg void OnPaint();
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif //XMONOFONTLISTCOMBOEDIT_H
|