Форум: "Начинающим";
Текущий архив: 2006.08.13;
Скачать: [xml.tar.bz2];
ВнизShell Extensions Найти похожие ветки
← →
Bambucha (2006-07-23 18:03) [0]Люди ктонить знает Shell Extensions? Надо бы добавить свою прогу в меню
← →
Bambucha (2006-07-23 19:29) [1]Не ну чё никто ничего не знает чтоли???
← →
AlexanderMS © (2006-07-23 19:34) [2]
> Надо бы добавить свою прогу в меню
В какое меню? Не знаю, вопрос вроде бы Вы про расширения файлов. http://www.sdteam.com/?tid=330. Поможет?
← →
Anatoly Podgoretsky © (2006-07-23 19:43) [3]О чем речь?
← →
Palladin © (2006-07-23 19:45) [4]
> Не ну чё никто ничего не знает чтоли???
Не ну чё в инете поискать вломы чтоли???
← →
Bambucha (2006-07-23 21:29) [5]
> В какое меню?
Ну на рабочем столе щёлкаешь провой кнопкой появляется меню...
← →
Мефисто (2006-07-23 22:11) [6]
> Bambucha (23.07.06 21:29) [5]
Ответ в этом топике, правда выравнивание кода там оригинальное :)))
> AlexanderMS © (23.07.06 19:34) [2]
Вот значения флагов. Прикручивай куда надо (из примера по ссылке выше).
CMF_CANRENAME
This flag is set if the calling application supports renaming of items. A shortcut menu extension or drag-and-drop handler should ignore this flag. A namespace extension should add a rename item to the menu if applicable.
CMF_DEFAULTONLY
This flag is set when the user is activating the default action, typically by double-clicking. This flag provides a hint for the shortcut menu extension to add nothing if it does not modify the default item in the menu. A shortcut menu extension or drag-and-drop handler should not add any menu items if this value is specified. A namespace extension should add only the default item (if any).
CMF_EXPLORE
This flag is set when the Microsoft® Windows® Explorer tree window is present.
CMF_EXTENDEDVERBS
This flag is set when the calling application wants extended verbs. Normal verbs are displayed when the user right-clicks an object. To display extended verbs, the user must right-click while pressing the SHIFT key.
CMF_INCLUDESTATIC
This flag is set when a static menu is being constructed. Only the browser should use this flag. All other shortcut menu extensions should ignore this flag.
CMF_NODEFAULT
This flag is set if no item in the menu should be the default item. A drag-and-drop handler should ignore this flag. A namespace extension should not set any of the menu items to the default.
CMF_NORMAL
Indicates normal operation. A shortcut menu extension, namespace extension, or drag-and-drop handler can add all menu items.
CMF_NOVERBS
This flag is set for items displayed in the Send To menu. Shortcut menu handlers should ignore this value.
CMF_VERBSONLY
This flag is set if the shortcut menu is for a shortcut object. Shortcut menu handlers should ignore this value.
← →
Homo Sapiens © (2006-07-24 14:28) [7]procedure createmenu;
var reg:tregistry;
begin
reg:=tregistry.Create;
reg.RootKey:=HKEY_CLASSES_ROOT;
reg.OpenKey("расширение файла\Shell\OpenWith",true);
reg.WriteString("""расширение файла,"OpenWith");
reg.WriteString(""расширение файла","чё ты пишешь в меню");
reg.CloseKey;
reg.OpenKey(""расширение файла\Shell\OpenWith\command",true);
reg.WriteString("","command");
reg.WriteString("",paramstr(0)+" "1%"");
reg.CloseKey;
reg.Free;
утвж
Страницы: 1 вся ветка
Форум: "Начинающим";
Текущий архив: 2006.08.13;
Скачать: [xml.tar.bz2];
Память: 0.46 MB
Время: 0.033 c