Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Wed, 06 Feb 2008 02:21:58 +0100,    group: microsoft.public.platformsdk.shell        back       


IContextMenu::GetCommandString - purpose of GCS_VERBICONW?   
Hi,

I came across GCS_VERBICONW in shobjidl.h. It's a flag for 
IContextMenu::GetCommandString(), but not mentioned in the docs. I guess 
it has been introduced with Vista.
Does anybody know its purpose? Judging by its name and the comment "icon 
string (unicode)", I'd say it may be used to retrieve strings to icon 
resources that may be displayed in the context menu next to the menu 
item. But so far all namespaces I checked that support this flag, don't 
display any icons next to the menu items. Also the strings these 
namespaces return do not really look like icon resource strings.

Does anybody know more about this flag?

Timo
-- 
www.TimoSoft-Software.de - Unicode controls for VB6
"Those who sacrifice freedom for safety deserve neither."
date: Wed, 06 Feb 2008 02:21:58 +0100   author:   Timo Kunze

Re: IContextMenu::GetCommandString - purpose of GCS_VERBICONW?   
On Feb 6, 1:21 am, Timo Kunze  wrote:
> Also the strings these
> namespaces return do not really look like icon resource strings.

What do they look like?

Matt
date: Wed, 6 Feb 2008 14:52:04 -0800 (PST)   author:   Matt Ellis

Re: IContextMenu::GetCommandString - purpose of GCS_VERBICONW?   
Some examples:
Open, Explore and Search verbs: C:\Windows\Explorer.exe
Manage verb of My Computer: C:\Windows\system32\CompMgmtLauncher.exe

Looks a bit like the path to the program that will be started when 
clicking the item. But what for? And why this name then? GCS_VERBICON 
doesn't really fit if you just get the executable's path.

Timo
-- 
www.TimoSoft-Software.de - Unicode controls for VB6
"Those who sacrifice freedom for safety deserve neither."
date: Thu, 07 Feb 2008 01:32:27 +0100   author:   Timo Kunze

Re: IContextMenu::GetCommandString - purpose of GCS_VERBICONW?   
On Feb 7, 12:32 am, Timo Kunze  wrote:
> Some examples:
> Open, Explore and Search verbs: C:\Windows\Explorer.exe
> Manage verb of My Computer: C:\Windows\system32\CompMgmtLauncher.exe
>
> Looks a bit like the path to the program that will be started when
> clicking the item. But what for? And why this name then? GCS_VERBICON
> doesn't really fit if you just get the executable's path.

They're not double-null terminated, are they?

I guess it's left over from functionality that didn't make it. It
certainly seems only partly baked...

Interesting, though.

Cheers
Matt
date: Thu, 7 Feb 2008 07:21:57 -0800 (PST)   author:   Matt Ellis

Re: IContextMenu::GetCommandString - purpose of GCS_VERBICONW?   
Matt Ellis schrieb:
> They're not double-null terminated, are they?
I can't check that before Sunday.

Timo
-- 
www.TimoSoft-Software.de - Unicode controls for VB6
"Those who sacrifice freedom for safety deserve neither."
date: Thu, 07 Feb 2008 21:54:40 +0100   author:   Timo Kunze

Re: IContextMenu::GetCommandString - purpose of GCS_VERBICONW?   
Matt Ellis schrieb:
> They're not double-null terminated, are they?
They are terminated by a single null char.

Timo
-- 
www.TimoSoft-Software.de - Unicode controls for VB6
"Those who sacrifice freedom for safety deserve neither."
date: Sun, 10 Feb 2008 15:23:54 +0100   author:   Timo Kunze

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us