VC/MFC
文章平均质量分 66
辰尘
这个作者很懒,什么都没留下…
展开
-
如何加载图片按钮
说明:加载图片按钮功能:给按钮加载图片,并且在“可用”、“不可用”、“鼠标经过”、“鼠标按下”时显示不同的图片,而且在鼠标点在按钮上时出现文字提示并且变为手型 过程:1、加载CBmpButton类(此类为重写的类,可在http://download.csdn.原创 2011-10-13 16:37:44 · 302 阅读 · 0 评论 -
VC打开文件夹代码
//代码如下,sFolder保存了用户选择的文件夹路径。void CXXXX::OnOpenfolder(){ CString sFolder; LPMALLOC pMalloc; //Gets the Shell's default alloca转载 2011-10-10 11:29:34 · 408 阅读 · 0 评论 -
VC static控件背景如何设置成透明
1、添加WM_CTLCOLOR消息2、如果是要把static这一类控件背景设置为透明HBRUSH YourDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) {HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);if(nCtlColor == CTLCOLOR_原创 2011-11-10 14:10:30 · 841 阅读 · 0 评论 -
VC 给对话框加载背景图片示例
void CDlgClass::OnPaint() {CPaintDC dc(this); // device context for paintingCRect rect;GetClientRect(&rect);//得到窗体的大小CDC dcMem; dcMem.CreateCompatibleDC(&dc); CBitmap bmpBackground;bmp原创 2011-11-10 14:12:35 · 333 阅读 · 0 评论