现在已经获取了左边点击的item的名字、路径,发送了wm_paint消息给右边,以下程序有bug,请问哪里出错啦?
void CRightView::OnPaint() 
{
CPaintDC dc(this); // TODO: Add your message handler code here
GetDocument()->GetPathName();
int x=0,y=0;
CSize size=dc.GetCurrentBitmap()->GetBitmapDimension();
x=size.cx;
y=size.cy;

HDC sDC;
sDC=(struct HDC__ *)GetDC();
   
    ::BitBlt(dc,0,0,x,y,sDC,0,0,SRCCOPY);

}