summaryrefslogtreecommitdiff
path: root/plugins/FavContacts/src/menu.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-12-02 22:20:16 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-12-02 22:20:16 +0000
commit4b01e299223c3fdb05d82ecde0117f88f8caa726 (patch)
tree50f6bb91de44e402d933374ecd3766a59e382589 /plugins/FavContacts/src/menu.cpp
parent0ca0de7698b523effaaf6cc9c608e936fa5aaf86 (diff)
less warnings
git-svn-id: http://svn.miranda-ng.org/main/trunk@11224 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FavContacts/src/menu.cpp')
-rw-r--r--plugins/FavContacts/src/menu.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/FavContacts/src/menu.cpp b/plugins/FavContacts/src/menu.cpp
index b23259b3e4..56c0c5992d 100644
--- a/plugins/FavContacts/src/menu.cpp
+++ b/plugins/FavContacts/src/menu.cpp
@@ -47,7 +47,7 @@ static BOOL sttMeasureItem_Group(LPMEASUREITEMSTRUCT lpmis, Options *options)
SelectObject(hdc, g_Options.hfntName);
SIZE sz;
- GetTextExtentPoint32(hdc, name, mir_tstrlen(name), &sz);
+ GetTextExtentPoint32(hdc, name, (int)mir_tstrlen(name), &sz);
lpmis->itemHeight = sz.cy + 8;
lpmis->itemWidth = sz.cx + 10;
SelectObject(hdc, hfntSave);
@@ -81,7 +81,7 @@ static BOOL sttMeasureItem_Contact(LPMEASUREITEMSTRUCT lpmis, Options *options)
if (!options->bSysColors)
SelectObject(hdc, g_Options.hfntSecond);
- GetTextExtentPoint32(hdc, title, mir_tstrlen(title), &sz);
+ GetTextExtentPoint32(hdc, title, (int)mir_tstrlen(title), &sz);
textWidth = sz.cx;
lpmis->itemHeight += sz.cy + 3;
@@ -92,7 +92,7 @@ static BOOL sttMeasureItem_Contact(LPMEASUREITEMSTRUCT lpmis, Options *options)
TCHAR *name = (TCHAR *)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, hContact, GCDNF_TCHAR);
if (!options->bSysColors) SelectObject(hdc, g_Options.hfntName);
- GetTextExtentPoint32(hdc, name, mir_tstrlen(name), &sz);
+ GetTextExtentPoint32(hdc, name, (int)mir_tstrlen(name), &sz);
textWidth = max(textWidth, sz.cx);
SelectObject(hdc, hfntSave);
@@ -309,7 +309,7 @@ static BOOL sttDrawItem_Contact(LPDRAWITEMSTRUCT lpdis, Options *options = NULL)
DrawText(hdcTemp, name, -1, &lpdis->rcItem, DT_NOPREFIX | DT_SINGLELINE | DT_TOP | DT_LEFT);
SIZE sz;
- GetTextExtentPoint32(hdcTemp, name, mir_tstrlen(name), &sz);
+ GetTextExtentPoint32(hdcTemp, name, (int)mir_tstrlen(name), &sz);
lpdis->rcItem.top += sz.cy + 3;
}
@@ -390,8 +390,8 @@ static LRESULT CALLBACK MenuHostWndProc(HWND hwnd, UINT message, WPARAM wParam,
RemoveMenu((HMENU)lParam, 1, MF_BYPOSITION);
if (LOWORD(wParam) == VK_BACK) {
- if (int l = mir_tstrlen(g_filter))
- g_filter[l - 1] = 0;
+ if (size_t l = mir_tstrlen(g_filter))
+ g_filter[l-1] = 0;
}
else if (_istalnum(LOWORD(wParam))) {
if (mir_tstrlen(g_filter) < SIZEOF(g_filter) - 1) {