开发者

CMFCPropertyGridCtrl option drop down problem

开发者 https://www.devze.com 2023-01-13 01:21 出处:网络
I have a CMFCPr开发者_如何学编程opertyGridCtrl some of the CMFCPropertyGridProperty items have options. This allows the user to select a value from a drop down list. The problem is when the user click

I have a CMFCPr开发者_如何学编程opertyGridCtrl some of the CMFCPropertyGridProperty items have options. This allows the user to select a value from a drop down list. The problem is when the user click to select a value the wait cursor show up. I have not found a way to fix this. Does anyone have some insight for this problem?


Seems like this functionality is build in MFC:

void CMFCPropertyGridCtrl::OnClickButton(CPoint point)
{
    ASSERT_VALID(this);
    ASSERT_VALID(m_pSel);
    if (m_pSel->OnUpdateValue())
    {
        CString strPrevVal = m_pSel->FormatProperty();
        CWaitCursor wait;
        m_pSel->OnClickButton(point);
        if (strPrevVal != m_pSel->FormatProperty())
        {
            OnPropertyChanged(m_pSel);
        }
    }
}

Unfortunately the only way change the behavior is change MFC's source code and rebuild MFC.

0

精彩评论

暂无评论...
验证码 换一张
取 消