From 2840393bf5378c012577c4764dc4cbd162f85d4e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 8 Jun 2012 21:02:06 +0000 Subject: GetWindowLong -> GetWindowLongPtr git-svn-id: http://svn.miranda-ng.org/main/trunk@364 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- tools/dbtool/wizard.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/dbtool/wizard.cpp') diff --git a/tools/dbtool/wizard.cpp b/tools/dbtool/wizard.cpp index bdb656dadb..49e20b9e2e 100644 --- a/tools/dbtool/wizard.cpp +++ b/tools/dbtool/wizard.cpp @@ -25,8 +25,8 @@ static HENHMETAFILE hEmfHeaderLogo=NULL; static BOOL CALLBACK MyControlsEnumChildren(HWND hwnd,LPARAM lParam) { - DWORD style=GetWindowLong(hwnd,GWL_STYLE); - DWORD exstyle=GetWindowLong(hwnd,GWL_EXSTYLE); + DWORD style=GetWindowLongPtr(hwnd,GWL_STYLE); + DWORD exstyle=GetWindowLongPtr(hwnd,GWL_EXSTYLE); char szClass[64]; int makeBold=0; @@ -48,7 +48,7 @@ static BOOL CALLBACK MyControlsEnumChildren(HWND hwnd,LPARAM lParam) hBoldFont=CreateFontIndirect(&lf); } SendMessage(hwnd,WM_SETFONT,(WPARAM)hBoldFont,0); - SetWindowLong(hwnd,GWL_EXSTYLE,exstyle&~WS_EX_CLIENTEDGE); + SetWindowLongPtr(hwnd,GWL_EXSTYLE,exstyle&~WS_EX_CLIENTEDGE); SetWindowPos(hwnd,0,0,0,0,0,SWP_NOZORDER|SWP_NOMOVE|SWP_NOSIZE|SWP_FRAMECHANGED); } return TRUE; @@ -67,7 +67,7 @@ int DoMyControlProcessing(HWND hdlg,UINT message,WPARAM wParam,LPARAM lParam,INT SendDlgItemMessage(hdlg,IDC_HDRLOGO,STM_SETIMAGE,IMAGE_ENHMETAFILE,(LPARAM)hEmfHeaderLogo); break; case WM_CTLCOLORSTATIC: - if((GetWindowLong((HWND)lParam,GWL_STYLE)&0xFFFF)==0) { + if((GetWindowLongPtr((HWND)lParam,GWL_STYLE)&0xFFFF)==0) { char szText[256]; GetWindowTextA((HWND)lParam,szText,sizeof(szText)); if(!strcmp(szText,"whiterect")) { -- cgit v1.2.3