summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/CLCButton.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-09 22:54:08 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-09 22:54:08 +0000
commit9a452de527d55caed4dfdb01f8fc3d549d9be5b3 (patch)
tree8b78e54d8f94fecf43208c595ee0cad271f53384 /plugins/TopToolBar/CLCButton.cpp
parent6b2c624499dc8e6edf5ccd03403a6d4a05d65344 (diff)
- fixes for Unicode;
- fixes for a hangup in nicer+; - code redesign; - CLCButton.cpp removed from project git-svn-id: http://svn.miranda-ng.org/main/trunk@374 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar/CLCButton.cpp')
-rw-r--r--plugins/TopToolBar/CLCButton.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/TopToolBar/CLCButton.cpp b/plugins/TopToolBar/CLCButton.cpp
index d4078129ca..d884ea603c 100644
--- a/plugins/TopToolBar/CLCButton.cpp
+++ b/plugins/TopToolBar/CLCButton.cpp
@@ -603,15 +603,16 @@ int LoadCLCButtonModule(void)
g_cxsmIcon = GetSystemMetrics(SM_CXSMICON);
g_cysmIcon = GetSystemMetrics(SM_CYSMICON);
- WNDCLASSEXA wc = { 0 };
+ WNDCLASSEX wc = { 0 };
wc.cbSize = sizeof(wc);
- wc.lpszClassName = "CLCButtonClass";
+ wc.lpszClassName = _T("CLCButtonClass");
wc.lpfnWndProc = TSButtonWndProc;
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.cbWndExtra = sizeof(MButtonCtrl *);
wc.hbrBackground = 0;
wc.style = CS_GLOBALCLASS;
- RegisterClassExA(&wc);
+ RegisterClassEx(&wc);
+
InitializeCriticalSection(&csTips);
return 0;
}