diff options
author | mataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-12-03 17:47:07 +0000 |
---|---|---|
committer | mataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-12-03 17:47:07 +0000 |
commit | 534fea9b2d46ddbe51b3841f2ca6af2e468f5c00 (patch) | |
tree | 450c080d226f53cd1bfc8e100eacfdf84a45504e /Dbx_mmap_SA/Dbtool/wizard.cpp | |
parent | 331bd873e62c59d7e188eb7054c5abd46eeba15a (diff) |
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
Diffstat (limited to 'Dbx_mmap_SA/Dbtool/wizard.cpp')
-rw-r--r-- | Dbx_mmap_SA/Dbtool/wizard.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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;
}
}
|