Exemple #1
0
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;
}
Exemple #2
0
static void cdkillcanvas(cdCtxCanvas* ctxcanvas)
{
  cdwpKillCanvas(ctxcanvas);
  
  if (ctxcanvas->bitmap_dbuffer) delete ctxcanvas->bitmap_dbuffer;
  delete ctxcanvas->bitmap;
 
  delete ctxcanvas;
}
Exemple #3
0
/* 
%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;
}
Exemple #4
0
static void cdkillcanvas (cdCtxCanvas* ctxcanvas)
{
  cdwpKillCanvas(ctxcanvas);
  delete ctxcanvas->metafile;
  delete ctxcanvas;
}