11智能在线
新记
把窗体钉在桌面是如何实现的
如题所述
举报该文章
相关建议 2018-07-16
把你的窗口的父窗口句柄设置为名称为Progman的窗口 的句柄就可以了。
HWND hDesktop = ::FindWindow("Progman", NULL);
//hDesktop = ::GetWindow(hDesktop, GW_CHILD);
CWnd* pWndDesktop = CWnd::FromHandle(hDesktop);
this->SetParent(pWndDesktop);
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/fq2p4ms748v7qmpv44m.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
MFC 如何把窗体钉在桌面
如何将c#窗体固定在桌面上
怎么让窗体,固定在屏幕的莫个位置!?
如何给VB.NET窗体添加子窗体?
怎么做到让程序窗口始终显示在桌面最上层,即始终掩盖在其他打开...
C# 窗体如何嵌入到win7桌面中,置于桌面图标之下?
找一个可以把窗口钉在桌面上的程序,快捷键切换也不起作用的。
C# 的窗体如何像歌曲播放器的歌词一样钉在桌面最下面。