Windows资源管理器 显示地址的 Combox 是如何实现的?

lner 2002-05-14 01:50:22
Windows资源管理器 显示地址的 Combox 是如何实现的?
...全文
55 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
ljp3000 2002-05-14
  • 打赏
  • 举报
回复
哦,你说的是各项可有图标的啦,那不是。
ljp3000 2002-05-14
  • 打赏
  • 举报
回复
也是这个函数。
Parameters:
hwndEdit
[in] Window handle of a system edit control. Typically, this parameter is the handle of an edit control or the edit control embedded in a comboboxex control.
dwFlags
[in] Flags to control the operation of SHAutoComplete. The first four flags are used to override the Microsoft® Internet Explorer registry settings. The user can change these settings manually by launching the Internet Options property sheet from the Tools menu and clicking the Advanced tab. SHACF_AUTOAPPEND_FORCE_OFF Ignore the registry default and force the autoappend feature off. This flag must be used in combination with one or more of the SHACF_FILESYSXXX or SHACF_URLXXX flags.
SHACF_AUTOAPPEND_FORCE_ON Ignore the registry value and force the autoappend feature on. The completed string will be displayed in the edit box with the added characters highlighted. This flag must be used in combination with one or more of the SHACF_FILESYSXXX or SHACF_URLXXX flags.
SHACF_AUTOSUGGEST_FORCE_OFF Ignore the registry default and force the autosuggest feature off. This flag must be used in combination with one or more of the SHACF_FILESYSXXX or SHACF_URLXXX flags.
SHACF_AUTOSUGGEST_FORCE_ON Ignore the registry value and force the autosuggest feature on. A selection of possible completed strings will be displayed as a dropdown list, below the edit box. This flag must be used in combination with one or more of the SHACF_FILESYSXXX or SHACF_URLXXX flags.
SHACF_DEFAULT The default setting, equivalent to SHACF_FILESYSTEM | SHACF_URLALL. SHACF_DEFAULT cannot be combined with any other flags.
SHACF_FILESYSTEM Include the file system.
SHACF_URLALL Include the URLs in the users History and Recently Used lists. Equivalent to SHACF_URLHISTORY | SHACF_URLMRU.
SHACF_URLHISTORY Include the URLs in the user's History list.
SHACF_URLMRU Include the URLs in the user's Recently Used list.
SHACF_USETAB Allow the user to select from the autosuggest list by pressing the TAB key. If this flag is not set, pressing the TAB key will shift focus to the next control and close the autosuggest list. If SHACF_USETAB is set, pressing the TAB key will select the first item in the list. Pressing TAB again will select the next item in the list, and so on. When the user reaches the end of the list, the next TAB key press will cycle the focus back to the edit control. This flag must be used in combination with one or more of the SHACF_FILESYSXXX or SHACF_URLXXX flags.

Return Values
Returns S_OK if successful, or a standard OLE error value otherwise.

lner 2002-05-14
  • 打赏
  • 举报
回复
to ljp3000(坏坏) :
我是指 如何在 combox 中显示图标(图片)和字符串,...
ljp3000 2002-05-14
  • 打赏
  • 举报
回复
用这个函数
HRESULT SHAutoComplete(
HWND hwndEdit,
DWORD dwFlags
);
lner 2002-05-14
  • 打赏
  • 举报
回复
最好有类似代码,在线等待,即给分

2,586

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 资源
社区管理员
  • 资源
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧