Hello Friends,
By default Notification control present in .Net CF 2.0 for Windows Mobile 6.0 does not provide Menu support. So I am tryingto implement the menu feature for Notification using C#. So, I tried to port this structure SHNOTIFICATIONDATA in C#. This structure has a nested structure called SOFTKEYMENU which looks as follows,
typedef struct _SOFTKEYMENU {
HMENU hMenu;
SOFTKEYCMD *prgskc;
UINT cskc;
} SOFTKEYMENU;Members
I have ported the SOFTKEYMENU structure in C# as follows,
[StructLayout(LayoutKind.Sequential)]
struct SOFTKEYMENU
{
public IntPtr hMenu;
public IntPtr[] skc; //SOFTKEYCMD
public uint cskc;
}
What should I pass in the hMenu parameter. If its the handle of MainMenu control. How to get the handle of MainMenu control in C# .Net CF 2.0?