Deprecated ClipString values 0/1 in favor of OFF/ON and added new value AUTO.

Added ClipStringW/ClipStringH options that work with ClipString=AUTO.
This commit is contained in:
Brian Ferguson
2013-01-23 11:57:01 -07:00
parent 82eb3ed03f
commit 84b1e3a7cd
2 changed files with 143 additions and 10 deletions

View File

@ -76,6 +76,13 @@ private:
TEXTCASE_PROPER
};
enum CLIPTYPE
{
CLIP_OFF,
CLIP_ON,
CLIP_AUTO
};
bool DrawString(Gdiplus::Graphics& graphics, Gdiplus::RectF* rect);
Gdiplus::Color m_Color;
@ -93,7 +100,10 @@ private:
double m_Scale;
bool m_NoDecimals;
bool m_Percentual;
bool m_ClipString;
CLIPTYPE m_ClipType;
bool m_NeedsClipping;
int m_ClipStringW;
int m_ClipStringH;
Gdiplus::Font* m_Font;
Gdiplus::FontFamily* m_FontFamily;
int m_NumOfDecimals;