@@ -35,7 +35,7 @@ public static void OnNotification(ScNotification notification)
3535 internal static void CommandMenuInit ( )
3636 {
3737 StringBuilder sbIniFilePath = new StringBuilder ( Win32 . MAX_PATH ) ;
38- Win32 . SendMessage ( PluginBase . nppData . _nppHandle , NppMsg . NPPM_GETPLUGINSCONFIGDIR , Win32 . MAX_PATH , sbIniFilePath ) ;
38+ Win32 . SendMessage ( PluginBase . nppData . _nppHandle , ( uint ) NppMsg . NPPM_GETPLUGINSCONFIGDIR , Win32 . MAX_PATH , sbIniFilePath ) ;
3939 iniFilePath = sbIniFilePath . ToString ( ) ;
4040 if ( ! Directory . Exists ( iniFilePath ) ) Directory . CreateDirectory ( iniFilePath ) ;
4141 iniFilePath = Path . Combine ( iniFilePath , PluginName + ".ini" ) ;
@@ -51,7 +51,7 @@ internal static void SetToolBarIcon()
5151 tbIcons . hToolbarBmp = tbBmp . GetHbitmap ( ) ;
5252 IntPtr pTbIcons = Marshal . AllocHGlobal ( Marshal . SizeOf ( tbIcons ) ) ;
5353 Marshal . StructureToPtr ( tbIcons , pTbIcons , false ) ;
54- Win32 . SendMessage ( PluginBase . nppData . _nppHandle , NppMsg . NPPM_ADDTOOLBARICON , PluginBase . _funcItems . Items [ idMyDlg ] . _cmdID , pTbIcons ) ;
54+ Win32 . SendMessage ( PluginBase . nppData . _nppHandle , ( uint ) NppMsg . NPPM_ADDTOOLBARICON , PluginBase . _funcItems . Items [ idMyDlg ] . _cmdID , pTbIcons ) ;
5555 Marshal . FreeHGlobal ( pTbIcons ) ;
5656 }
5757
@@ -95,11 +95,11 @@ internal static void myDockableDialog()
9595 IntPtr _ptrNppTbData = Marshal . AllocHGlobal ( Marshal . SizeOf ( _nppTbData ) ) ;
9696 Marshal . StructureToPtr ( _nppTbData , _ptrNppTbData , false ) ;
9797
98- Win32 . SendMessage ( PluginBase . nppData . _nppHandle , NppMsg . NPPM_DMMREGASDCKDLG , 0 , _ptrNppTbData ) ;
98+ Win32 . SendMessage ( PluginBase . nppData . _nppHandle , ( uint ) NppMsg . NPPM_DMMREGASDCKDLG , 0 , _ptrNppTbData ) ;
9999 }
100100 else
101101 {
102- Win32 . SendMessage ( PluginBase . nppData . _nppHandle , NppMsg . NPPM_DMMSHOW , 0 , frmMyDlg . Handle ) ;
102+ Win32 . SendMessage ( PluginBase . nppData . _nppHandle , ( uint ) NppMsg . NPPM_DMMSHOW , 0 , frmMyDlg . Handle ) ;
103103 }
104104 }
105105 }
0 commit comments