summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-19 21:45:10 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-19 21:45:10 +0000
commit665935b0f99a4b9585f9afe9c9730931a3c94f85 (patch)
treeeb8d4bff00dca2f23d9920a4b66e3efea19aef51
parent41b6340d33736cdacf0de6a1b8410f908424b7e8 (diff)
various tiny fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@491 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--include/m_button.h5
-rw-r--r--plugins/TabSRMM/src/buttonsbar.cpp2
-rw-r--r--src/modules/fonts/FontService.cpp4
3 files changed, 4 insertions, 7 deletions
diff --git a/include/m_button.h b/include/m_button.h
index 503c435cf6..3de4acb033 100644
--- a/include/m_button.h
+++ b/include/m_button.h
@@ -69,12 +69,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define BUTTONADDTOOLTIP (WM_USER+5)
-// Sets the button type as a flat button without borders v0.3.3+
+// Sets the button type as a themed button without borders
// wParam = TRUE/FALSE default on/off
// lParam = not used
-// Usage: SendMessage(hwndbutton, BUTTONSETASFLATBTN, 1, 0);
+// Usage: SendMessage(hwndbutton, BUTTONSETASTHEMEDBTN, 1, 0);
// Only works on MButtonClass buttons
#define BUTTONSETASTHEMEDBTN (WM_USER+6)
#endif // M_BUTTON_H__
-
diff --git a/plugins/TabSRMM/src/buttonsbar.cpp b/plugins/TabSRMM/src/buttonsbar.cpp
index b75d554fb3..a4d2663cc5 100644
--- a/plugins/TabSRMM/src/buttonsbar.cpp
+++ b/plugins/TabSRMM/src/buttonsbar.cpp
@@ -605,7 +605,7 @@ void TSAPI BB_InitDlgButtons(TWindowData *dat)
if (!cbd->bHidden && !cbd->bCanBeHidden)
dat->iButtonBarReallyNeeds += cbd->iButtonWidth + gap;
if (!cbd->bDummy && hwndBtn) {
- SendMessage(hwndBtn, BUTTONSETASFLATBTN, TRUE, 0);
+ SendMessage(hwndBtn, BUTTONSETASFLATBTN, FALSE, 0);
SendMessage(hwndBtn, BUTTONSETASTHEMEDBTN, isThemed != 0, 0);
if (cbd->hIcon)
SendMessage(hwndBtn, BM_SETIMAGE, IMAGE_ICON, (LPARAM)CallService(MS_SKIN2_GETICONBYHANDLE, 0, (LPARAM)cbd->hIcon));
diff --git a/src/modules/fonts/FontService.cpp b/src/modules/fonts/FontService.cpp
index 832d8ae610..cfa6477473 100644
--- a/src/modules/fonts/FontService.cpp
+++ b/src/modules/fonts/FontService.cpp
@@ -22,8 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "..\..\core\commonheaders.h"
-#include "m_fontservice.h"
-
#include "FontService.h"
int code_page = CP_ACP;
@@ -92,7 +90,7 @@ int LoadFontserviceModule(void)
hFontReloadEvent = CreateHookableEvent(ME_FONT_RELOAD);
hColourReloadEvent = CreateHookableEvent(ME_COLOUR_RELOAD);
- // cretae generic fonts
+ // create generic fonts
FontIDT fontid = {0};
fontid.cbSize = sizeof(FontID);