Revision 5bcf6d70 trunk/Pithos.ShellExtensions/Menus/MenuItem.cs
b/trunk/Pithos.ShellExtensions/Menus/MenuItem.cs | ||
---|---|---|
1 | 1 |
using System; |
2 | 2 |
using System.Collections.Generic; |
3 |
using System.Drawing; |
|
3 | 4 |
using System.Linq; |
4 | 5 |
using System.Runtime.InteropServices; |
5 | 6 |
using System.Text; |
7 |
using Pithos.ShellExtensions.Properties; |
|
6 | 8 |
|
7 | 9 |
namespace Pithos.ShellExtensions.Menus |
8 | 10 |
{ |
... | ... | |
15 | 17 |
public uint MenuDisplayId { get; set; } |
16 | 18 |
public Action<IntPtr> MenuCommand { get; set; } |
17 | 19 |
public DisplayFlags DisplayFlags { get; set; } |
20 |
public IntPtr MenuBitmap{ get; set; } |
|
18 | 21 |
|
19 | 22 |
public MENUITEMINFO CreateInfo(uint idCmdFirst) |
20 | 23 |
{ |
... | ... | |
25 | 28 |
mii.fType = MFT.MFT_STRING; |
26 | 29 |
mii.dwTypeData = MenuText; |
27 | 30 |
mii.fState = MFS.MFS_ENABLED; |
31 |
|
|
32 |
/* if (MenuBitmap != IntPtr.Zero) |
|
33 |
{ |
|
34 |
mii.fMask|= MIIM.MIIM_BITMAP; |
|
35 |
mii.hbmpItem = MenuBitmap; |
|
36 |
}*/ |
|
37 |
|
|
28 | 38 |
return mii; |
29 | 39 |
} |
30 | 40 |
} |
Also available in: Unified diff