OSDN Git Service

Merge branch 'feature/37178_プロジェクトとソリューションファイルの英語化' into develop
[dtxmania/dtxmania.git] / FDK / コード / 01.フレームワーク / Win32 / WindowConstants.cs
diff --git a/FDK/コード/01.フレームワーク/Win32/WindowConstants.cs b/FDK/コード/01.フレームワーク/Win32/WindowConstants.cs
new file mode 100644 (file)
index 0000000..f212024
--- /dev/null
@@ -0,0 +1,77 @@
+/*
+* Copyright (c) 2007-2009 SlimDX Group
+* 
+* Permission is hereby granted, free of charge, to any person obtaining a copy
+* of this software and associated documentation files (the "Software"), to deal
+* in the Software without restriction, including without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+* 
+* The above copyright notice and this permission notice shall be included in
+* all copies or substantial portions of the Software.
+* 
+* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+* THE SOFTWARE.
+*/
+using System;
+
+namespace SampleFramework
+{
+    static class WindowConstants
+    {
+        public const int WM_SIZE = 0x5;
+        public const int WM_SYSCOMMAND = 0x112;
+        public const int WM_ACTIVATEAPP = 0x001C;
+        public const int WM_POWERBROADCAST = 0x0218;
+               public const int WM_COPYDATA = 0x004A;
+
+        public const int SC_SCREENSAVE = 0xF140;
+        public const int SC_MONITORPOWER = 0xF170;
+
+        public const int VK_LWIN = 0x5B;
+        public const int VK_RWIN = 0x5C;
+
+        public static readonly IntPtr SIZE_MINIMIZED = new IntPtr(1);
+        public static readonly IntPtr SIZE_MAXIMIZED = new IntPtr(2);
+        public static readonly IntPtr SIZE_RESTORED = new IntPtr(0);
+
+        public static readonly IntPtr PBT_APMQUERYSUSPEND = new IntPtr(0x0000);
+        public static readonly IntPtr PBT_APMRESUMESUSPEND = new IntPtr(0x0007);
+
+        public const int WPF_RESTORETOMAXIMIZED = 2;
+
+        public const int SW_RESTORE = 9;
+        public const int SW_SHOWMINIMIZED = 2;
+        public const int SW_MAXIMIZE = 3;
+        public const int SW_SHOW = 5;
+        public const int SW_MINIMIZE = 6;
+
+        public const int GWL_STYLE = -16;
+        public const int GWL_EXSTYLE = -20;
+
+        public const long WS_MAXIMIZE = 0x01000000;
+        public const long WS_MINIMIZE = 0x20000000;
+        public const long WS_POPUP = 0x80000000;
+        public const long WS_SYSMENU = 0x00080000;
+
+        public const long WS_EX_TOPMOST = 0x00000008;
+
+        public const uint SWP_NOSIZE = 0x0001;
+        public const uint SWP_NOMOVE = 0x0002;
+        public const uint SWP_NOZORDER = 0x0004;
+        public const uint SWP_NOREDRAW = 0x0008;
+
+        public const uint ES_CONTINUOUS = 0x80000000;
+        public const uint ES_DISPLAY_REQUIRED = 0x00000002;
+
+        public const int MONITOR_DEFAULTTOPRIMARY = 1;
+
+               public const int WM_USER = 0x400;
+       }
+}