183 个问题
您好,
修改代码,去除m_wndColorBarFrame,m_wndColorBarFrame2
// Create regular color bar:
CRect rectColorBar;
//m_wndColorBarFrame.GetClientRect(&rectColorBar);
//m_wndColorBarFrame.MapWindowPoints(this, &rectColorBar);
m_wndColorBar.SetHorzMargin(0);
m_wndColorBar.SetVertMargin(0);
m_wndColorBar.EnableOtherButton(_T("Other..."));
m_wndColorBar.CreateControl(this, rectColorBar, IDC_COLORBAR, 5 /* columns */);
m_wndColorBar.SetColor(RGB(0, 0, 0));
// Create regular color bar with the custom palette:
//m_wndColorBarFrame2.GetClientRect(&rectColorBar);
//m_wndColorBarFrame2.MapWindowPoints(this, &rectColorBar);
如果答案是正确的,请点击“接受答案”并点赞。 如果您对此答案还有其他疑问,请点击“评论”。 注意:如果您想接收相关电子邮件,请按照我们的文档中的步骤启用电子邮件通知 此线程的通知。