unity最小化程序窗口
来源:互联网 发布:mac os操作系统教程 编辑:程序博客网 时间:2024/06/04 23:19
using UnityEngine;using System;using System.Runtime.InteropServices;public class MinSize : MonoBehaviour{ [DllImport("user32.dll")] public static extern bool ShowWindow(System.IntPtr hwnd, int nCmdShow); [DllImport("user32.dll", EntryPoint = "GetForegroundWindow")] public static extern System.IntPtr GetForegroundWindow(); [DllImport("user32.dll", SetLastError = true)] private static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [DllImport("user32.dll")] private static extern bool EnableWindow(IntPtr hwnd, bool enable); [DllImport("user32.dll")] private static extern bool MoveWindow(IntPtr handle, int x, int y, int width, int height, bool redraw); void Start() { ShowWindow(FindWindow(null, "ReadQRcode"), 7); }}
阅读全文
0 0
- unity最小化程序窗口
- unity窗口最大化最小化及窗口还原
- centos6.4 程序窗口最小化后找不到窗口标签
- 最小化窗口
- VC 制作系统托盘程序实现将窗口最小化到系统托盘
- C#隐藏其他程序窗口以及添加最小化/最大化按钮
- Qt 程序窗口最大、最小化相关的设置方法
- C++MFC程序窗口无法显示最大最小化按钮问题
- VS2010编写MFC程序,调整窗口大小和实现窗口最大化、最小化方法。
- 最小化、最大化、关闭窗口
- javascript 最大化最小化窗口
- 客户端窗口最大最小化
- javascript 最大化最小化窗口
- 最小化时隐藏窗口
- 最小化的窗口闪烁
- c# 关闭 窗口最小化
- 窗口的最大化最小化
- 不随主窗口一起最小化
- 51nod 1083 矩阵取数问题
- 安卓Java转kotlin
- Unity 物体不旋转方向 向自身0-360度方向移动
- java 中 hashCode方法
- Java入门(6)——集合、基本数据类型和引用数据类型的相互转换
- unity最小化程序窗口
- Flink快速上手
- 获取的ajax方法return的返回值的问题解析
- Python使用doc2vec和LR进行文本分类
- Windows bat脚本获取IP
- Andorid Studio中使用lambda的配置
- 欢迎使用CSDN-markdown编辑器
- Java -嵌套c lass
- MySQL基础知识复习与巩固