diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-23 21:06:11 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-23 21:06:11 +0000 |
commit | 5b3b0020dd6b3797a5808c7362e358df48bd4e49 (patch) | |
tree | 9ee3e4de8b8f04a8faf4186ae2e1f84c3ef21b17 /plugins/Scriver/chat/window.cpp | |
parent | 449553a9543c7ecc601f74c4abccc07d13521b15 (diff) |
Scriver:
plusified
git-svn-id: http://svn.miranda-ng.org/main/trunk@591 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/chat/window.cpp')
-rw-r--r-- | plugins/Scriver/chat/window.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/Scriver/chat/window.cpp b/plugins/Scriver/chat/window.cpp index 2acd5aed25..0962503cd3 100644 --- a/plugins/Scriver/chat/window.cpp +++ b/plugins/Scriver/chat/window.cpp @@ -31,8 +31,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. extern HBRUSH hListBkgBrush;
extern HBRUSH hListSelectedBkgBrush;
extern HANDLE hSendEvent;
-extern HINSTANCE g_hInst;
-extern struct CREOleCallback reOleCallback;
+extern CREOleCallback reOleCallback;
extern HMENU g_hMenu;
extern TABLIST * g_TabList;
extern HANDLE hHookWinPopup;
@@ -341,7 +340,7 @@ static LRESULT CALLBACK MessageSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, iLen = GetRichTextLength(hwnd, gt.codepage, TRUE);
if (iLen >0) {
TCHAR *pszName = NULL;
- pszText = mir_alloc(iLen + 100 * sizeof(TCHAR));
+ pszText = (TCHAR *)mir_alloc(iLen + 100 * sizeof(TCHAR));
gt.cb = iLen + 99 * sizeof(TCHAR);
gt.flags = GT_DEFAULT;
@@ -364,7 +363,7 @@ static LRESULT CALLBACK MessageSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, }
}
if ( dat->szSearchQuery == NULL) {
- dat->szSearchQuery = mir_alloc( sizeof(TCHAR)*( end-start+1 ));
+ dat->szSearchQuery = (TCHAR *)mir_alloc( sizeof(TCHAR)*( end-start+1 ));
lstrcpyn( dat->szSearchQuery, pszText+start, end-start+1);
dat->szSearchResult = mir_tstrdup(dat->szSearchQuery);
dat->lastSession = NULL;
@@ -394,7 +393,7 @@ static LRESULT CALLBACK MessageSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, dat->szSearchResult = mir_tstrdup(pszName);
if (end !=start) {
if (!isRoom && !isTopic && g_Settings.AddColonToAutoComplete && start == 0) {
- pszText = mir_alloc((_tcslen(pszName) + 4) * sizeof(TCHAR));
+ pszText = (TCHAR *)mir_alloc((_tcslen(pszName) + 4) * sizeof(TCHAR));
_tcscpy(pszText, pszName);
_tcscat(pszText, _T(": "));
pszName = pszText;
@@ -1098,7 +1097,7 @@ int GetTextPixelSize( TCHAR* pszText, HFONT hFont, BOOL bWidth) return 0;
hdc = GetDC(NULL);
- hOldFont = SelectObject(hdc, hFont);
+ hOldFont = (HFONT)SelectObject(hdc, hFont);
i = DrawText(hdc, pszText , -1, &rc, DT_CALCRECT);
SelectObject(hdc, hOldFont);
ReleaseDC(NULL,hdc);
@@ -1703,7 +1702,7 @@ LABEL_SHOWWINDOW: HWND ColorWindow;
RECT rc;
BOOL bFG = lParam == IDC_CHAT_COLOR?TRUE:FALSE;
- COLORCHOOSER * pCC = mir_alloc(sizeof(COLORCHOOSER));
+ COLORCHOOSER * pCC = (COLORCHOOSER *)mir_alloc(sizeof(COLORCHOOSER));
GetWindowRect(GetDlgItem(hwndDlg, bFG?IDC_CHAT_COLOR:IDC_CHAT_BKGCOLOR), &rc);
pCC->hWndTarget = GetDlgItem(hwndDlg, IDC_CHAT_MESSAGE);
|