Module: wine Branch: refs/heads/master Commit: c8c8f1b8badf601bc4f9c8551573b5ca9b7f9540 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=c8c8f1b8badf601bc4f9c855...
Author: Dmitry Timoshkov dmitry@codeweavers.com Date: Fri Feb 3 12:28:42 2006 +0100
Add support for CDM_HIDECONTROL message in the file open dialog.
---
dlls/commdlg/filedlg.c | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/dlls/commdlg/filedlg.c b/dlls/commdlg/filedlg.c index e4a0463..a3a4c83 100644 --- a/dlls/commdlg/filedlg.c +++ b/dlls/commdlg/filedlg.c @@ -989,12 +989,19 @@ static INT_PTR FILEDLG95_HandleCustomDia break;
case CDM_HIDECONTROL: - case CDM_SETDEFEXT: - FIXME("CDM_HIDECONTROL,CDM_SETCONTROLTEXT,CDM_SETDEFEXT not implemented\n"); - retval = -1; + /* MSDN states that it should fail for not OFN_EXPLORER case */ + if (fodInfos->ofnInfos->Flags & OFN_EXPLORER) + { + HWND control = GetDlgItem( hwnd, wParam ); + if (control) ShowWindow( control, SW_HIDE ); + retval = TRUE; + } + else retval = FALSE; break;
default: + if (uMsg >= CDM_FIRST && uMsg <= CDM_LAST) + FIXME("message CDM_FIRST+%04x not implemented\n", uMsg - CDM_FIRST); return FALSE; } SetWindowLongPtrW(hwnd, DWLP_MSGRESULT, retval);