2006年9月21日
摘要: API技巧集 2004-4-18加入 来自西祠胡同 作者佚名 5条评论 点击3097次 API技巧集(一)一、拖动无标题窗体:包含头文件:#include $#@60;winuser.h$#@62;在窗体或组件的 OnMouseDown 事件中加入以下代码:if(Button == mbLeft){ReleaseCapture();SendMessage( Handle, WM_NCLBUTTONDOWN, HTCAPTION, 0);}二、弹出和关闭光驱:包含头文件:#include $#@60;mmsystem.h$#@62;在窗体的OnCreate事件中加入:mciSendString 阅读全文
posted @ 2006-09-21 22:39 guoxuefeng 阅读(568) 评论(0) 推荐(0)
摘要: 实现主对话框的抽屉功能CRect rectDlg,rectBtn,rectNew;GetClientRect(&rectDlg);//得到主队框的客户区域m_btnFriendList.GetClientRect(&rectBtn);//得到一个按钮的客户区域switch (piFolder){case 0://打开好友列表rectNew.left = rectDlg.left;rectNew.top = rectDlg.top + rectBtn.Height();rectNew.right = rectDlg.right;rectNew.bottom= rectDlg.bottom - r 阅读全文
posted @ 2006-09-21 22:37 guoxuefeng 阅读(272) 评论(0) 推荐(0)