• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
张纯睿
博客园    首页    新随笔    联系   管理    订阅  订阅
2011年1月6日
窗体坐标+位置相关函数+屏幕坐标还是逻辑相对坐标
摘要: screen coordinates void CWnd::GetWindowRect( LPRECT lpRect ) const;ParameterslpRect Points to a CRect object or a RECT structure that will receive the screen coordinates of the upper-left and lower-right corners. 阅读全文
posted @ 2011-01-06 15:08 张纯睿 阅读(207) 评论(0) 推荐(0)
MFC应用程序中处理消息的顺序
摘要: http://apps.hi.baidu.com/share/detail/11053326MFC应用程序中处理消息的顺序1.AfxWndProc() 该函数负责接收消息,找到消息所属的CWnd对象,然后调用AfxCallWndProc2.AfxCallWndProc() 该函数负责保存消息(保存的内容主要是消息标识符和消息参数)供应用程序以后使用, 然后调用WindowProc()函数3.WindowProc() 该函数负责发送消息到OnWndMsg()函数,如果未被处理,则调用DefWindowProc()函数4.OnWndMsg() 该函数的功能首先按字节对消息进行排序,对于WM_COM 阅读全文
posted @ 2011-01-06 14:02 张纯睿 阅读(126) 评论(0) 推荐(0)
VC非模式对话框创建和销毁
摘要: http://apps.hi.baidu.com/share/detail/11053326非模态对话框相对于模态对话框,他的创建和销毁过程和模态对话框有一定的区别 先看一下MSDN的原文:When you implement a modeless dialog box, always override the OnCancel member function and call DestroyWindow from within it. Don’t call the base class CDialog::OnCancel, because it calls EndDialog, which 阅读全文
posted @ 2011-01-06 14:01 张纯睿 阅读(284) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3