自定义 OpenFileDialog:帮助按钮

问题描述 投票:0回答:0

我想在 OpenFileDialog 窗口中禁用“帮助”按钮或更改其行为(当前打开 https://go.microsoft.com/fwlink/?LinkID=2004439)。

我希望用

IFileDialogCustomize::RemoveControlItem()
IFileDialogCustomize::SetControlItemState(, , CDCS_INACTIVE)
。但是,我不知道如何找到帮助按钮的
dwIDItem
。 Inspect.exe 工具提供以下信息:

hwnd=0x0000000000090958 64bit class="DirectUIHWND" style=0x56000000 ex=0x10000
Name: "&Help"
ControlType: UIA_ButtonControlTypeId (0xC350)

那么,我可以禁用/隐藏此按钮或更改其行为吗?如果是这样,是否有任何例子说明这是如何完成的?

c# .net winforms user-interface openfiledialog
© www.soinside.com 2019 - 2024. All rights reserved.