【NX二次开发】获取UG窗口句柄。实现操作UG窗口最小化、最大化、关闭功能
获取UG窗口句柄。实现操作UG窗口最小化、最大化、关闭功能
int doWork() { //UG窗口句柄 HWND hwndUG = (HWND)UF_UI_get_default_parent(); uc1601("最小化UG窗口", 1); SendMessage(hwndUG, WM_SYSCOMMAND, SC_MINIMIZE, 0); uc1601("最大化UG窗口", 1); SendMessage(hwndUG, WM_SYSCOMMAND, SC_MAXIMIZE, 0); uc1601("关闭UG窗口", 1); SendMessage(hwndUG, WM_SYSCOMMAND, SC_CLOSE, 0); return 0; }