@@ -266,7 +266,7 @@ public static IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, IntPtr wParam, IntPtr
266
266
/// If gateways are missing or incomplete, please help extend them and send your code to the project
267
267
/// at https://github.com/kbilsted/NotepadPlusPlusPluginPack.Net
268
268
/// </summary>
269
- public static IntPtr SendMessage ( IntPtr hWnd , uint Msg , int wParam , ref LangType lParam )
269
+ public static IntPtr SendMessage ( IntPtr hWnd , uint Msg , int wParam , ref LangType lParam )
270
270
{
271
271
IntPtr outVal ;
272
272
IntPtr retval = SendMessage ( hWnd , ( UInt32 ) Msg , new IntPtr ( wParam ) , out outVal ) ;
@@ -279,7 +279,7 @@ public static IntPtr SendMessage(IntPtr hWnd, uint Msg, int wParam, ref LangType
279
279
[ DllImport ( "kernel32" ) ]
280
280
public static extern int GetPrivateProfileInt ( string lpAppName , string lpKeyName , int nDefault , string lpFileName ) ;
281
281
282
- [ DllImport ( "kernel32" ) ]
282
+ [ DllImport ( "kernel32" ) ]
283
283
public static extern int GetPrivateProfileString ( string lpAppName , string lpKeyName , string lpDefault , StringBuilder lpReturnedString , int nSize , string lpFileName ) ;
284
284
285
285
[ DllImport ( "kernel32" ) ]
@@ -288,12 +288,18 @@ public static IntPtr SendMessage(IntPtr hWnd, uint Msg, int wParam, ref LangType
288
288
public const int MF_BYCOMMAND = 0 ;
289
289
public const int MF_CHECKED = 8 ;
290
290
public const int MF_UNCHECKED = 0 ;
291
+ public const int MF_ENABLED = 0 ;
292
+ public const int MF_GRAYED = 1 ;
293
+ public const int MF_DISABLED = 2 ;
291
294
292
295
[ DllImport ( "user32" ) ]
293
296
public static extern IntPtr GetMenu ( IntPtr hWnd ) ;
294
297
295
298
[ DllImport ( "user32" ) ]
296
- public static extern int CheckMenuItem ( IntPtr hmenu , int uIDCheckItem , int uCheck ) ;
299
+ public static extern int CheckMenuItem ( IntPtr hMenu , int uIDCheckItem , int uCheck ) ;
300
+
301
+ [ DllImport ( "user32" ) ]
302
+ public static extern bool EnableMenuItem ( IntPtr hMenu , int uIDEnableItem , int uEnable ) ;
297
303
298
304
public const int WM_CREATE = 1 ;
299
305
0 commit comments