- visualframework_src.zip
- sample
- CNN
- cls.cls
- MSSCCPRJ.SCC
- PrjCnn.dll
- PrjCnn.exp
- PrjCnn.lib
- PrjCnn.vbp
- PrjCnn.vbw
- DemoDoc
- MfcViewLib
- ObjManager
- VbComLib
- VBDoc
- MSSCCPRJ.SCC
- prjVBDoc.vbp
- prjVBDoc.vbw
- UD.dob
- VCSharpComLib
- VisualFrameWork
|
//*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This source code is a part of Tangram 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.
//
// For the latest updates to this library, check site:
// http://www.tangramdev.com
//
// sunhui
//*******************************************************************************
#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;
CBrush brBtnFace;
CBrush brHilite;
CBrush brLight;
CBrush brBlack;
HCURSOR m_hcurStretch;
HCURSOR m_hcurStretchVert;
HCURSOR m_hcurHand;
HICON m_hiconTool;
// Toolbar and menu fonts:
CFont fontRegular;
CFont fontBold;
CFont fontUnderline;
CFont fontVert;
CFont fontVertCaption;
BOOL bIsWindowsNT4;
int m_nBitsPerPixel;
// Implementation
GLOBAL_DATA();
~GLOBAL_DATA();
void UpdateSysColors();
void UpdateFonts();
BOOL SetMenuFont (LPLOGFONT lpLogFont, BOOL bHorz);
int GetTextHeight (BOOL bHorz = TRUE)
{
return bHorz ? m_nTextHeightHorz : m_nTextHeightVert;
}
protected:
void UpdateTextMetrics ();
HBITMAP CreateDitherBitmap (HDC hDC);
int m_nTextHeightHorz;
int m_nTextHeightVert;
};
extern GLOBAL_DATA globalData;
void AFXAPI AfxDeleteObject(HGDIOBJ* pObject);
/////////////////////////////////////////////////////////////////////////////
#endif // __GLOBAL_DATA_H
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.