3个回答
展开全部
picture空间可以
直接显示很方便,同时静态文本控件也可以显示:
在对话框的OnInitDialog()函数中添加:
g_Bitmap=::LoadBitmap(AfxGetApp()->m_hInstance,(LPCTSTR)IDB_BITMAP1);
hWndBmp=GetDlgItem(IDC_STATIC)->m_hWnd;
nStyle =::GetWindowLong(hWndBmp,GWL_STYLE);
::SetWindowLong(hWndBmp,GWL_STYLE,nStyle|SS_BITMAP);
::SendDlgItemMessage(this->GetSafeHwnd(),IDC_STATIC,STM_SETIMAGE,IMAGE_BITMAP,(long)g_Bitmap);
==============================
就可以
直接显示很方便,同时静态文本控件也可以显示:
在对话框的OnInitDialog()函数中添加:
g_Bitmap=::LoadBitmap(AfxGetApp()->m_hInstance,(LPCTSTR)IDB_BITMAP1);
hWndBmp=GetDlgItem(IDC_STATIC)->m_hWnd;
nStyle =::GetWindowLong(hWndBmp,GWL_STYLE);
::SetWindowLong(hWndBmp,GWL_STYLE,nStyle|SS_BITMAP);
::SendDlgItemMessage(this->GetSafeHwnd(),IDC_STATIC,STM_SETIMAGE,IMAGE_BITMAP,(long)g_Bitmap);
==============================
就可以
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询