Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Command bar issue in MFC

 
   PDA (Home) -> Pocket PC - General RSS
Next:  Custom button LButtonUp issue.  
Author Message
changtikavita

External


Since: Dec 29, 2008
Posts: 2



(Msg. 1) Posted: Mon Dec 29, 2008 9:32 pm
Post subject: Command bar issue in MFC
Archived from groups: microsoft>public>pocketpc (more info?)

Hi,

I have created MFC dialog based application for Pocket PC.
I have created the command bar.

//create the bottom menu

SHMENUBARINFO mbi = { 0 };

mbi.cbSize = sizeof( mbi );

mbi.hwndParent = this->m_hWnd;

mbi.dwFlags = SHCMBF_HMENU | SHCMBF_HIDESIPBUTTON;

mbi.nToolBarId = IDR_MAINSCREEN_MENU;

mbi.hInstRes = AfxGetInstanceHandle();

mbi.hwndMB = NULL; // This gets set by SHCreateMenuBar

::SHCreateMenuBar( &mbi );

m_CommandBar.m_hCommandBar = mbi.hwndMB;

m_CommandBar.SubclassWindow( mbi.hwndMB );



The command bar is having three menu items like

1.Back

2.Help

3.Settings



I have set the "Settings" menu item's property as grayed.

But the menu item is not grayed out. It is still functional. Even I
have tried the "Enabled" property set to "false" also. Then also the
same output.



If the command bar has two menu items, then I am able to disable the
menu item using Grayed property set to "true".



I don't want to delete the menu item.



Please let me know, is there any solution to disable the menu item
when the command bar has three or more than two menu items.



Thanks in advance.



Regards,
Back to top
Login to vote
Beverly Howard [Ms-MVP/Mo

External


Since: Jun 02, 2005
Posts: 917



(Msg. 2) Posted: Tue Dec 30, 2008 11:44 am
Post subject: Re: Command bar issue in MFC [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Suggest Reposting at
news://msnews.microsoft.com/microsoft.public.pocketpc.developer or
..public.dotnet.framework.compactframework

Beverly Howard [Microsoft MVP-Mobile Devices]
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Voice Command for WM5 - Recently got a bunch of Sprint PPC-6700s, with WM 5, for a business project. I don't see MS "Voice Command" on the devices. Has MS released an upgrade version of Voice Command for WM5? Will V1.5 work with WM5? I read somewhere that MS was ...

Microsoft Voice Command - Does anyone know if MS Voice Command 1.0 will work on Pocket PC 2002.Prem.? Thanks! bajansteve@comcast.net

Voice command and mobile 5 - I would like to know in vocie command 1.5 is compatible with microsofts Windows 5.0 mobile. I downloaded a trail copy and I can not get it to recognize my contacts when I ask to look up ex sal pennetti. Any help wold be appreciated. ...

Microsoft Voice Command - I have a Cingular 8125 working GREAT ! I installed Microsoft Voice Command and edited the reg to allow Bluetooth hands free working GREAT to ! Now here's my problem. I use the "Call" voice command and when it gets to a name in my contact list t...

Voice Command, New Version Ever? - I've migrated to a Cingular 3125 running Windows Mobile 5. The phone is fantastic. I have 198 contacts, each one containing at least 2 numbers a piece. There is simply no easy way to record a voice dial command for each one. Will Microsoft ever..
       PDA (Home) -> Pocket PC - General All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
 Mac Forums
  PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact