#include <gdiplus.h>
#include <wingdi.h>
using namespace Gdiplus;
#pragma comment(lib, "gdiplus.lib")error C2065: “Rectangle”: 未声明的标识符
#include <wingdi.h>
using namespace Gdiplus;
#pragma comment(lib, "gdiplus.lib")error C2065: “Rectangle”: 未声明的标识符
error C2664: “Gdiplus::Status Gdiplus::Graphics::DrawImage(Gdiplus::Image *,const Gdiplus::PointF &)” : 不能将参数 2 从“CRect *__w64 ”转换为“const Gdiplus::PointF &”
原因如下: 无法从“CRect *__w64 ”转换为“const Gdiplus::PointF”
无构造函数可以接受源类型,或构造函数重载决策不明确
CRect rect_pictrue;
GetDlgItem(IDC_STATIC_PICTURE)->GetClientRect(&rect_pictrue);graphics.DrawImage(m_pImage,&rect_pictrue);
拿rect的指针赋给point的引用
这不报错就怪了