Changing Window Titles

版本 1.3.0.1 (5.4 KB) 作者: Malcolm Wood
Provides the ability to change the titles of all windows in the MATLAB process
3.2K 次下载
更新时间 2016/9/1

查看许可证

If you're using more than one instance of MATLAB at a time, it's useful to be able to tell them apart at a glance. This utility lets you rename the MATLAB window so that it can be distinguished from other instances in the task bar, and when tabbing between windows.
Two functions are included:

>> [hWnd,title] = findAllWindows
returns the names and handles of all windows in the MATLAB process.

>> setWindowTitle(hWnd,title)
allows you to set the title of any window in the MATLAB process.

An example script is included, as are help files and full source code.

You will need to build the MEX functions yourself. If you haven't run "mex" before, use:
>> mex -setup
and follow the instructions for selecting a compiler.

Then run:
>> mex findAllWindows.cpp
>> mex setWindowTitle.cpp
This works with Microsoft Visual Studio 2005, and probably with other versions too. If you encounter linking problems, try adding "user32.lib" to the end of the command.

引用格式

Malcolm Wood (2024). Changing Window Titles (https://www.mathworks.com/matlabcentral/fileexchange/11046-changing-window-titles), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2006a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Title 的更多信息
致谢

参考作品: sethicon

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.3.0.1

Updated license

1.3.0.0

Removed mexw32 files.

1.2.0.0

Added copyright lines. Removed binaries to comply with conditions of the site. Added compilation instructions.

1.1.0.0

Review

1.0.0.0

Removed the function which changes the window icon, which is in violation of the licence agreement for MATLAB 7 and later.