//---WPS----- using EtApp = ET; using System.Reflection; using System.Runtime.InteropServices; using System.Configuration; //--Excel-------- using EtAppExcel = Microsoft.Office.Interop.Excel; namespace LensMaterialPowerCenter.Dorm { public partia
映射模式是MFC甚至SDK界面编程第1个难点.打印则是第2个难点.这2个都是历史遗留的设计缺陷.这些缺陷还不至于到bug程度,但却很难用,不易理解. MFC提供2个类来实现打印(预览),具体有CPrintDialog和CPageSetupDialog类.这2个类实际上提供3通用对话框.具体看下面3组代码. “打印”对话框://main.h里面的代码class CMyApp:public CWinApp{public: virtual BOOL InitInstance();}; class CM
一:规律 二维图形的展示都可以使用二维数组来解决,W图形x轴0,1,2,1,0,1,2.....在0到2直接来回的徘徊 y轴是在一直递增........ 二:代码 @Test /** * 测试打印w图案 */ public void testPrintW() { int[][] arr = new int[3][9]; // 初始化x,y int x = 2; int y = 0; boolean flag = false; for (int i = 1; i < 10; i++) { arr[