기본카테고리

[VC++]윈도우 모양을 내 마음대로...

DevAdd 2010. 8. 6. 19:50




HBITMAP hBm;
CSkinLoader SkinLoader;
SkinLoader.GetBitmap(IDB_BK_UP, hBm);

if(hBm)
{
m_pbkBit = new SNN_MemBm;
m_pbkBit->Create_DLL(hBm);
Invalidate(FALSE);

HRGN hRgn = CreateRoundRectRgn(0, 0, m_pbkBit->GetWidth(), m_pbkBit->GetHeight(), 5, 5);
SetWindowRgn(hRgn, TRUE);

SetWindowPos(NULL, 0, 0, m_pbkBit->GetWidth(), m_pbkBit->GetHeight(), SWP_NOMOVE);
}