2009-10-07 3 views
1

1) Как включить использование визуальных тем в Outlook 2007 addin, созданных в Delphi 7 (с использованием форм)? В Outlook 2003 я создаю Outlook.exe.manifest, но Outlook 2007 разбился (протестирован только в Windows Vista) при запуске (отсутствует библиотека MSVCR80.DLL).Визуальные темы в Outlook 2007 addin in Delphi 7

2) Как создать элемент разделителя в строке меню? (Создание кнопки App.ActiveExplorer.CommandBars.Item [ 'Standard']. Controls.Add (msoControlButton, 1, EmptyParam, EmptyParam, WordBool (правда)))

Спасибо, Павел

ответ

1

ad1) добавить проявляется с двумя dependecies

<?xml version="1.0" encoding="UTF-8" standalone="yes"> 
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"><noInherit></noInherit> 
    <assemblyIdentity processorArchitecture="x86" type="win32" name="outlook" version="1.0.0.0"> 
    </assemblyIdentity> 
    <description>Microsoft Office Outlook</description> 
    <dependency> 
    <dependentAssembly> 
     <assemblyIdentity type="win32" name="Microsoft.VC80.CRT" version="8.0.50608.0" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b" /> 
    </dependentAssembly> 
    </dependency> 
    <dependency> 
    <dependentAssembly> 
     <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="x86" publicKeyToken="6595b64144ccf1df" language="*"> 
     </assemblyIdentity> 
    </dependentAssembly> 
    </dependency> 
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> 
    <security> 
     <requestedPrivileges> 
     <requestedExecutionLevel level="asInvoker" uiAccess="false"><requestedExecutionLevel> 
     </requestedPrivileges> 
    </security> 
    </trustInfo> 
</assembly> 
1
  1. Я не в состоянии сделать что. Пытался включить блок XPMan, добавив манифест в homedir моей addin dll, но ничего не помогло.
  2. Вы можете попытаться установить свойство BeginGroup кнопки, где вы хотите разделитель. Я не тестировал его, но это должно было сделать трюк.
+0

ad2) perfect, thanx – Pavel