请问,怎么给一个Dialog设置窗体的背景图象呀? 映射WM_ERASEBKGND然后准备bmp.最后pDC->BitBlt(....&你的bmp的内存dc...)ok... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 响应WM_CTLCOLORHBRUSH CTypeokDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { // HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor); //return hbr;// m_hBrush=::CreatePatternBrush (HBITMAP); return m_hBrush; //返回你定义的位图刷子。} http://www.csdn.net/develop/read_article.asp?id=9603 哥们们,我怎么感觉有点儿不太好用呀,能不能麻烦给我一个简单的例程呢?[email protected]谢谢了! prog_st(st):还有问题呀打开时有如下提示:Cannot access the ClassView infirmation file.ClassView information will not be available.编译时有如下提示:LINK : fatal error LNK1104: cannot open file "Debug/BmpDlg.exe"怎么解决呢? 这些VC例程通常从光盘中拷贝的,带有自度属性,编译工程前从来需要保证工程所有文件的属性是非只读的,这是基本常识,但很多VC才鸟就爱问这样的问题。 GDI+画图重绘时窗口会闪烁的问题 在COM组件中的字符串,是使用_bstr_t还是CComBSTR? 关与list中鼠标点击选种问题 怎样设置IP报文的记录路由选项? 句柄??? 如何动态获取本机的IP地址 在debug和release版中读注册表有什么不一样? 如何更新对话框内控件的字体颜色? 请教下,流媒体视频编码解码编程 求助:用MFC做VLC lib开发,视频画面在窗口最小最大化后闪现消失 问一个很简单的问题,如何调用外部程序 如何使用Microsoft Chart Control控件
HBRUSH CTypeokDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
// HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
//return hbr;
// m_hBrush=::CreatePatternBrush (HBITMAP);
return m_hBrush; //返回你定义的位图刷子。
}
[email protected]
谢谢了!
Cannot access the ClassView infirmation file.ClassView information will not be available.
编译时有如下提示:
LINK : fatal error LNK1104: cannot open file "Debug/BmpDlg.exe"怎么解决呢?