globals.h
来自「用bcg库编写的java IDE 源码」· C头文件 代码 · 共 77 行
H
77 行
//*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This source code is a part of BCGControlBar library.
// You may use, compile or redistribute it as part of your application
// for free. You cannot redistribute it as a part of a software development
// library without the agreement of the author. If the sources are
// distributed along with the application, you should leave the original
// copyright notes in the source code without any changes.
// This code can be used WITHOUT ANY WARRANTIES on your own risk.
//
// Stas Levin <stas@iet.co.il>
//*******************************************************************************
#ifndef __GLOBAL_DATA_H
#define __GLOBAL_DATA_H
/////////////////////////////////////////////////////////////////////////////
// Auxiliary System/Screen metrics
struct GLOBAL_DATA
{
// solid brushes with convenient gray colors and system colors
HBRUSH hbrBtnHilite, hbrBtnShadow;
// color values of system colors used for CToolBar
COLORREF clrBtnFace, clrBtnShadow, clrBtnHilite;
COLORREF clrBtnText, clrWindowFrame;
COLORREF clrBtnDkShadow, clrBtnLight;
COLORREF clrGrayedText;
COLORREF clrHilite;
COLORREF clrTextHilite;
COLORREF clrMenu;
COLORREF clrMenuText;
CBrush brBtnFace;
CBrush brHilite;
HCURSOR m_hcurStretch;
HCURSOR m_hcurStretchVert;
HCURSOR m_hcurHand;
// Toolbar and menu fonts:
CFont fontRegular;
CFont fontBold;
CFont fontVert;
BOOL bIsWindowsNT4;
// Implementation
GLOBAL_DATA();
~GLOBAL_DATA();
void UpdateSysColors();
BOOL SetMenuFont (LPLOGFONT lpLogFont, BOOL bHorz);
int GetTextHeight (BOOL bHorz = TRUE)
{
return bHorz ? m_nTextHeightHorz : m_nTextHeightVert;
}
protected:
void UpdateTextMetrics ();
int m_nTextHeightHorz;
int m_nTextHeightVert;
};
extern GLOBAL_DATA globalData;
void AFXAPI AfxDeleteObject(HGDIOBJ* pObject);
/////////////////////////////////////////////////////////////////////////////
#endif // __GLOBAL_DATA_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?