mspocketpc.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SIP menu disable menu item.

 
Post new topic   Reply to topic    mspocketpc.org Forum Index -> Developers
Author Message
Amigo



Joined: 27 Feb 2008
Posts: 1

PostPosted: Wed Feb 27, 2008 2:21 pm    Post subject: SIP menu disable menu item. Reply with quote

Hello EB,

I'm trying to disable the "Options..." menu item in the SIP's menu
that pops up on the Pocket PC, for both - Pocket PC 2003 and WM5.0.
I'm unable to get the handle to the menu for the SIP's menu.
WM_COMMAND messages aren't fired on the click event which occurs when
I select the "Options..." menu item.

What I've done is:

//Get the handle to the SIP's window.
hSIP = FindWindow(TEXT("MS_SIPBUTTON"), TEXT("MS_SIPBUTTON")) ;

// Get the menu associated with this window.
hMenu = (HMENU) SendMessage(hSIP, SHCMBM_GETMENU, 0, 0);

// Get the sub-menu for the SIP button's menu.
hSubMenu = GetSubMenu(hMenu, 0); // Tried other position values too.
NULL ref. returned.


I also tried obtaining the system menu - using the GetSystemMenu(...)
API, but I don't get any sub-menu on the menu handle that I receive on
this call.

Where am I going wrong? How can I disable "Options..." for good? Any
help in this regard will be appreciated.

Thank you.

Warm regards,
Amit.

Archived from group: microsoft>public>pocketpc>developer
Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
How can I change menu item on menu bar? I have an app that I need to be able to change the menu bar items without loading a new menu. For example... I load a menu with one item 'Done' and then depending on what choices occur I may need to add a second item 'Run' or 'Back' etc. These menu items

add custom menu item to start programs Hi, When you press Start, and see program icons, you also have menu items "More" on left soft key and "Menu" on right soft key. Menu on my device contains only 1 menu item "Add Speed Dial". Is there a way for me to add my own menu items to it? If not the

Context menu: How do I add a new item to the Contacts contex Hello everybody. I am trying to add an extra item to the contacts context menu, e.g.: "Create 'Call to'-task from contact". I use Visual Basic (and WM5.0 SDK) but as I have never tried to program a Mobile device before, I really need a hand... Could you h

MFC application: Unable to check/uncheck menu item Hello all, I have created a document view MFC application with menu. Using the following code I want to check or uncheck a menu item. But the code does not seems to work (although after checking or unchecking a menu item if i retrieve the item's state it

WM2005 Toolbars / Menus - Checking a menu item?? When I migrated from eVC4 to VS2005, CCeCommandBar became CCommandBar and there's still a few glitches I haven't got sorted. I want to check a menu item. Using the code from: (and elsewhere I
Post new topic   Reply to topic    mspocketpc.org Forum Index -> Developers All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group