Add support for CDM_HIDECONTROL message in the file open dialog.
This commit is contained in:
parent
b489f38193
commit
c8c8f1b8ba
|
@ -989,12 +989,19 @@ static INT_PTR FILEDLG95_HandleCustomDialogMessages(HWND hwnd, UINT uMsg, WPARAM
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CDM_HIDECONTROL:
|
case CDM_HIDECONTROL:
|
||||||
case CDM_SETDEFEXT:
|
/* MSDN states that it should fail for not OFN_EXPLORER case */
|
||||||
FIXME("CDM_HIDECONTROL,CDM_SETCONTROLTEXT,CDM_SETDEFEXT not implemented\n");
|
if (fodInfos->ofnInfos->Flags & OFN_EXPLORER)
|
||||||
retval = -1;
|
{
|
||||||
|
HWND control = GetDlgItem( hwnd, wParam );
|
||||||
|
if (control) ShowWindow( control, SW_HIDE );
|
||||||
|
retval = TRUE;
|
||||||
|
}
|
||||||
|
else retval = FALSE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
if (uMsg >= CDM_FIRST && uMsg <= CDM_LAST)
|
||||||
|
FIXME("message CDM_FIRST+%04x not implemented\n", uMsg - CDM_FIRST);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
SetWindowLongPtrW(hwnd, DWLP_MSGRESULT, retval);
|
SetWindowLongPtrW(hwnd, DWLP_MSGRESULT, retval);
|
||||||
|
|
Loading…
Reference in New Issue