diff options
author | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2008-04-15 04:39:03 +0000 |
---|---|---|
committer | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2008-04-15 04:39:03 +0000 |
commit | 8a8d9afcb727bdd9da02bd2c525b7685ca9f25b7 (patch) | |
tree | ed50a61a2468dfe64708797c1d50bc3ac2c88ccd /Plugins/emoticons/EmoticonsSelectionLayout.h | |
parent | 1f4071514a3f75e80c539fcedc4d9603f1cb6b46 (diff) |
Added support for font service
git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@81 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Plugins/emoticons/EmoticonsSelectionLayout.h')
-rw-r--r-- | Plugins/emoticons/EmoticonsSelectionLayout.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Plugins/emoticons/EmoticonsSelectionLayout.h b/Plugins/emoticons/EmoticonsSelectionLayout.h index f476ba4..6b13a5f 100644 --- a/Plugins/emoticons/EmoticonsSelectionLayout.h +++ b/Plugins/emoticons/EmoticonsSelectionLayout.h @@ -1,4 +1,4 @@ -#define MIN_COLS 5
+#define MIN_COLS 6
#define MAX_LINES 8
#define MAX_COLS 12
#define BORDER 3
@@ -31,7 +31,8 @@ public: int height;
} window;
- virtual void Load() = 0;
+ EmoticonsSelectionLayout() {}
+ virtual ~EmoticonsSelectionLayout() {}
virtual void OnUp(HWND hwnd) = 0;
virtual void OnDown(HWND hwnd) = 0;
@@ -50,8 +51,9 @@ public: protected:
- HFONT GetFont(HDC hdc);
- void ReleaseFont(HFONT hFont);
+ virtual HFONT GetFont(HDC hdc);
+ virtual void ReleaseFont(HFONT hFont);
+
RECT CalcRect(TCHAR *txt);
#ifdef UNICODE
RECT CalcRect(char *txt);
|