不同的打印机即使纸张是一样的,可是可打印区域也是不同的,我的打印程序如何不受他们的影响??
解决方案 »
- png的半透明背景下面是个按钮,点击按钮没反应//是被图片挡住了吗?背景不是拷贝在窗口背景上了吗?
- 在ATL怎么响应SCROLLBAR的事件?
- 如何根据鼠标位置来显示与隐藏一个子对话框?
- 一个指针的困惑
- 在线程中调用解析XML的动态库为何会丢失内存(该动态库利用msxml4.dll提供的DOM函数解析XML)
- 用DSHOW 如何控制流媒体的播放速度!
- 如何得到对话框中标题栏(Title bar)的指针?
- 16位色下图片失真的问题
- 关于画图的问题 在线等候
- ActiveX控件,创建Windows子控件
- 【求助】如何通过NtDeviceIoControlFile获得IP地址、端口信息
- Visual Studio 2010 使用技巧请教。如何对选择的关键词进行标亮?
当然,这个里面看的是pixel格式的OnBeginprint中的入口参数
PHYSICALOFFSETX
For printing devices: the distance from the left edge of the physical page to the left edge of the printable area, in device units. For example, a printer set to print at 600 dpi on 8.5-by-11-inch paper, that cannot print on the leftmost 0.25-inch of paper, has a horizontal physical offset of 150 device units.
PHYSICALOFFSETY
For printing devices: the distance from the top edge of the physical page to the top edge of the printable area, in device units. For example, a printer set to print at 600 dpi on 8.5-by-11-inch paper, that cannot print on the topmost 0.5-inch of paper, has a vertical physical offset of 300 device units.