api_showwindow

The function warps the WIN32 ShowWindow API in User32.dll.

您现在正在关注此提交

When using MATLAB on windows platforms one could write MEX files to access the WIN32 API functions. However such a tutorial is difficult to find.

I decided to post an example with a commented C-MEX file that will demonstrate how to accurately find the windows handle of a MATLAB figure window and then do some API command on it.

For simplicity I selected the 'ShowWindow' API because it can be used to solve the 'common' figure maximization problem. (maximizefigure.m sample included)

引用格式

Mihai Moldovan (2026). api_showwindow (https://ww2.mathworks.cn/matlabcentral/fileexchange/2041-api_showwindow), MATLAB Central File Exchange. 检索时间: .

致谢

启发作品: maxfig, WindowAPI

类别

Help CenterMATLAB Answers 中查找有关 Interactive Control and Callbacks 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0