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."
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
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."
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
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."
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."