[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Re: restrictions on number of menu items in windows Explorer

From: Gennady Khokhorin <gok_at_aerometric-ak.com>
Date: 2007-11-26 22:21:35 CET

Hello, Stefan.
I did hit the limit of 32 subitems in winxp+sp2.
You right, all items addes in QueryContextMenu() as:

UINT idCmd = uidFirstCmd;
HMENU hParentMenu0 = ::CreateMenu();
BOOL res= InsertMenu(hMenu, indexMenu++, MF_POPUP | MF_BYPOSITION, (UINT)hParentMenu0, _T("My tools"));
res = InsertMenu(hParentMenu0, indexMenu++, MF_STRING|MF_BYPOSITION, idCmd++, "First item");
...
return MAKE_HRESULT(SEVERITY_SUCCESS, FACILITY_NULL, idCmd - uidFirstCmd);
}

The limit number is different for different file types so I assume other programs like tortoise are cutting down available menu items. Never saw such limitation in win2k with tortoise svn control installed.

Any idea what to check for?
Thanks.

-----Original Message-----
From: Stefan Küng [mailto:tortoisesvn@gmail.com]
Sent: Monday, November 26, 2007 11:55 AM
To: dev@tortoisesvn.tigris.org
Subject: Re: restrictions on number of menu items in windows Explorer

Gennady Khokhorin wrote:
> Hello, all.
> I got strange OpenSSL behaviour in windows Explorer (winXP+sp2).
> I have my own shell extention for windows Explorer (registered dll)
> which opens 22 submenus for registered file extentions.
> For some reason when I put file under SVN control number of my menu
> items truncated from to about 10. As a result the rest of my commands
> 11..22 is not accessable, ie no action at all.
> Does somebody suggest a way how to fix it?

Well, the number of context menu entries *is* limited, but I doubt that if you do everything right that you would ever hit that limit. At least not on XP and later (Win2k has a lower limit).

I don't know how you coded your shell extension, but you get the number of entries you're allowed to add in the QueryContextMenu() method:
idCmdFirst and idCmdLast set the limits for you.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Nov 26 22:21:41 2007

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.