无法在Outlook 2010上为加载项设置组合框的宽度 [英] Unable to set the width of Combo Box for add-in on Outlook 2010

查看:75
本文介绍了无法在Outlook 2010上为加载项设置组合框的宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


Hi,

我已经实现了一个加载项,它在Outlook 2007上工作正常,能够按照指定的宽度查看组合框但是当我为Outlook 2010安装相同的加载项(32位),然后组合框的宽度不反映,并始终是默认的
宽度。

I have implemented an add-in which is working fine on Outlook 2007 and able to see the the combo box as per the specified width but when i install the same add-in for Outlook 2010 (32 bit) then width of combo box does not reflect and always be the default width.

设置组合框的宽度我在OL 2007和OL 2010中使用以下代码:

To set the width of combo box I am using the following code for OL 2007 and OL 2010 :

        .............

       .............

  hr = spCmdCompilot _-> AddItem(_bstr_t(CompilotText [ 0] .data()));

 hr = spCmdCompilot_->AddItem(_bstr_t(CompilotText[0].data()));

  hr = spCmdCompilot _-> AddItem(_bstr_t(CompilotText [1] .data() ));

 hr = spCmdCompilot_->AddItem(_bstr_t(CompilotText[1].data()));

  hr = spCmdCompilot _-> AddItem(_bstr_t(CompilotText [2] .data()));

 hr = spCmdCompilot_->AddItem(_bstr_t(CompilotText[2].data()));

  spCmdCompilot _-> put_Width(450);   //
值不反映

 spCmdCompilot_->put_Width(450);    // value does not reflect

  spCmdCompilot _-> PutTag(OLESTR(" My Tag"));

 spCmdCompilot_->PutTag(OLESTR("My Tag"));

  spCmdCompilot _-> PutVisible(VARIANT_TRUE); 

 spCmdCompilot_->PutVisible(VARIANT_TRUE); 


     ............
        ............

推荐答案

您能否添加一些关于您正在使用的组合框类型以及位置的上下文?(命令栏/菜单/工具栏,Outlook自定义表单,其他自定义UI等)

Can you please add some context about what type of combobox you are using and where? (Commandbar/menu/toolbar, Outlook custom form, other custom UI, etc.)

 谢谢!


这篇关于无法在Outlook 2010上为加载项设置组合框的宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆