Robert Shearman : msi: Support msidbControlAttributesSunken.
Module: wine Branch: refs/heads/master Commit: 04f547dc50afd3ca3624270866c7e282a893749c URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=04f547dc50afd3ca36242708... Author: Robert Shearman <rob(a)codeweavers.com> Date: Mon Jan 23 11:55:33 2006 +0100 msi: Support msidbControlAttributesSunken. --- dlls/msi/dialog.c | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index c3b305e..ebdfb7d 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -314,7 +314,7 @@ static UINT msi_dialog_build_font_list( } static msi_control *msi_dialog_create_window( msi_dialog *dialog, - MSIRECORD *rec, LPCWSTR szCls, LPCWSTR name, LPCWSTR text, + MSIRECORD *rec, DWORD exstyle, LPCWSTR szCls, LPCWSTR name, LPCWSTR text, DWORD style, HWND parent ) { DWORD x, y, width, height; @@ -351,7 +351,7 @@ static msi_control *msi_dialog_create_wi font = msi_dialog_get_style( title_font, &title ); } - control->hwnd = CreateWindowW( szCls, title, style, + control->hwnd = CreateWindowExW( exstyle, szCls, title, style, x, y, width, height, parent, NULL, NULL, NULL ); TRACE("Dialog %s control %s hwnd %p\n", @@ -520,6 +520,7 @@ static msi_control *msi_dialog_add_contr { DWORD attributes; LPCWSTR text, name; + DWORD exstyle = 0; name = MSI_RecordGetString( rec, 2 ); attributes = MSI_RecordGetInteger( rec, 8 ); @@ -528,11 +529,13 @@ static msi_control *msi_dialog_add_contr style |= WS_VISIBLE; if( ~attributes & msidbControlAttributesEnabled ) style |= WS_DISABLED; + if( attributes & msidbControlAttributesSunken ) + exstyle |= WS_EX_CLIENTEDGE; msi_dialog_map_events(dialog, name); - return msi_dialog_create_window( dialog, rec, szCls, name, text, - style, dialog->hwnd ); + return msi_dialog_create_window( dialog, rec, exstyle, szCls, name, + text, style, dialog->hwnd ); } struct msi_text_info @@ -1335,7 +1338,7 @@ static UINT msi_dialog_create_radiobutto if( ~attributes & 2 ) style |= WS_DISABLED; - control = msi_dialog_create_window( dialog, rec, szButton, name, text, + control = msi_dialog_create_window( dialog, rec, 0, szButton, name, text, style, group->parent->hwnd ); if (!control) return ERROR_FUNCTION_FAILED;
participants (1)
-
Alexandre Julliard