matlab 设置弹出的窗口在顶层,matlab实现图形窗口总是在顶部

这个博客介绍了一个MATLAB mex文件的实现,通过调用用户32库的"SetWindowPos"函数,使得MATLAB图形窗口可以始终置顶显示,即使焦点不在该窗口上。该功能在多任务环境下尤其有用,已在MATLAB R14 Service Pack 2 (Windows XP)上测试通过。
摘要由CSDN通过智能技术生成

Figure Window Always on Top

My first attempt at a mex file making a simple call to the "SetWindowPos" function in the user32 library. This allows users to keep MATLAB figures on top, floating above all other windows even when focus is not on the target window.

Example ...

figure(1);

winontop('figure 1');

Tested on MATLAB Version 7.0.4.365 (R14) Service Pack 2 running under Operating System: Microsoft Windows XP Version 5.1 (Build 2600: Service Pack 2)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值