summaryrefslogtreecommitdiff
path: root/tools/dbtool
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
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')
-rw-r--r--tools/dbtool/finished.cpp4
-rw-r--r--tools/dbtool/langpack.cpp2
-rw-r--r--tools/dbtool/openerror.cpp2
-rw-r--r--tools/dbtool/wizard.cpp8
4 files changed, 8 insertions, 8 deletions
diff --git a/tools/dbtool/finished.cpp b/tools/dbtool/finished.cpp
index f39219730d..7457d8b7d4 100644
--- a/tools/dbtool/finished.cpp
+++ b/tools/dbtool/finished.cpp
@@ -28,11 +28,11 @@ INT_PTR CALLBACK FinishedDlgProc(HWND hdlg,UINT message,WPARAM wParam,LPARAM lPa
case WM_INITDIALOG:
EnableWindow(GetDlgItem(GetParent(hdlg),IDC_BACK),FALSE);
SetDlgItemText(GetParent(hdlg),IDCANCEL,TranslateT("&Finish"));
- SetWindowLong(GetDlgItem(hdlg,IDC_DBFILE),GWL_STYLE,GetWindowLong(GetDlgItem(hdlg,IDC_DBFILE),GWL_STYLE)|SS_PATHELLIPSIS);
+ SetWindowLongPtr(GetDlgItem(hdlg,IDC_DBFILE),GWL_STYLE,GetWindowLongPtr(GetDlgItem(hdlg,IDC_DBFILE),GWL_STYLE)|SS_PATHELLIPSIS);
SetDlgItemText( hdlg, IDC_DBFILE, opts.filename );
if(opts.bBackup) {
ShowWindow(GetDlgItem(hdlg,IDC_STBACKUP),TRUE);
- SetWindowLong(GetDlgItem(hdlg,IDC_BACKUPFILE),GWL_STYLE,GetWindowLong(GetDlgItem(hdlg,IDC_BACKUPFILE),GWL_STYLE)|SS_PATHELLIPSIS);
+ SetWindowLongPtr(GetDlgItem(hdlg,IDC_BACKUPFILE),GWL_STYLE,GetWindowLongPtr(GetDlgItem(hdlg,IDC_BACKUPFILE),GWL_STYLE)|SS_PATHELLIPSIS);
SetDlgItemText(hdlg,IDC_BACKUPFILE,opts.backupFilename);
}
else ShowWindow(GetDlgItem(hdlg,IDC_STBACKUP),FALSE);
diff --git a/tools/dbtool/langpack.cpp b/tools/dbtool/langpack.cpp
index 85df5cdf22..97d24cadf4 100644
--- a/tools/dbtool/langpack.cpp
+++ b/tools/dbtool/langpack.cpp
@@ -342,7 +342,7 @@ static BOOL CALLBACK TranslateDialogEnumProc(HWND hwnd,LPARAM lParam)
if(!lstrcmpi(szClass,_T("static")) || !lstrcmpi(szClass,_T("hyperlink")) || !lstrcmpi(szClass,_T("button")) || !lstrcmpi(szClass,_T("MButtonClass")))
TranslateWindow(hwnd);
else if(!lstrcmpi(szClass,_T("edit"))) {
- if ( GetWindowLong(hwnd,GWL_STYLE)&ES_READONLY)
+ if ( GetWindowLongPtr(hwnd,GWL_STYLE)&ES_READONLY)
TranslateWindow(hwnd);
}
return TRUE;
diff --git a/tools/dbtool/openerror.cpp b/tools/dbtool/openerror.cpp
index 4938e69197..292d688be7 100644
--- a/tools/dbtool/openerror.cpp
+++ b/tools/dbtool/openerror.cpp
@@ -30,7 +30,7 @@ INT_PTR CALLBACK OpenErrorDlgProc(HWND hdlg,UINT message,WPARAM wParam,LPARAM lP
SetDlgItemText(hdlg,IDC_ERRORTEXT,szError);
}
if(opts.error==ERROR_SHARING_VIOLATION) ShowWindow(GetDlgItem(hdlg,IDC_INUSE),SW_SHOW);
- SetWindowLong( GetDlgItem( hdlg, IDC_FILE ), GWL_STYLE, GetWindowLong( GetDlgItem( hdlg, IDC_FILE ), GWL_STYLE ) | SS_PATHELLIPSIS );
+ SetWindowLongPtr( GetDlgItem( hdlg, IDC_FILE ), GWL_STYLE, GetWindowLongPtr( GetDlgItem( hdlg, IDC_FILE ), GWL_STYLE ) | SS_PATHELLIPSIS );
TranslateDialog( hdlg );
SetDlgItemText( hdlg, IDC_FILE, opts.filename );
return TRUE;
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")) {