I put the control of HDC has handed into the Draw function as a parameter, but the result picture unexpectedly can where is out of control!!! ??
cstrings path;
GetDlgItemText (IDC_EDIT1, path);
//CxImage * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
CxImage image;
Image. The Load (path. GetBuffer (), CXIMAGE_FORMAT_UNKNOWN);
If (image. The IsValid ())
{
Image. The Draw (GetDlgItem (IDC_CXIMAGE) - & gt; GetDC () - & gt; GetSafeHdc (), X, Y);
}
CodePudding user response:
CodePudding user response:
Unlikely, used didn't find the problem
CodePudding user response: