summaryrefslogtreecommitdiff
path: root/Plugins/emoticons/EmoticonsSelectionLayout.h
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/emoticons/EmoticonsSelectionLayout.h')
-rw-r--r--Plugins/emoticons/EmoticonsSelectionLayout.h10
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);