源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

MFC命名规则汇总

  • 时间:2022-05-30 22:50 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:MFC命名规则汇总
本文汇总了MFC中消息、控件、对话框等等的命名规则,作为初学者应详细了解并遵守这类规则。详细规则如下所示: [b]一、MFC中ID 编号原则:[/b] IDC_:控件的ID命名前缀(Control) IDM_:菜单的ID命名前缀(Menu) IDD_:对话框的ID命名前缀(Dialog) IDR_:资源的ID命名前缀(Resource) IDS_:字符串的ID命名前缀(String) IDB_:位图资源的ID命名前缀(Bitmap) [b]二、MFC系统消息前缀小集[/b] ABM        应用程序桌面工具条application desktop toolbar       BM        按钮 button control       CB        组合框 combo box control       CBEM        扩展组合框 extended combo box control       CDM        通用对话框common dialog box        DBT        设备devicae       DL        下拉列表 drag list box       DM         Default Push button control       DTM        Date and time picker control       EM        编辑框edit control       HDM        Header control       HXM        热键hot key control       IPM        IP控件IP address control       LB        列表框list box control       LVM        列表视图list view control       MCM        日历控件month calendar control       PBM        进度条progress bar       PGM        Pager control       PSM        属性property control       RB        伸缩条rebar control       SB        状态条status bar window       SBM        滚动条scrol bar control       STM        静态条static control       TB        工具条toolbar       TBM        跟踪条trackbar       TCM        Tab control       TTM        Tooltip control       TVM        树视图tree_view control       UDM        Up_down control       WM        一般窗口general window  此处[b]需要注意[/b]: BM/NM等中间的M表示向控件发送的消息,也就是命令控件做事情BN等中间的N,表示控件向外部(父窗口)发出的通知,表示自己的状态,不要混淆这两个不同方向的东西!
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部