CMFCPropertyGridCtrl选项下拉问题

时间:2010-08-26 19:21:22

标签: c++ mfc

我有一个CMFCPropertyGridCtrl,一些CMFCPropertyGridProperty项目有选项。这允许用户从下拉列表中选择值。问题是当用户单击以选择等待光标显示的值时。我还没有办法解决这个问题。有没有人对这个问题有所了解?

1 个答案:

答案 0 :(得分:1)

似乎此功能是在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);
        }
    }
}

不幸的是,更改行为的唯一方法是更改​​MFC的源代码并重建MFC。

相关问题