From 9a452de527d55caed4dfdb01f8fc3d549d9be5b3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 9 Jun 2012 22:54:08 +0000 Subject: - 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 --- plugins/TopToolBar/CLCButton.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/TopToolBar/CLCButton.cpp') 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; } -- cgit v1.2.3