diff options
Diffstat (limited to 'plugins/TopToolBar/button.cpp')
-rw-r--r-- | plugins/TopToolBar/button.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TopToolBar/button.cpp b/plugins/TopToolBar/button.cpp index ab6662e6ef..54bf8bf816 100644 --- a/plugins/TopToolBar/button.cpp +++ b/plugins/TopToolBar/button.cpp @@ -250,10 +250,10 @@ static void PaintWorker(MButtonCtrl *ctl, HDC hdcPaint) static LRESULT CALLBACK MButtonWndProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
- MButtonCtrl* bct = (MButtonCtrl *)GetWindowLong(hwndDlg, 0);
+ MButtonCtrl* bct = (MButtonCtrl *)GetWindowLongPtr(hwndDlg, 0);
switch(msg) {
case WM_NCCREATE:
- SetWindowLong(hwndDlg, GWL_STYLE, GetWindowLong(hwndDlg, GWL_STYLE)|BS_OWNERDRAW);
+ SetWindowLongPtr(hwndDlg, GWL_STYLE, GetWindowLongPtr(hwndDlg, GWL_STYLE)|BS_OWNERDRAW);
bct = (MButtonCtrl*)malloc(sizeof(MButtonCtrl));
if (bct == NULL)
return FALSE;
@@ -273,7 +273,7 @@ static LRESULT CALLBACK MButtonWndProc(HWND hwndDlg, UINT msg, WPARAM wParam, L bct->cHot = 0;
bct->flatBtn = 0;
LoadTheme(bct);
- SetWindowLong(hwndDlg, 0, (LONG)bct);
+ SetWindowLongPtr(hwndDlg, 0, (LONG)bct);
if (((CREATESTRUCT *)lParam)->lpszName) SetWindowText(hwndDlg, ((CREATESTRUCT *)lParam)->lpszName);
return TRUE;
@@ -504,7 +504,7 @@ static LRESULT CALLBACK MButtonWndProc(HWND hwndDlg, UINT msg, WPARAM wParam, L DestroyTheme(bct);
free(bct);
}
- SetWindowLong(hwndDlg,0,(LONG)NULL);
+ SetWindowLongPtr(hwndDlg,0,(LONG)NULL);
break; // DONT! fall thru
}
return DefWindowProc(hwndDlg, msg, wParam, lParam);
|