diff options
author | George Hazan <ghazan@miranda.im> | 2018-11-25 15:46:39 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-11-25 15:46:39 +0300 |
commit | f0c30e09912360c393c53431a61df2eb42d61f53 (patch) | |
tree | 8f4a5bb57e417edcc92b253d46f56a4ad1f17f77 /plugins/NewStory/src/history.cpp | |
parent | f5e4db1c78db17956920f88cea5e6914ec668e24 (diff) |
NewStory:
- fix for fonts & colors' registration
- fix for 64-bit WINAPI;
Diffstat (limited to 'plugins/NewStory/src/history.cpp')
-rw-r--r-- | plugins/NewStory/src/history.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/NewStory/src/history.cpp b/plugins/NewStory/src/history.cpp index e02501c219..f853b67299 100644 --- a/plugins/NewStory/src/history.cpp +++ b/plugins/NewStory/src/history.cpp @@ -404,16 +404,16 @@ bool ExportHistoryDialog(HANDLE hContact, HWND hwndHistory) } */ -int CALLBACK HistoryDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) +INT_PTR CALLBACK HistoryDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { //CallSnappingWindowProc(hwnd, msg, wParam, lParam); - WindowData *data = (WindowData *)GetWindowLong(hwnd, GWL_USERDATA); + WindowData *data = (WindowData *)GetWindowLong(hwnd, GWLP_USERDATA); if ((msg >= NSM_FIRST) && (msg < NSM_LAST)) { int result = SendMessage(GetDlgItem(hwnd, IDC_ITEMS2), msg, wParam, lParam); - SetWindowLong(hwnd, DWL_MSGRESULT, result); + SetWindowLong(hwnd, DWLP_MSGRESULT, result); return result; } @@ -511,7 +511,7 @@ int CALLBACK HistoryDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) SendMessage(data->ibTotal.hwndIcoOut, BM_SETCHECK, BST_CHECKED, 0); data->ibTotal.hwndTxtOut = GetDlgItem(hwnd, IDC_TXT_TOTAL_OUT); - SetWindowLong(hwnd, GWL_USERDATA, (LONG)data); + SetWindowLong(hwnd, GWLP_USERDATA, (LONG)data); data->hMenu = LoadMenu(g_plugin.getInst(), MAKEINTRESOURCE(IDR_POPUPS)); //CallService(MS_LANGPACK_TRANSLATEMENU, (WPARAM)data->hMenu, 0); @@ -1031,7 +1031,7 @@ int CALLBACK HistoryDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) return FALSE; //DefWindowProc(hwnd, msg, wParam, lParam); } -int svcShowNewstory(WPARAM wParam, LPARAM lParam) +INT_PTR svcShowNewstory(WPARAM wParam, LPARAM lParam) { HWND hwnd = (HWND)WindowList_Find(hNewstoryWindows, (MCONTACT)wParam); if (hwnd && IsWindow(hwnd)) @@ -1047,7 +1047,7 @@ int svcShowNewstory(WPARAM wParam, LPARAM lParam) return 0; } -int svcShowSystemNewstory(WPARAM wParam, LPARAM lParam) +INT_PTR svcShowSystemNewstory(WPARAM wParam, LPARAM lParam) { HWND hwnd = (HWND)WindowList_Find(hNewstoryWindows, 0); if (hwnd && IsWindow(hwnd)) |