commdlg: font dialog
Ulrich Czekalla
ulrich.czekalla at utoronto.ca
Mon Mar 27 10:33:56 CST 2006
ChangeLog:
Ulrich Czekalla <ulrich at codeweavers.com>
Properly set and retrieve colour value from combo box
-------------- next part --------------
Subject: [PATCH] Properly set and retrieve colour value from combo box
---
dlls/commdlg/fontdlg.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
8fbf307c700e7f1350f880e2aed3bdc5b4fb2a89
diff --git a/dlls/commdlg/fontdlg.c b/dlls/commdlg/fontdlg.c
index b85bcae..a80e3c1 100644
--- a/dlls/commdlg/fontdlg.c
+++ b/dlls/commdlg/fontdlg.c
@@ -632,9 +632,9 @@ LRESULT CFn_WMInitDialog(HWND hDlg, WPAR
memcpy(name, strColorName, sizeof(strColorName));
}
j=SendDlgItemMessageW(hDlg, cmb4, CB_ADDSTRING, 0, (LPARAM)name);
- SendDlgItemMessageW(hDlg, cmb4, CB_SETITEMDATA, j, textcolors[j]);
+ SendDlgItemMessageW(hDlg, cmb4, CB_SETITEMDATA, j, textcolors[i]);
/* look for a fitting value in color combobox */
- if (textcolors[j]==lpcf->rgbColors)
+ if (textcolors[i]==lpcf->rgbColors)
SendDlgItemMessageW(hDlg,cmb4, CB_SETCURSEL,j,0);
}
}
@@ -994,7 +994,7 @@ LRESULT CFn_WMCommand(HWND hDlg, WPARAM
{
WINDOWINFO wininfo;
- lpcf->rgbColors=textcolors[i];
+ lpcf->rgbColors = SendDlgItemMessageW(hDlg, cmb4, CB_GETITEMDATA, i, 0);
wininfo.cbSize=sizeof(wininfo);
if( GetWindowInfo( GetDlgItem( hDlg, stc5), &wininfo ) )
--
1.0.6
More information about the wine-patches
mailing list