![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Shell Extensions [D7, XP]
Bambucha © (2006-07-23 18:03:00)Люди ктонить знает Shell Extensions? Надо бы добавить свою прогу в меню
Homo Sapiens (2006-07-24 14:28:00) [1]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;
утвж
Мефисто (2006-07-23 22:11:00) [2]
> 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.
Bambucha (2006-07-23 21:29:00) [3]
> В какое меню?
Ну на рабочем столе щёлкаешь провой кнопкой появляется меню...
Palladin (2006-07-23 19:45:00) [4]
> Не ну чё никто ничего не знает чтоли???
Не ну чё в инете поискать вломы чтоли???
Anatoly Podgoretsky (2006-07-23 19:43:00) [5]О чем речь?
AlexanderMS (2006-07-23 19:34:00) [6]
> Надо бы добавить свою прогу в меню
В какое меню? Не знаю, вопрос вроде бы Вы про расширения файлов. http://www.sdteam.com/?tid=330.Поможет?
Bambucha (2006-07-23 19:29:00) [7]Не ну чё никто ничего не знает чтоли???