راهنمایی ساخت این دستور

amin2dpr

Well-Known Member
سلام من این کد و با راهنما انگلیسی پیدا کدرم که میشه یک منوی آبشاری برای راست کلیک ویندوز ساخت ولی

نمی تونم اجراش کنم کسی میتونه این کارو بکنه و یه نمونه واسم بذاره؟ اینم متن و نمونه با تصویر


To create a cascading menu with an ExtendedSubCommandsKey subkey

Create a subkey under HKEY_CLASSES_ROOT\ProgID\shell\CascadeMenuKey and give the CascadeMenuKey a name such as CascadeTest for example. Then add a MUIVerb entry of REG_SZ type and give it a name such as Test Cascade Menu 2, as illustrated in the following registry example.

HKEY_CLASSES_ROOT
txtfile
shell
CascadeTest
MUIVerb = Test Cascade Menu 2


Under the CascadeTest subkey you have created, add an ExtendedSubCommandsKey subkey, and then add the document subcommands (of REG_SZ type); for example:

HKEY_CLASSES_ROOT
txtfile
Shell
Test Cascade Menu 2
(Default)
ExtendedSubCommandsKey
Layout
Properties
Select all


Ensure that the default value of the Test Cascade Menu 2 subkey is empty, and shown as (value not set).
Populate the subverbs using any of the following static verb implementations. Note that the CommandFlags subkey represents EXPCMDFLAGS values. If you want to add a separator before or after the cascade menu item, use ECF_SEPARATORBEFORE (0x20) or ECF_SEPARATORAFTER (0x40). For a description of these Windows 7 and later flags, see IExplorerCommand::GetFlags. ECF_SEPARATORBEFORE works only for the top level menu items. MUIVerb is of type REG_SZ, and CommandFlags is of type REG_DWORD.

HKEY_CLASSES_ROOT
txtile
Shell
Test Cascade Menu 2
(Default)
ExtendedSubCommandsKey
Shell
cmd1
MUIVerb = Notepad
command
(Default) = %SystemRoot%\system32\notepad.exe %1
cmd2
MUIVerb = Wordpad
CommandFlags = 0x20
command
(Default) = C:\Program Files\Windows NT\Accessories\wordpad.exe %1


The following screen shot is an illustration of the previous registry key entry examples.


IC420405.png

ا
 

جدیدترین ارسال ها

بالا