@@ -35,7 +35,7 @@ public static void OnNotification(ScNotification notification)
35
35
internal static void CommandMenuInit ( )
36
36
{
37
37
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 ) ;
39
39
iniFilePath = sbIniFilePath . ToString ( ) ;
40
40
if ( ! Directory . Exists ( iniFilePath ) ) Directory . CreateDirectory ( iniFilePath ) ;
41
41
iniFilePath = Path . Combine ( iniFilePath , PluginName + ".ini" ) ;
@@ -51,7 +51,7 @@ internal static void SetToolBarIcon()
51
51
tbIcons . hToolbarBmp = tbBmp . GetHbitmap ( ) ;
52
52
IntPtr pTbIcons = Marshal . AllocHGlobal ( Marshal . SizeOf ( tbIcons ) ) ;
53
53
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 ) ;
55
55
Marshal . FreeHGlobal ( pTbIcons ) ;
56
56
}
57
57
@@ -95,11 +95,11 @@ internal static void myDockableDialog()
95
95
IntPtr _ptrNppTbData = Marshal . AllocHGlobal ( Marshal . SizeOf ( _nppTbData ) ) ;
96
96
Marshal . StructureToPtr ( _nppTbData , _ptrNppTbData , false ) ;
97
97
98
- Win32 . SendMessage ( PluginBase . nppData . _nppHandle , NppMsg . NPPM_DMMREGASDCKDLG , 0 , _ptrNppTbData ) ;
98
+ Win32 . SendMessage ( PluginBase . nppData . _nppHandle , ( uint ) NppMsg . NPPM_DMMREGASDCKDLG , 0 , _ptrNppTbData ) ;
99
99
}
100
100
else
101
101
{
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 ) ;
103
103
}
104
104
}
105
105
}
0 commit comments