PDA Street

Home | News | Reviews | Features | FREE Downloads | Forums | Compare PDA Prices | Compare SmartPhone Prices
 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:

  • Review: WMWiFiRouter -Turns Smartphones into Hotspots
  • 2009: The Year of the Smartphone?
  • Texting & Price Hiking: Does It Matter?
  • Motorola's Year of Job Cuts
  • Smaller Gadgets a Big Theme at CES
  • iPhone & Social Networks:Tech's Survivors in '09
  • RIM Takes Motorola to Court Over Hiring
  • Security Vendor Seeks to Fight Off RIM Overtures
  • iPhone, BlackBerry Storm to Square Off in 2009
  • 4G: Here It Comes, Ready or Not -- Part II
  • Latest Downloads:

  • Power Budget 1.0.5 (Pocket PC)
  • PocketPRP - Personal Resource Planner software for Windows Mobile Pocket PC 12.08 (Pocket PC)
  • PocketPRP - Personal Resource Planner software for Windows Mobile Pocket PC 12.08 (Pocket PC)
  • Lemur Searcher 1.10 (Pocket PC)
  • MyMotion 1.12 (Pocket PC)
  • Pocket 12C SE Financial Calculator 1.70 (Pocket PC)
  • MoneyCalc 1.1.0 (Pocket PC)
  • SelectRadioŽ Internet and Satellite Radio Software 4.5 (Pocket PC)
  • Measure Unit Converter and Calculator for Pocket PC 1.0 (Pocket PC)
  • Pocket 10B SE Business Calculator 2.10 (Pocket PC)




  • internet.comearthweb.comDevx.commediabistro.comGraphics.com

    Search:

    Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

    Jupitermedia Corporate Info

    Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
    Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers