EnterpriseMobileToday WindowsMobileToday

Home | News | Reviews | Features | Tips | Mobile Product Watch | Forums
 WindowsMobileToday: Message Boards: Developers: Using CheckMenuItem() on a CommandBar Menu (Archived)

Using CheckMenuItem() on a CommandBar Menu
(Archived Message)

Read Replies | Start New Thread | Developers Board Index

Developers Board (Del Msg)
Title: Using CheckMenuItem() on a CommandBar Menu
Posted By: Manos S. Pappas
E-mail: frontier@unwired.gr
Date: 12/08/2001 at 16:05:19

Recent Posts
Secure Digital Card Modem
eBooks not being found on
Bluetooth phones
Ipaq screen iput problem
Wireless To Wireless
Outlook calendar plugin?
Options for new iPaq buye
Pocket Inbox
Help with Buying a PDA
Ipaq 1945 or 2215 with Na
More ...  
 
Message:

How can I check/uncheck a Pop-up menu item that belongs to a CommandBar menu?

I tried the following piece of code, but without results (except the crash I get :( ):

[...somewhere in InitDialog()...]
CCeCommandBar *m_hWndCB = (CCeCommandBar*)m_pWndEmptyCB; // pointer to commandbar
m_hWndCB->InsertMenuBar(IDR_BEAMERMENU_MAIN); // insert menubar in commandbar. IDR_BEAMERMENU_MAIN is a menubar that has three pop-up menus, with subitems on each menu

CMenu *menuBeamerPrefs = m_hWndCB->GetMenuBar(1); // pointer to menubar submenu #2

menuBeamerPrefs->CheckMenuItem(IDM_BEAMER_MAIN_PREFS_RECV, MF_CHECKED); // fails and the application crashes

Any help is much appreciated!





Is this message offensive or in violation of this board's policies? If so report it by clicking here.

Message Thread

For Additional Information:

Latest Articles:

  • Windows Mobile 7 Due Late Next Year?
  • Gartner Says Mobile Device Sales Flat in 2009
  • AT&T Ready to Give a Little on Net Neutrality?
  • CTIA Looks Ahead on 2010 Agenda Plans
  • Cisco Closes $2.9B Starent Acquistion
  • Verizon Fortifies Data Networks. iPhone on Tap?
  • Verizon Wireless Defends Early Termination Fees
  • iPhone Reigns Supreme in Mobile Use
  • T-Mobile Planning Free Windows Mobile 6.5 Updates for HTC Handsets?
  • Keep Lithium Batteries Out of Checked Bags When Flying
  • Latest Downloads:

  • Swift Comm Manager 1.0 (Pocket PC)
  • System Resources At Glance 1.0 (Pocket PC)
  • Satellite Clock 1.0 (Pocket PC)
  • Pop-up Task Manager 1.0 (Pocket PC)
  • Pocket Theme Editor 2 (Pocket PC)
  • Hi-Launcher 1.1 (Pocket PC)
  • Handy Phone Dialer 1.0 (Pocket PC)
  • Cliquick: Fastest, most powerful keyboard yet! Finger-friendly keys More screen space, 120 languages 4,0 (Pocket PC)
  • Handy Task Manager 1.0 (Pocket PC)
  • Alt+Tab Task Switcher 1.0 (Pocket PC)





  • The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers