我是用WINDOWS API写的,没有用MFC,现在我在ERASEBKGND事件中重绘窗体的背景图片,但是窗体中的BUTTON被刷没了,要怎么处理啊?
代码如下:
case WM_ERASEBKGND:
if(m_bHadLoad)  
{    HDC pDC=GetDC(hwnd);   
RECT rc;
long hmWidth=0;  
long hmHeight=0;   
m_lppi->get_Height(&hmHeight);  
m_lppi->get_Width(&hmWidth);   
GetClientRect(hwnd,&rc);   
int nWidth,nHeight;  
nWidth=rc.right-rc.left ;
nHeight=rc.bottom-rc.top;  
                       //m_lppi是LPPicture接口
m_lppi->Render(pDC,0,0,nWidth,nHeight, 0,hmHeight,hmWidth,-hmHeight,NULL ); 

}
               break;