OSDN Git Service

DTXMania089リリースに際してのtag付け。
[dtxmania/dtxmania.git] / 110401(DTXMania089) / FDK17プロジェクト / コード / 01.フレームワーク / Win32 / WindowConstants.cs
1 /*\r
2 * Copyright (c) 2007-2009 SlimDX Group\r
3\r
4 * Permission is hereby granted, free of charge, to any person obtaining a copy\r
5 * of this software and associated documentation files (the "Software"), to deal\r
6 * in the Software without restriction, including without limitation the rights\r
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
8 * copies of the Software, and to permit persons to whom the Software is\r
9 * furnished to do so, subject to the following conditions:\r
10\r
11 * The above copyright notice and this permission notice shall be included in\r
12 * all copies or substantial portions of the Software.\r
13\r
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
20 * THE SOFTWARE.\r
21 */\r
22 using System;\r
23 \r
24 namespace SampleFramework\r
25 {\r
26     static class WindowConstants\r
27     {\r
28         public const int WM_SIZE = 0x5;\r
29         public const int WM_SYSCOMMAND = 0x112;\r
30         public const int WM_ACTIVATEAPP = 0x001C;\r
31         public const int WM_POWERBROADCAST = 0x0218;\r
32 \r
33         public const int SC_SCREENSAVE = 0xF140;\r
34         public const int SC_MONITORPOWER = 0xF170;\r
35 \r
36         public const int VK_LWIN = 0x5B;\r
37         public const int VK_RWIN = 0x5C;\r
38 \r
39         public static readonly IntPtr SIZE_MINIMIZED = new IntPtr(1);\r
40         public static readonly IntPtr SIZE_MAXIMIZED = new IntPtr(2);\r
41         public static readonly IntPtr SIZE_RESTORED = new IntPtr(0);\r
42 \r
43         public static readonly IntPtr PBT_APMQUERYSUSPEND = new IntPtr(0x0000);\r
44         public static readonly IntPtr PBT_APMRESUMESUSPEND = new IntPtr(0x0007);\r
45 \r
46         public const int WPF_RESTORETOMAXIMIZED = 2;\r
47 \r
48         public const int SW_RESTORE = 9;\r
49         public const int SW_SHOWMINIMIZED = 2;\r
50         public const int SW_MAXIMIZE = 3;\r
51         public const int SW_SHOW = 5;\r
52         public const int SW_MINIMIZE = 6;\r
53 \r
54         public const int GWL_STYLE = -16;\r
55         public const int GWL_EXSTYLE = -20;\r
56 \r
57         public const long WS_MAXIMIZE = 0x01000000;\r
58         public const long WS_MINIMIZE = 0x20000000;\r
59         public const long WS_POPUP = 0x80000000;\r
60         public const long WS_SYSMENU = 0x00080000;\r
61 \r
62         public const long WS_EX_TOPMOST = 0x00000008;\r
63 \r
64         public const uint SWP_NOSIZE = 0x0001;\r
65         public const uint SWP_NOMOVE = 0x0002;\r
66         public const uint SWP_NOZORDER = 0x0004;\r
67         public const uint SWP_NOREDRAW = 0x0008;\r
68 \r
69         public const uint ES_CONTINUOUS = 0x80000000;\r
70         public const uint ES_DISPLAY_REQUIRED = 0x00000002;\r
71 \r
72         public const int MONITOR_DEFAULTTOPRIMARY = 1;\r
73     }\r
74 }\r