![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MFC
kapher1
这个作者很懒,什么都没留下…
展开
-
MFC对话框,点击栏目跳转滚动条
MFC对话框,点击栏目跳转滚动条效果代码Comobox改写底层对话框外层对话框效果代码Comobox改写BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt){ 类名 * DlgPar = dynamic_cast<类名*>(GetParent()->GetParent()); if(DlgPar!=nullptr) DlgPar->OnMouseWheel(nFlags, zDelta, pt原创 2021-01-21 17:06:12 · 147 阅读 · 0 评论 -
MFC-自绘控件(CComboBox篇)
MFC-自绘控件(CComboBox篇)MFC(CComboBox)简单自绘注意事项代码MFC(CComboBox)简单自绘使用CComboBox实现自绘下拉框,内容包含文字和图形。注意事项对话框控件属性Behavior/Owner Draw 设为Variable代码// 自绘void DrawItem(LPDRAWITEMSTRUCT lpDIS){ CDC dc; dc.Attach(lpDIS->hDC); CRect rect(lpDIS->rcItem); in原创 2021-01-21 10:59:47 · 1407 阅读 · 0 评论