CMFCPropertyGridCtrl option drop down problem
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.
精彩评论