49 lines
1.0 KiB
C++
49 lines
1.0 KiB
C++
|
|
//
|
|
//------------------------------------------------------------------------
|
|
//文件名: inplaceedit.h : implementation file
|
|
// 创建人: cwk
|
|
// 日 期:
|
|
// 描 述:
|
|
// 版 本:
|
|
// 修改人:
|
|
// 修改日期:
|
|
// 修改目的:
|
|
//-------------------------------------------------------------------------
|
|
#ifndef IN_PLACE_EDIT_H
|
|
#define IN_PLACE_EDIT_H
|
|
|
|
#define WM_VIEW_CHANGED WM_USER+1
|
|
|
|
extern TARCH_IMPEXP int g_colorInPlaceText;
|
|
extern TARCH_IMPEXP int g_colorInPlaceGround;
|
|
extern TARCH_IMPEXP int g_iInPlaceFontHeight;
|
|
//add by xlc on 071019
|
|
extern TARCH_IMPEXP int g_menuColors[4];
|
|
|
|
class CInPlaceEdit:public CEdit
|
|
{
|
|
public:
|
|
|
|
CFont m_font;
|
|
CBrush m_brush;
|
|
int m_colorInPlaceText;
|
|
int m_colorInPlaceGround;
|
|
int m_iInPlaceFontHeight;
|
|
|
|
int m_nMenuBKColor1;
|
|
int m_nMenuBKColor2;
|
|
int m_nMenuBKColor3;
|
|
int m_nMenuBKColor4;
|
|
|
|
public:
|
|
CInPlaceEdit();
|
|
virtual ~CInPlaceEdit();
|
|
|
|
void SetHeight();
|
|
void Init();
|
|
DECLARE_MESSAGE_MAP()
|
|
HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
|
|
};
|
|
extern CInPlaceEdit g_InPlaceEdit;
|
|
#endif |