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/calendartool.cpp | |
parent | f5e4db1c78db17956920f88cea5e6914ec668e24 (diff) |
NewStory:
- fix for fonts & colors' registration
- fix for 64-bit WINAPI;
Diffstat (limited to 'plugins/NewStory/src/calendartool.cpp')
-rw-r--r-- | plugins/NewStory/src/calendartool.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/NewStory/src/calendartool.cpp b/plugins/NewStory/src/calendartool.cpp index f45e125bcc..64e837e913 100644 --- a/plugins/NewStory/src/calendartool.cpp +++ b/plugins/NewStory/src/calendartool.cpp @@ -5,15 +5,15 @@ struct CalendarToolData int x, y; }; -int CALLBACK CalendarToolDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) +INT_PTR CALLBACK CalendarToolDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { - CalendarToolData *data = (CalendarToolData *)GetWindowLong(hwnd, GWL_USERDATA); + CalendarToolData *data = (CalendarToolData *)GetWindowLong(hwnd, GWLP_USERDATA); switch (msg) { case WM_INITDIALOG: { data = (CalendarToolData *)lParam; - SetWindowLong(hwnd, GWL_USERDATA, (LONG)data); + SetWindowLong(hwnd, GWLP_USERDATA, (LONG)data); // This causes ALL miranda dialogs to have drop-shadow enabled. That's bad =( // SetClassLong(hwnd, GCL_STYLE, GetClassLong(hwnd, GCL_STYLE)|CS_DROPSHADOW); @@ -73,7 +73,7 @@ int CALLBACK CalendarToolDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar { delete data; data = 0; - SetWindowLong(hwnd, GWL_USERDATA, 0); + SetWindowLong(hwnd, GWLP_USERDATA, 0); } } return FALSE; @@ -84,8 +84,5 @@ time_t CalendarTool_Show(HWND hwnd, int x, int y) CalendarToolData *data = new CalendarToolData; data->x = x; data->y = y; - -// HWND hwndTool = CreateDialogParam(hInst, MAKEINTRESOURCE(IDD_CALENDARTOOL), 0, CalendarToolDlgProc, (LPARAM)data); -// ShowWindow(hwndTool, SW_SHOWNORMAL); return DialogBoxParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_CALENDARTOOL), 0, CalendarToolDlgProc, (LPARAM)data); }
\ No newline at end of file |