其他分享
首页 > 其他分享> > NX二次开发-使用SendMessage给NX窗口发送消息最小化

NX二次开发-使用SendMessage给NX窗口发送消息最小化

作者:互联网

 

NX11+VS2013

#include <afx.h>
#include <uf.h>
#include <uf_ui.h>


UF_initialize();

//获取UG窗口句柄
HWND UGHwnd = (HWND)UF_UI_get_default_parent();

//给窗口发送消息最小化
SendMessage(UGHwnd, WM_SYSCOMMAND, SC_MINIMIZE, 0);

UF_terminate();

阿飞
2022年4月15日

 

 

更多用法参考

https://www.cnblogs.com/nxopen2018/p/13932486.html

 

阿飞

2022年4月15日

标签:阿飞,UF,15,NX,SendMessage,二次开发,include
来源: https://www.cnblogs.com/nxopen2018/p/16147710.html