473,390 Members | 1,323 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,390 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;
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 5487
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

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

Similar topics

0
by: grutta | last post by:
I am writing a windows service that will recieve notification when a USB Device is insterted into the machine. I have used the RegisterDeviceNotification and the RegisterServiceCtrlHandlerEx with...
3
by: James Proctor | last post by:
Hi there, im brand new to ASP. Ive done loads of VB coding and one of my clients is intrested in a web based application, so im trying to play on and learn it a tad. However im comming across lots...
3
by: Jigar Mehta | last post by:
Hye, This is Jigar mehta from India. I have made one application that adds dynamic menu items from the database. Each menu item has one ID and menu item's text is coming from the database. Now, I...
2
by: Nathan Baker | last post by:
Hey all, I've had to dive down into unmanaged world from .NET recently to subclass the IE browser window for the purposes of adding menu items. I've gotten the items added thanks to the Win32...
1
by: dipakbaviskar | last post by:
Hi All, I am very new to Windows mobile programming and .Net framework . I am using C# for windows mobile 5.0 development purpose. I got success in creating the form but now i want to show...
1
by: fivanec | last post by:
Hi everyone, I need to create in Pocket Outlook custom menu item using C# or VB.NET for Windows Mobile 5.0 and then subscribe on the event of that custom menu item to invoke my Windows...
4
by: JayaseelanVaiyapuri | last post by:
Hi to all, Am developing an application for Windows Mobile and am using Windows Mobile SDK 5.0 I have a project which is Win32 DLL and Another is Windows application using WinMain()....
9
by: =?Utf-8?B?RGFuaWVs?= | last post by:
Hi, I downloaded the sample application that the Microsoft video ASPNETAJAXForWinMobile described but it doesn't work on my Windows Mobile 6 emulator. After enabling the script error reporting...
2
by: Rishabh Indianic | last post by:
hi, I am use Vs 2005, and sdk 6.0 using c# to develop window mobile application. in a project i am used 5 page (form). i want to give common menu item for all pages. in a project i create menu...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.