From 534fea9b2d46ddbe51b3841f2ca6af2e468f5c00 Mon Sep 17 00:00:00 2001 From: mataes2007 Date: Sat, 3 Dec 2011 17:47:07 +0000 Subject: Dbx_mmap_SA: fixed options page showing Dbtool: fixed dbtool starting fixed version info git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@237 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- Dbx_mmap_SA/Dbtool/wizard.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Dbx_mmap_SA/Dbtool/wizard.cpp') diff --git a/Dbx_mmap_SA/Dbtool/wizard.cpp b/Dbx_mmap_SA/Dbtool/wizard.cpp index 8893b36..499b420 100644 --- a/Dbx_mmap_SA/Dbtool/wizard.cpp +++ b/Dbx_mmap_SA/Dbtool/wizard.cpp @@ -54,7 +54,7 @@ static BOOL CALLBACK MyControlsEnumChildren(HWND hwnd,LPARAM lParam) return TRUE; } -int DoMyControlProcessing(HWND hdlg,UINT message,WPARAM wParam,LPARAM lParam,BOOL *bReturn) +int DoMyControlProcessing(HWND hdlg,UINT message,WPARAM wParam,LPARAM lParam,INT_PTR *bReturn) { switch(message) { case WM_INITDIALOG: @@ -68,18 +68,18 @@ int DoMyControlProcessing(HWND hdlg,UINT message,WPARAM wParam,LPARAM lParam,BOO return TRUE; } if((GetWindowLongPtr((HWND)lParam,GWL_STYLE)&0xFFFF)==0) { - char szText[256]; - GetWindowTextA((HWND)lParam,szText,sizeof(szText)); - if(!strcmp(szText,"whiterect")) { + TCHAR szText[256]; + GetWindowText((HWND)lParam,szText,SIZEOF(szText)); + if(!_tcscmp(szText,_T("whiterect"))) { SetTextColor((HDC)wParam,RGB(255,255,255)); SetBkColor((HDC)wParam,RGB(255,255,255)); SetBkMode((HDC)wParam,OPAQUE); - *bReturn=(BOOL)GetStockObject(WHITE_BRUSH); + *bReturn=(INT_PTR)GetStockObject(WHITE_BRUSH); return TRUE; } else { SetBkMode((HDC)wParam,TRANSPARENT); - *bReturn=(BOOL)GetStockObject(NULL_BRUSH); + *bReturn=(INT_PTR)GetStockObject(NULL_BRUSH); return TRUE; } } -- cgit v1.2.3