static void cdkillcanvas (cdCtxCanvas* ctxcanvas) { cdwpKillCanvas(ctxcanvas); OpenClipboard(GetForegroundWindow()); EmptyClipboard(); if (ctxcanvas->wtype == CDW_EMF) { HENHMETAFILE hEmf = ctxcanvas->metafile->GetHENHMETAFILE(); SetClipboardData(CF_ENHMETAFILE, hEmf); delete ctxcanvas->metafile; } else { HBITMAP hBitmap; ctxcanvas->bitmap->GetHBITMAP(ctxcanvas->bg, &hBitmap); SetClipboardData(CF_BITMAP, hBitmap); delete ctxcanvas->bitmap; } CloseClipboard(); delete ctxcanvas; }
static void cdkillcanvas(cdCtxCanvas* ctxcanvas) { cdwpKillCanvas(ctxcanvas); if (ctxcanvas->bitmap_dbuffer) delete ctxcanvas->bitmap_dbuffer; delete ctxcanvas->bitmap; delete ctxcanvas; }
/* %F cdKillCanvas para Printer. Termina a pagina e termina o documento, enviando-o para a impressora. */ static void cdkillcanvas (cdCtxCanvas* ctxcanvas) { cdwpKillCanvas(ctxcanvas); EndPage(ctxcanvas->hDC); EndDoc(ctxcanvas->hDC); ClosePrinter(ctxcanvas->printerHandle); DeleteDC(ctxcanvas->hDC); delete ctxcanvas; }
static void cdkillcanvas (cdCtxCanvas* ctxcanvas) { cdwpKillCanvas(ctxcanvas); delete ctxcanvas->metafile; delete ctxcanvas; }