CRect rectLine1(0, 0, 68, 54);
CRect rectLine2(0, 32, 34, 59);
CString str;
CClientDC dc(this);
CDC MemDC;
MemDC.CreateCompatibleDC(&dc);
if (MemDC == NULL) return;
BITMAP bmpInfo;
CBitmap bitMap;
CPngImage pngImage;
pngImage.Load(IDB_PNG3);
bitMap.Attach(pngImage.Detach());
bitMap.GetBitmap(&bmpInfo);
MemDC.SelectObject(&bitMap);
m_BitmapButton[0] = new CBitmapButton();
m_BitmapButton[0]->CreateEx(WS_EX_LEFT | WS_EX_LTRREADING | WS_EX_RIGHTSCROLLBAR | WS_EX_NOPARENTNOTIFY,
_T("Button"), str, WS_CHILDWINDOW | WS_VISIBLE | BS_BITMAP | BS_PUSHBUTTON | BS_TEXT,
rectLine1, this, 2000);
m_BitmapButton[0]->GetDC()->StretchBlt(0, 0, rectLine1.right, rectLine1.bottom,
&MemDC, bmpInfo.bmWidth / 4 * 0, 0, bmpInfo.bmWidth / 4, bmpInfo.bmHeight, SRCCOPY);
MemDC.DeleteDC();
bitMap.DeleteObject();
OnInitDialog()에서 실행하는 부분인데
버튼은 잘 생성되어 졌는데 버튼에 이미지가 안나옵니다. 어디가 잘못된건가요?