private void notifyIcon_MouseDoubleClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
Debug.Log("123");
OnClickMaximize();
}
}
OnClickMaximize();并不執行
uj5u.com熱心網友回復:
這不是winform....如果你要針對windows平臺的話使用WIN32 API吧
uj5u.com熱心網友回復:
那不是有最小化的嗎,勾選windowed就可以了啊uj5u.com熱心網友回復:
[DllImport("user32.dll")]public static extern bool ShowWindow(IntPtr hwnd, int nCmdShow);
[DllImport("user32.dll")]
static extern IntPtr GetForegroundWindow();
const int Min = 2;
const int Max = 3;
const int Normal = 1;
然后在start函式里呼叫
ShowWindow(GetForegroundWindow(), Min);
他會一運行就最小化
記得參考命名空間
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/35713.html
標籤:Unity3D
