关于该问题,其实就是将old pdev的函数的相关现场保存,然后启动新的pdev进行设置。
If ResetDC is called during the rendering of a print document, the printer graphics DLL receives the following sequence of calls:
dhpdevNew = DrvEnablePDEV();
DrvResetPDEV(dhpdevOld, dhpdevNew);
DrvDisableSurface(dhpdevOld);
DrvDisablePDEV(dhpdevOld);
DrvEnableSurface(dhpdevNew);
DrvStartDoc(dhpdevNew);
If ResetDC is called between documents there is no surface associated with the PDEV, so only the following sequence of calls is made:
dhpdevNew = DrvEnablePDEV();
DrvResetPDEV(dhpdevOld,dhpdevNew);
DrvDisablePDEV(dhpdevOld);
本文详细介绍了在打印机图形设备驱动程序DLL中,当调用ResetDC函数时,系统如何按顺序调用DrvEnablePDEV、DrvResetPDEV等函数,以及在不同文档之间的处理差异。
6557

被折叠的 条评论
为什么被折叠?



