getHWnd - retrieve the underlying Windows handle for Matlab figure(s)

버전 1.2.0.0 (4.96 KB) 작성자: Yair Altman
Enable C++ GUI integration by retrieving the HWnd handle of matlab figure(s)
다운로드 수: 3.5K
업데이트 날짜: 2018/6/28

라이선스 보기

Syntax:
hWnd = gethwnd(hFig)

Description:
HWnd = GETHWND retrieves the current figure (gcf)'s underlying Windows handle, thus enabling integration of Matlab GUI in C/C++/C# programs.
HWnd = GETHWND(hFig) retrieves a specific figure's underlying Windows handle. hFig is a Matlab handle, or a list of handles (not necessarily figure handle(s) - the handles' containing figure is used).

Limitations:
Windows-only (duh!); Java must be enabled

Warning:
This code heavily relies on undocumented and unsupported Matlab functionality. It works on Matlab 7+, but use at your own risk!

Bugs and suggestions:
Please send to Yair Altman (altmany at gmail dot com)

인용 양식

Yair Altman (2024). getHWnd - retrieve the underlying Windows handle for Matlab figure(s) (https://www.mathworks.com/matlabcentral/fileexchange/16743-gethwnd-retrieve-the-underlying-windows-handle-for-matlab-figure-s), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2007a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.2.0.0

Fix for R2014b onward (HG2)

1.1.0.0

Fix for R2011b

1.0.0.0