Home > Software engineering >  MFC to achieve dynamic interface, use the BitBlt draw pictures appear after delete pictures to produ
MFC to achieve dynamic interface, use the BitBlt draw pictures appear after delete pictures to produ

Time:11-03

The code is as follows:
PDC - & gt; BitBlt (ax * 10, ay * 10, bitmap. BmWidth, bitmap. BmHeight, & amp; DcMemory, 0, 0, SRCCOPY);
Sleep (500);
PDC - & gt; BitBlt (ax * 15, ay * 10, bitmap. BmWidth, bitmap. BmHeight, & amp; DcMemory, 0, 0, SRCCOPY);
DcMemory. SelectObject (hOldBitmap);
DcMemory. DeleteDC ();
CBMP. DeleteObject ();
Just want to ask how to eliminate has emerged the first figure

CodePudding user response:

PDC - & gt; BitBlt (ax * 10, ay * 10, bitmap. BmWidth, bitmap. BmHeight, & amp; DcMemory, 0, 0, SRCCOPY);
Fall down? Should
PDC - & gt; BitBlt (0, 0, bitmap bmWidth, bitmap. BmHeight, & amp; DcMemory, ax * 10 * 10, SRCCOPY);
  • Related