Huw Davies : oledlg: Minimal 'As Icon' handling. Just disable for now.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Oct 20 04:46:02 CDT 2006
Module: wine
Branch: master
Commit: aa9fdd06e4610f121293815819898c85cbbca120
URL: http://source.winehq.org/git/wine.git/?a=commit;h=aa9fdd06e4610f121293815819898c85cbbca120
Author: Huw Davies <huw at codeweavers.com>
Date: Thu Oct 19 11:17:04 2006 +0100
oledlg: Minimal 'As Icon' handling. Just disable for now.
---
dlls/oledlg/pastespl.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/dlls/oledlg/pastespl.c b/dlls/oledlg/pastespl.c
index 86997e4..26f91e8 100644
--- a/dlls/oledlg/pastespl.c
+++ b/dlls/oledlg/pastespl.c
@@ -290,6 +290,23 @@ static void init_lists(HWND hdlg, ps_str
EnableWindow(GetDlgItem(hdlg, IDOK), 0);
}
+static void update_as_icon(HWND hdlg, ps_struct_t *ps_struct)
+{
+ HWND icon_display = GetDlgItem(hdlg, IDC_PS_ICONDISPLAY);
+ HWND display_as_icon = GetDlgItem(hdlg, IDC_PS_DISPLAYASICON);
+ HWND change_icon = GetDlgItem(hdlg, IDC_PS_CHANGEICON);
+
+ /* FIXME. No as icon handling */
+ ps_struct->flags &= ~PSF_CHECKDISPLAYASICON;
+
+ CheckDlgButton(hdlg, IDC_PS_DISPLAYASICON, ps_struct->flags & PSF_CHECKDISPLAYASICON);
+ EnableWindow(display_as_icon, 0);
+ ShowWindow(icon_display, SW_HIDE);
+ EnableWindow(icon_display, 0);
+ ShowWindow(change_icon, SW_HIDE);
+ EnableWindow(change_icon, 0);
+}
+
static void update_result_text(HWND hdlg, ps_struct_t *ps_struct)
{
WCHAR resource_txt[200];
@@ -341,6 +358,7 @@ static void update_result_text(HWND hdlg
static void selection_change(HWND hdlg, ps_struct_t *ps_struct)
{
+ update_as_icon(hdlg, ps_struct);
update_result_text(hdlg, ps_struct);
}
More information about the wine-cvs
mailing list