diff options
author | George Hazan <george.hazan@gmail.com> | 2016-09-05 11:04:46 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-09-05 11:04:46 +0000 |
commit | 18ee7073d76f02c5c78182c3aeee7427b469bd01 (patch) | |
tree | 21c5b90169da0ed79d82d5dc07b5c888177b9260 /plugins/TabSRMM | |
parent | b6432457c35f22d5fd4377284e2e7d5d6736e6dc (diff) |
Menu_DrawItem & Menu_MeasureItem now simply receive LPARAM
git-svn-id: http://svn.miranda-ng.org/main/trunk@17255 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/chat/window.cpp | 8 | ||||
-rw-r--r-- | plugins/TabSRMM/src/container.cpp | 4 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgdialog.cpp | 2 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgdlgutils.cpp | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/plugins/TabSRMM/src/chat/window.cpp b/plugins/TabSRMM/src/chat/window.cpp index 5ed4d7f05c..289763089e 100644 --- a/plugins/TabSRMM/src/chat/window.cpp +++ b/plugins/TabSRMM/src/chat/window.cpp @@ -1507,7 +1507,7 @@ static LRESULT CALLBACK NicklistSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, { MEASUREITEMSTRUCT *mis = (MEASUREITEMSTRUCT *)lParam; if (mis->CtlType == ODT_MENU) - return Menu_MeasureItem((LPMEASUREITEMSTRUCT)lParam); + return Menu_MeasureItem(lParam); } return FALSE; @@ -1515,7 +1515,7 @@ static LRESULT CALLBACK NicklistSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, { DRAWITEMSTRUCT *dis = (DRAWITEMSTRUCT *)lParam; if (dis->CtlType == ODT_MENU) - return Menu_DrawItem((LPDRAWITEMSTRUCT)lParam); + return Menu_DrawItem(lParam); } return FALSE; @@ -2123,7 +2123,7 @@ INT_PTR CALLBACK RoomWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar mis->itemWidth = 6; return TRUE; } - return Menu_MeasureItem((LPMEASUREITEMSTRUCT)lParam); + return Menu_MeasureItem(lParam); } mis->itemHeight = g_Settings.iNickListFontHeight; } @@ -2137,7 +2137,7 @@ INT_PTR CALLBACK RoomWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar DrawMenuItem(dis, (HICON)dis->itemData, 0); return TRUE; } - return Menu_DrawItem((LPDRAWITEMSTRUCT)lParam); + return Menu_DrawItem(lParam); } if (dis->CtlID == IDC_LIST) { diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp index d8e425b8f0..49b60e07c4 100644 --- a/plugins/TabSRMM/src/container.cpp +++ b/plugins/TabSRMM/src/container.cpp @@ -1573,10 +1573,10 @@ panel_found: return TRUE;
}
}
- return Menu_DrawItem((LPDRAWITEMSTRUCT)lParam);
+ return Menu_DrawItem(lParam);
case WM_MEASUREITEM:
- return Menu_MeasureItem((LPMEASUREITEMSTRUCT)lParam);
+ return Menu_MeasureItem(lParam);
case DM_QUERYCLIENTAREA:
{
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index b388c39c0a..87e0e8c979 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -2570,7 +2570,7 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM l return TRUE;
}
}
- return Menu_MeasureItem((LPMEASUREITEMSTRUCT)lParam);
+ return Menu_MeasureItem(lParam);
case WM_NCHITTEST:
SendMessage(hwndContainer, WM_NCHITTEST, wParam, lParam);
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp index a097a5e086..23f6347ad9 100644 --- a/plugins/TabSRMM/src/msgdlgutils.cpp +++ b/plugins/TabSRMM/src/msgdlgutils.cpp @@ -1588,7 +1588,7 @@ int TSAPI MsgWindowDrawHandler(WPARAM, LPARAM lParam, TWindowData *dat) return TRUE;
}
- return Menu_DrawItem((LPDRAWITEMSTRUCT)lParam);
+ return Menu_DrawItem(lParam);
}
void TSAPI LoadThemeDefaults(TContainerData *pContainer)
|