こんにちは、&受信ボタンのような標準のコマンドバーでCommandBarPopupボタンの画像アイコンを追加します。ポップアップが動作しているC#VSTO Outlook 2007:CommandBarPopupのアイコンを追加
、私はそこにアイコンとボタンがありますが、私はポップアップを作成するために(次の小ドロップダウンアイコンに)ポップアップでトップのアイコン
コードが必要になります。ポップアップにボタンを追加する
moznosti = (Office.CommandBarPopup)standardToolbar.Controls.Add(
Office.MsoControlType.msoControlPopup,
System.Reflection.Missing.Value,
System.Reflection.Missing.Value,
System.Reflection.Missing.Value,
true);
// okです:
nastaveni = (Office.CommandBarButton)moznosti.Controls.Add(1,missing, missing, missing, true);
nastaveni.Caption = "Na&stavení...";
global.SetImage(nastaveni, Properties.Resources.settings);
nastaveni.Style = Office.MsoButtonStyle.msoButtonIconAndCaption;
nastaveni.Click += new Office._CommandBarButtonEvents_ClickEventHandler(ButtonSettingsClick);
...等...
しかし、私はこのような何かが必要です。
moznosti.Picture = ...
をしかし(のCommandBarButtonオブジェクトのように)何のピクチャー変数