使用任务栏覆盖与CDialog [英] Use taskbar overlay with CDialog

查看:80
本文介绍了使用任务栏覆盖与CDialog的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道您可以设置任务栏覆盖

I am aware that you can set taskbar overlay with

BOOL SetTaskbarOverlayIcon(UINT nIDResource, LPCTSTR lpcszDescr)



但这只适用于你继承自


But this works only if you inherit from

CFrameWndEx

CFrameWnd



如果您继承了


Is there any workaround where you can use same functionality if you inherit from

CDialogEx

CDialog

推荐答案

文档 [ ^ ]清楚地表明此函数属于 CFrameWnd 类,其中 CDialog 不会继承。
The documentation[^] clearly shows that this function belongs to the CFrameWnd class, which CDialog does not inherit.


这篇关于使用任务栏覆盖与CDialog的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆