471,887 Members | 1,448 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,887 software developers and data experts.

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;
UINT cskc;

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

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 5423
Hi Friends,
Is it Possible?
Jun 1 '09 #2
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 YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.