怎样在资源中载入位图
在对话框中用m_hBitmap=(HBITMAP)::LoadImage(NULL,g_strPathOfPic,IMAGE_BITMAP,0,0,LR_DEFAULTSIZE|LR_LOADFROMFILE|LR_CREATEDIBSECTION);
m_hDC=CreateCompatibleDC(NULL);
SelectObject(m_hDC,m_hBitmap);
将位图从文件g_strPathOfPic里载入到程序中
然后在对话框的OnPaint里
CPaintDC dc(this); // device context for painting
//paint the bitmap to the dialog
StretchBlt(dc,20,20,350,463,m_hDC,0,0,300,413,SRCCOPY);
将位图显示出来,请问,我该如何在资源中载入这个位图呢?
用LoadBitmap怎样得到dc?