ATL属性表选项卡中的更改调用Apply()函数??? [英] Change in ATL propertysheet tab calls Apply() function???

查看:95
本文介绍了ATL属性表选项卡中的更改调用Apply()函数???的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的项目有三个属性表,可以在graphcs区域上单击鼠标右键使用OleCreatePropertyFrame进行调用.
所有属性表都可以正常工作,但是问题是当我们将属性表从一个更改为另一个时apply()调用发生在上一个属性表上,因此如果
用户将更改特定表的任何控制设置,而不是setDirty(true),并且比打开下一个属性表前更紧迫地更改属性表,系统将自动调用上一个属性表属性表.

我从互联网上搜索了很多东西,但没有找到任何信息.

用户右键单击时正在执行以下代码.

/> bHandled = TRUE;
if(wID == IDM_PROPS){ LPCOLESTR title = L图形属性"; struct _GUID guid [3];
guid [0] = CLSID_VX_GraphPropPage;
gui d [1] = CLSID_AxesPropPage;
guid [2] = CLSID_DSetPropPage;
HRESULT hr = :: OleCreatePropertyFrame(:: GetActiveWindow(),0,0,0,<,
,3,guid,
,0、0、0);
}

Hi,
My project is having three Property sheets which is called using OleCreatePropertyFrame on right click on graphcs area.
All property sheets working fine  but problem is when we change property sheet from one to another than apply() calls happens for previous property sheet so if
user will change any control setting of particular sheet than setDirty(true) and than immidiately chage property sheet than before opening next property sheet system will call  automatically Apply() of previous property sheet.

I have searched lot of things from internet but no information i have founded.

following code is executing when user do right click.

bHandled = TRUE;
        if(wID == IDM_PROPS) {
            LPCOLESTR title = L"Graph Properties";
            LPUNKNOWN pUnk = reinterpret_cast<LPUNKNOWN>(this);
            struct _GUID guid[3];
            guid[0] = CLSID_VX_GraphPropPage;
            guid[1] = CLSID_AxesPropPage;
            guid[2] = CLSID_DSetPropPage;
            HRESULT hr = ::OleCreatePropertyFrame(::GetActiveWindow(), 0, 0, 0,
                1, &pUnk,
                3, guid,
                0, 0, 0);
        }

推荐答案

U 在下面的帮助我能够在不应用更改的情况下更改Tab.

Using below help i am able to change Tab with out applying changes.

http://forums.codeguru .com/showthread.php?43221-FIX-ATL-PropertyPages-perform-APPLY-on-TAB-click& s = cc844b6420bb6a34b829c31d24bede0d

http://forums.codeguru.com/archive/index.php/t-43221 .html


这篇关于ATL属性表选项卡中的更改调用Apply()函数???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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