@@ -89,6 +89,7 @@ public Boolean Exists
8989 public const Int32 SC_ALIGN_DEFAULT = 0x4799 ;
9090 public const Int32 SC_ALIGN_CUSTOM = 0x4800 ;
9191 public const Int32 SC_ALIGN_MONITOR = 0x4801 ;
92+ public const Int32 SC_SAVE_SCREEN_SHOT = 0x4802 ;
9293
9394 #endregion
9495
@@ -108,6 +109,7 @@ public void Create()
108109 NativeMethods . InsertMenu ( windowMenuHandle , index , NativeConstants . MF_BYPOSITION | NativeConstants . MF_SEPARATOR , IntPtr . Zero , "" ) ;
109110 NativeMethods . InsertMenu ( windowMenuHandle , index + 1 , NativeConstants . MF_BYPOSITION , SC_INFORMATION , "Information" ) ;
110111 NativeMethods . InsertMenu ( windowMenuHandle , index + 2 , NativeConstants . MF_BYPOSITION , SC_TOPMOST , "Always On Top" ) ;
112+ NativeMethods . InsertMenu ( windowMenuHandle , index + 3 , NativeConstants . MF_BYPOSITION , SC_SAVE_SCREEN_SHOT , "Save Window Screenshot" ) ;
111113
112114 _sizeMenuHandle = NativeMethods . CreateMenu ( ) ;
113115 NativeMethods . InsertMenu ( _sizeMenuHandle , - 1 , NativeConstants . MF_BYPOSITION , SC_SIZE_640_480 , "640x480" ) ;
@@ -127,7 +129,7 @@ public void Create()
127129 NativeMethods . InsertMenu ( _sizeMenuHandle , - 1 , NativeConstants . MF_BYPOSITION , SC_SIZE_DEFAULT , "Default" ) ;
128130 NativeMethods . InsertMenu ( _sizeMenuHandle , - 1 , NativeConstants . MF_BYPOSITION | NativeConstants . MF_SEPARATOR , 0 , "" ) ;
129131 NativeMethods . InsertMenu ( _sizeMenuHandle , - 1 , NativeConstants . MF_BYPOSITION , SC_SIZE_CUSTOM , "Custom..." ) ;
130- NativeMethods . InsertMenu ( windowMenuHandle , index + 3 , NativeConstants . MF_BYPOSITION | NativeConstants . MF_POPUP , _sizeMenuHandle , "Resize" ) ;
132+ NativeMethods . InsertMenu ( windowMenuHandle , index + 4 , NativeConstants . MF_BYPOSITION | NativeConstants . MF_POPUP , _sizeMenuHandle , "Resize" ) ;
131133
132134 _alignmentMenuHandle = NativeMethods . CreateMenu ( ) ;
133135 NativeMethods . InsertMenu ( _alignmentMenuHandle , - 1 , NativeConstants . MF_BYPOSITION , SC_ALIGN_MONITOR , "Monitor" ) ;
@@ -145,7 +147,7 @@ public void Create()
145147 NativeMethods . InsertMenu ( _alignmentMenuHandle , - 1 , NativeConstants . MF_BYPOSITION , SC_ALIGN_DEFAULT , "Default" ) ;
146148 NativeMethods . InsertMenu ( _alignmentMenuHandle , - 1 , NativeConstants . MF_BYPOSITION | NativeConstants . MF_SEPARATOR , 0 , "" ) ;
147149 NativeMethods . InsertMenu ( _alignmentMenuHandle , - 1 , NativeConstants . MF_BYPOSITION , SC_ALIGN_CUSTOM , "Custom..." ) ;
148- NativeMethods . InsertMenu ( windowMenuHandle , index + 4 , NativeConstants . MF_BYPOSITION | NativeConstants . MF_POPUP , _alignmentMenuHandle , "Alignment" ) ;
150+ NativeMethods . InsertMenu ( windowMenuHandle , index + 5 , NativeConstants . MF_BYPOSITION | NativeConstants . MF_POPUP , _alignmentMenuHandle , "Alignment" ) ;
149151
150152 _transparencyMenuHandle = NativeMethods . CreateMenu ( ) ;
151153 NativeMethods . InsertMenu ( _transparencyMenuHandle , - 1 , NativeConstants . MF_BYPOSITION , SC_TRANS_00 , "0% (opaque)" ) ;
@@ -163,7 +165,7 @@ public void Create()
163165 NativeMethods . InsertMenu ( _transparencyMenuHandle , - 1 , NativeConstants . MF_BYPOSITION , SC_TRANS_DEFAULT , "Default" ) ;
164166 NativeMethods . InsertMenu ( _transparencyMenuHandle , - 1 , NativeConstants . MF_BYPOSITION | NativeConstants . MF_SEPARATOR , 0 , "" ) ;
165167 NativeMethods . InsertMenu ( _transparencyMenuHandle , - 1 , NativeConstants . MF_BYPOSITION , SC_TRANS_CUSTOM , "Custom..." ) ;
166- NativeMethods . InsertMenu ( windowMenuHandle , index + 5 , NativeConstants . MF_BYPOSITION | NativeConstants . MF_POPUP , _transparencyMenuHandle , "Transparency" ) ;
168+ NativeMethods . InsertMenu ( windowMenuHandle , index + 6 , NativeConstants . MF_BYPOSITION | NativeConstants . MF_POPUP , _transparencyMenuHandle , "Transparency" ) ;
167169
168170 _priorityMenuHandle = NativeMethods . CreateMenu ( ) ;
169171 NativeMethods . InsertMenu ( _priorityMenuHandle , - 1 , NativeConstants . MF_BYPOSITION , SC_PRIORITY_REAL_TIME , "Real Time: 24" ) ;
@@ -172,12 +174,12 @@ public void Create()
172174 NativeMethods . InsertMenu ( _priorityMenuHandle , - 1 , NativeConstants . MF_BYPOSITION , SC_PRIORITY_NORMAL , "Normal: 8" ) ;
173175 NativeMethods . InsertMenu ( _priorityMenuHandle , - 1 , NativeConstants . MF_BYPOSITION , SC_PRIORITY_BELOW_NORMAL , "Below Normal: 6" ) ;
174176 NativeMethods . InsertMenu ( _priorityMenuHandle , - 1 , NativeConstants . MF_BYPOSITION , SC_PRIORITY_IDLE , "Idle: 4" ) ;
175- NativeMethods . InsertMenu ( windowMenuHandle , index + 6 , NativeConstants . MF_BYPOSITION | NativeConstants . MF_POPUP , _priorityMenuHandle , "Priority" ) ;
177+ NativeMethods . InsertMenu ( windowMenuHandle , index + 7 , NativeConstants . MF_BYPOSITION | NativeConstants . MF_POPUP , _priorityMenuHandle , "Priority" ) ;
176178
177179 _systemTrayMenuHandle = NativeMethods . CreateMenu ( ) ;
178180 NativeMethods . InsertMenu ( _systemTrayMenuHandle , - 1 , NativeConstants . MF_BYPOSITION , SC_MINIMIZE_TO_SYSTEMTRAY , "&Mimimize To Tray" ) ;
179181 NativeMethods . InsertMenu ( _systemTrayMenuHandle , - 1 , NativeConstants . MF_BYPOSITION , SC_MINIMIZE_ALWAYS_TO_SYSTEMTRAY , "Mimimize To Tray Always" ) ;
180- NativeMethods . InsertMenu ( windowMenuHandle , index + 7 , NativeConstants . MF_BYPOSITION | NativeConstants . MF_POPUP , _systemTrayMenuHandle , "System Tray" ) ;
182+ NativeMethods . InsertMenu ( windowMenuHandle , index + 8 , NativeConstants . MF_BYPOSITION | NativeConstants . MF_POPUP , _systemTrayMenuHandle , "System Tray" ) ;
181183 }
182184
183185 public void Destroy ( )
0 commit comments