469,330 Members | 1,270 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,330 developers. It's quick & easy.

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 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?
May 30 '09 #1
3 5370
Hi Friends,
Is it Possible?
Jun 1 '09 #2
Plater
7,872 Expert 4TB
Couldn't you just create your own form?
Jun 3 '09 #3
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.
Jun 3 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by James Proctor | last post: by
2 posts views Thread by Nathan Baker | last post: by
9 posts views Thread by =?Utf-8?B?RGFuaWVs?= | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Purva khokhar | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.