|
#ifndef __CeFontDlg_h__
#define __CeFontDlg_h__
#include "CeString.h"
#include "CeDialog.h"
#ifdef _WIN32_WCE
inline int MulDiv(int nNumber, int nNumerator, int nDenominator)
{
return (nNumber * nNumerator) / nDenominator;
}
#endif
class CeFontDlg: public CeDialog
{
public:
CeFontDlg(DWORD dwSize, LOGFONT* plogfont = NULL);
~CeFontDlg();
void OnSelChange();
virtual BOOL OnInitDialog();
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam, bool& bHandled);
static int CALLBACK CeFontDlg::EnumFontFamProc(
ENUMLOGFONT FAR *lpelf,
NEWTEXTMETRIC FAR *lpntm,
int FontType,
LPARAM lParam
);
CeString m_strFont;
CeString m_strSize;
int m_cyPixelsPerInch;
int m_nPointsPerInch;
int m_nPointSize;
bool m_bBold, m_bItal, m_bUnder;
HFONT m_hFont;
};
#endif // __CeFontDlg_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 member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.