int m_ncxScreen = GetSystemMetrics(SM_CXSCREEN);
int m_ncyScreen = GetSystemMetrics(SM_CYSCREEN);
//Set this window's size to full screen
// SetWindowPos( &wndTopMost , 0 , 0 , m_ncxScreen , m_ncyScreen , SWP_SHOWWINDOW);
HBITMAP m_hbkBitmap = (HBITMAP)::LoadImage( NULL , "D://5000.bmp", IMAGE_BITMAP ,0 , 0 , LR_LOADFROMFILE);
CDC *pDC = GetDC();
CDC m_dcMem;
CBitmap m_bmMem;
m_dcMem.CreateCompatibleDC(pDC);
m_bmMem.Attach(m_hbkBitmap);
m_dcMem.SelectObject(m_bmMem);
BITMAP bm;
m_bmMem.GetBitmap(&bm);
CRect rc;
GetClientRect(&rc);
pDC->SetStretchBltMode(COLORONCOLOR);
pDC->StretchBlt( rc.left , rc.top , rc.Width() , rc.Height() , &m_dcMem , 0 , 0 , bm.bmWidth , bm.bmHeight , SRCCOPY);//SRCCOPY
int m_ncyScreen = GetSystemMetrics(SM_CYSCREEN);
//Set this window's size to full screen
// SetWindowPos( &wndTopMost , 0 , 0 , m_ncxScreen , m_ncyScreen , SWP_SHOWWINDOW);
HBITMAP m_hbkBitmap = (HBITMAP)::LoadImage( NULL , "D://5000.bmp", IMAGE_BITMAP ,0 , 0 , LR_LOADFROMFILE);
CDC *pDC = GetDC();
CDC m_dcMem;
CBitmap m_bmMem;
m_dcMem.CreateCompatibleDC(pDC);
m_bmMem.Attach(m_hbkBitmap);
m_dcMem.SelectObject(m_bmMem);
BITMAP bm;
m_bmMem.GetBitmap(&bm);
CRect rc;
GetClientRect(&rc);
pDC->SetStretchBltMode(COLORONCOLOR);
pDC->StretchBlt( rc.left , rc.top , rc.Width() , rc.Height() , &m_dcMem , 0 , 0 , bm.bmWidth , bm.bmHeight , SRCCOPY);//SRCCOPY