lwinkenb
asked on
Draw an CPictureHolder on a Dialog
I'm trying to render a CPictureHolder image onto a dialog. I've posted my code below, but it's not working.
CPictureHolderEx pic;
CDC *dc;
CRect crClient;
CRect crPic;
CStatic *frame;
frame = (CStatic*)this->GetDlgItem (IDC_FRAME );
frame->GetWindowRect(&crPi c);
GetClientRect(&crClient);
GetClientRect(&crPic);
pic.OleLoadPictureFromFile ("c:\\test .jpg");
dc = this->GetDC();
pic.Render(dc,crPic,crClie nt);
CPictureHolderEx pic;
CDC *dc;
CRect crClient;
CRect crPic;
CStatic *frame;
frame = (CStatic*)this->GetDlgItem
frame->GetWindowRect(&crPi
GetClientRect(&crClient);
GetClientRect(&crPic);
pic.OleLoadPictureFromFile
dc = this->GetDC();
pic.Render(dc,crPic,crClie
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER