How to Create Notification with Menu for Windows Mobile 6 using C# .Net CF 2.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Young Indian
    New Member
    • May 2009
    • 4

    How to Create Notification with Menu for Windows Mobile 6 using C# .Net CF 2.0

    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 SHNOTIFICATIOND ATA in C#. This structure has a nested structure called SOFTKEYMENU which looks as follows,

    typedef struct _SOFTKEYMENU {
    HMENU hMenu;
    SOFTKEYCMD *prgskc;
    UINT cskc;
    } SOFTKEYMENU;Mem bers

    I have ported the SOFTKEYMENU structure in C# as follows,

    [StructLayout(La youtKind.Sequen tial)]
    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?
  • Young Indian
    New Member
    • May 2009
    • 4

    #2
    How to Create Notification with Menu for Windows Mobile 6 using C# .Net CF 2.0

    Hi Friends,
    Is it Possible?

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      Couldn't you just create your own form?

      Comment

      • Young Indian
        New Member
        • May 2009
        • 4

        #4
        Hi Friends,

        I got the answer. No need to get MainMenu control handle. We can fill the hMenu parameter by creating our own Menu using "CreateMenu ", "AppendMenu " API's.

        Comment

        Working...