//改变窗口大小
CRect rect;
GetWindowRect(&rect);
AfxGetMainWnd()->MoveWindow(0,0,800,400,1);
AfxGetMainWnd()->CenterWindow();
//CString到WChar的转换
CString cstr;
WChar wch[200];
wcscpy(wch,cstr.AllocSysString());
//error C2660: “Gdiplus::GdiplusBase::operator new” : 函数不接受3个参数
//if(BitmapL==0) BitmapL = new Bitmap(GleftFile);
//需要在new前加::
if(BitmapL==0)
//在窗口中绘制图片
//图片路径为str_picPath,根据当前窗口rect绘制
CRect rect;
GetClientRect(&rect);
HANDLE filehandle=LoadImage(NULL,str_picPath,IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
if(filehandle!=NULL)
{
}