Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
End Users
Pocket PCActiveSyncMultimediaEBooksWirelessSmartPhones
Developers
Windows MobileSmartPhonesWinCE ProgrammingVB for WinCEVC++ for WinCEPlatform BuilderTest Tools
PocketPC DirectoryFree SoftwareWeb Resources
Related Topics
PalmMobile PhonesMore Topics ...

Pocket PC Forum / Developers / VC++ for WinCE / July 2008

Tip: Looking for answers? Try searching our database.

Add a menu

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CodeTestDummy - 07 Jul 2008 19:05 GMT
All,

How do I add a menu to my app for a smart phone? It is a dialog app. When I
run it it has Ok at the bottom.  I and menu option beside OK using the
resource view.  But when I run my app I do not see what I added.  Thanks in
advance.
Christopher Fairbairn [MVP] - 08 Jul 2008 05:02 GMT
Hi,

> How do I add a menu to my app for a smart phone? It is a dialog app.

I assume you have created a menu resource within your *.rc resource file.

Within your WM_INITDIALOG message handler you will need to call a function
such as SHCreateMenubar
(http://msdn.microsoft.com/en-us/library/aa453678.aspx) to create the
menubar and associate it with your dialog instance. Exactly how you will do
this will depend upon which GUI framework (MFC etc) you are utilising.

Take a look at the Menu page on the Channel 9 Windows Mobile developer
wiki - http://channel9.msdn.com/wiki/MobileDeveloper/Menu/ for further
details (in particular the "Creating the menu" section).

Hope this helps,
Christopher Fairbairn
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.