窗口随时置顶
来源:互联网 发布:单片机电子琴汇编程序 编辑:程序博客网 时间:2024/05/11 21:08
如果需要自己的窗口在某时刻 置顶,可以这样:
如 :OnTimer
{
CPoint pt;
GetCursorPos(&pt);
CWnd *pWinAny=WindowFromPoint(pt);
DWORD tidOrig=GetWindowThreadProcessId(pWinAny->m_hWnd,0);
DWORD tid=GetCurrentThreadId();
if( tid != tidOrig)
{
afxDump << "Active My Window!\n";
if(AttachThreadInput(tid,tidOrig,TRUE))
{
SetActiveWindow();
// we have to detach it !
AttachThreadInput(tid,tidOrig,FALSE);
}
}
}
不怕 全 覆盖 !
最小化时,加入:
//
if (IsIconic())
{
ShowWindow(SW_RESTORE);
}
0 0
- 窗口随时置顶
- 窗口置顶/取消置顶
- 窗口置顶
- 窗口置顶
- 窗口置顶
- 窗口置顶
- 窗口置顶
- 窗口置顶/取消置顶工具
- VB让窗口置顶
- 窗口置顶问题
- 窗口置顶小工具
- swing 窗口置顶
- VB 无标题窗口置顶
- vb窗口置顶函数
- SetWindowPos窗口置顶
- 取消窗口置顶属性
- C++实现窗口置顶
- MFC对话窗口置顶
- 实验12
- EclipseCDT + Cygwin 下构建CppUnit
- Word Break II
- 框架嵌套实现网页的分层
- ADO,ADO.NET,ASP,ASP.NET区别
- 窗口随时置顶
- mysql字符串截取
- 【代码管理】GitHub超详细图文攻略 - Git客户端下载安装 GitHub提交修改源码工作流程 Git分支 标签 过滤 Git版本工作流
- JDK环境变量设置
- 【C#】C#访问和操作MYSQL数据库
- jetty meven eclipse集成总结
- A星寻路算法(A* Search Algorithm)
- Binary Tree Zigzag Level Order Traversal (LeetCode)
- 遇到你是我的一个劫