元SE。田舎の公務員

通勤快足な生活をしながら、開発技術とウェイトコントロールについてつらつらと。。。

【C#】【ShowWindow】

ShowWindow() :ウィンドウの表示状態を設定します。
//BOOL ShowWindow(
// HWND hWnd, // ウィンドウのハンドル
// int nCmdShow // 表示状態
//);
const int SW_HIDE = 0;
const int SW_SHOWNORMAL = 1;
const int SW_NORMAL = 1;
const int SW_SHOWMINIMIZED = 2;
const int SW_SHOWMAXIMIZED = 3;
const int SW_MAXIMIZE = 3;
const int SW_SHOWNOACTIVATE = 4;
const int SW_SHOW = 5;
const int SW_MINIMIZE = 6;
const int SW_SHOWMINNOACTIVE = 7;
const int SW_SHOWNA = 8;
const int SW_RESTORE = 9;
const int SW_SHOWDEFAULT = 10;
const int SW_FORCEMINIMIZE = 11;
const int SW_MAX = 11;
[DllImport("User32.Dll")]
static extern int ShowWindow( IntPtr hWnd, int nCmdShow );