摘要:
通过CBitmap,HBITMAP,直接用OnPaint()绘制首先在CTestDlg类中声明一个变量:CBitmap m_bmp;然后我们在对话框中加入一个picture 标签,名为IDC_STATIC1然后:BOOL CDisplayPic::OnInitDialog(){CDialog::OnInitDialog();if( m_bmp.m_hObject != NULL )//判断m_bmp.DeleteObject();/////////载入图片HBITMAP hbmp = (HBITMAP)::LoadImage(AfxGetInstanceHandle(), "c:\\ 阅读全文
posted @ 2011-04-13 10:23 Neon∮Light 阅读(671) 评论(0) 推荐(0) 编辑