summaryrefslogtreecommitdiff
path: root/tools/dbtool/wizard.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-08 21:02:06 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-08 21:02:06 +0000
commit2840393bf5378c012577c4764dc4cbd162f85d4e (patch)
tree257a83be6f650415d8b47bb982b0bc700e6c9f8c /tools/dbtool/wizard.cpp
parentd0ffabed30e05f6dc56e2e5231637f333bc16003 (diff)
GetWindowLong -> GetWindowLongPtr
git-svn-id: http://svn.miranda-ng.org/main/trunk@364 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'tools/dbtool/wizard.cpp')
-rw-r--r--tools/dbtool/wizard.cpp8
1 files changed, 4 insertions, 4 deletions
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")) {