⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 toolwnd.cs

📁 三汇pcifax卡的demo用csharp写的
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.IO;

namespace WindowsApplication1
{
	/// <summary>
	/// ToolWnd 的摘要说明。
	/// </summary>
	public class ToolWnd : System.Windows.Forms.Form
	{
		[DllImport("BMPUTIL.DLL")]public static extern int fBmp_SetHeaderFormat(int nRow,  int nFromX,  int nFromY, string szFrom,int nSubX,  int nSubY, string szSubject, int nToX, int nToY, string szTo, int nTimeX, int nTimeY, string szTime);
		[DllImport("BMPUTIL.DLL")]public static extern int fBmp_GetFileAllPage(string filename);


		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Button button2;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.Label label12;
		private System.Windows.Forms.Label label13;
		private System.Windows.Forms.Label label14;
		private System.Windows.Forms.Label label15;
		private System.Windows.Forms.Button button3;
		private System.Windows.Forms.TextBox m_txtNumPage;
		private System.Windows.Forms.TextBox m_txtPathFile;
		private System.Windows.Forms.TextBox m_txtTime;
		private System.Windows.Forms.TextBox m_txtTimeY;
		private System.Windows.Forms.TextBox m_txtTimeX;
		private System.Windows.Forms.TextBox m_txtTo;
		private System.Windows.Forms.TextBox m_txtToY;
		private System.Windows.Forms.TextBox m_txtToX;
		private System.Windows.Forms.TextBox m_txtSub;
		private System.Windows.Forms.TextBox m_txtSubY;
		private System.Windows.Forms.TextBox m_txtSubX;
		private System.Windows.Forms.TextBox m_txtFromY;
		private System.Windows.Forms.TextBox m_txtFromX;
		private System.Windows.Forms.TextBox m_txtFrom;
		private System.Windows.Forms.TextBox m_txtRow;


		
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;


//		[DllImport("SHP_A3.dll")]public static extern long fBmp_GetFileAllPage(string filename);

//		[DllImport("SHP_A3.dll")]public static extern int fBmp_CutTifHeader(string szSource, string szTarget, int nHeight, int nPageNo, long dwReserve) ;




		public ToolWnd()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.button2 = new System.Windows.Forms.Button();
			this.m_txtNumPage = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.button1 = new System.Windows.Forms.Button();
			this.m_txtPathFile = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.button3 = new System.Windows.Forms.Button();
			this.m_txtTime = new System.Windows.Forms.TextBox();
			this.label15 = new System.Windows.Forms.Label();
			this.m_txtTimeY = new System.Windows.Forms.TextBox();
			this.label14 = new System.Windows.Forms.Label();
			this.m_txtTimeX = new System.Windows.Forms.TextBox();
			this.label13 = new System.Windows.Forms.Label();
			this.m_txtTo = new System.Windows.Forms.TextBox();
			this.label12 = new System.Windows.Forms.Label();
			this.m_txtToY = new System.Windows.Forms.TextBox();
			this.label11 = new System.Windows.Forms.Label();
			this.m_txtToX = new System.Windows.Forms.TextBox();
			this.label10 = new System.Windows.Forms.Label();
			this.m_txtSub = new System.Windows.Forms.TextBox();
			this.label9 = new System.Windows.Forms.Label();
			this.m_txtSubY = new System.Windows.Forms.TextBox();
			this.label8 = new System.Windows.Forms.Label();
			this.m_txtSubX = new System.Windows.Forms.TextBox();
			this.label7 = new System.Windows.Forms.Label();
			this.m_txtFromY = new System.Windows.Forms.TextBox();
			this.label6 = new System.Windows.Forms.Label();
			this.m_txtFromX = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.m_txtFrom = new System.Windows.Forms.TextBox();
			this.label4 = new System.Windows.Forms.Label();
			this.m_txtRow = new System.Windows.Forms.TextBox();
			this.label3 = new System.Windows.Forms.Label();
			this.groupBox1.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.button2);
			this.groupBox1.Controls.Add(this.m_txtNumPage);
			this.groupBox1.Controls.Add(this.label2);
			this.groupBox1.Controls.Add(this.button1);
			this.groupBox1.Controls.Add(this.m_txtPathFile);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Location = new System.Drawing.Point(24, 24);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(336, 144);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "Get number of pages of fax file";
			// 
			// button2
			// 
			this.button2.Location = new System.Drawing.Point(104, 104);
			this.button2.Name = "button2";
			this.button2.Size = new System.Drawing.Size(144, 23);
			this.button2.TabIndex = 5;
			this.button2.Text = "fBmp_GetFileAllPage";
			this.button2.Click += new System.EventHandler(this.button2_Click);
			// 
			// m_txtNumPage
			// 
			this.m_txtNumPage.Location = new System.Drawing.Point(128, 64);
			this.m_txtNumPage.Name = "m_txtNumPage";
			this.m_txtNumPage.TabIndex = 4;
			this.m_txtNumPage.Text = "";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(16, 64);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(104, 23);
			this.label2.TabIndex = 3;
			this.label2.Text = "Numbers of page";
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(248, 24);
			this.button1.Name = "button1";
			this.button1.TabIndex = 2;
			this.button1.Text = "Browse";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// m_txtPathFile
			// 
			this.m_txtPathFile.Location = new System.Drawing.Point(128, 24);
			this.m_txtPathFile.Name = "m_txtPathFile";
			this.m_txtPathFile.TabIndex = 1;
			this.m_txtPathFile.Text = "";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(80, 24);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(40, 23);
			this.label1.TabIndex = 0;
			this.label1.Text = "File";
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.button3);
			this.groupBox2.Controls.Add(this.m_txtTime);
			this.groupBox2.Controls.Add(this.label15);
			this.groupBox2.Controls.Add(this.m_txtTimeY);
			this.groupBox2.Controls.Add(this.label14);
			this.groupBox2.Controls.Add(this.m_txtTimeX);
			this.groupBox2.Controls.Add(this.label13);
			this.groupBox2.Controls.Add(this.m_txtTo);
			this.groupBox2.Controls.Add(this.label12);
			this.groupBox2.Controls.Add(this.m_txtToY);
			this.groupBox2.Controls.Add(this.label11);
			this.groupBox2.Controls.Add(this.m_txtToX);
			this.groupBox2.Controls.Add(this.label10);
			this.groupBox2.Controls.Add(this.m_txtSub);
			this.groupBox2.Controls.Add(this.label9);
			this.groupBox2.Controls.Add(this.m_txtSubY);
			this.groupBox2.Controls.Add(this.label8);
			this.groupBox2.Controls.Add(this.m_txtSubX);
			this.groupBox2.Controls.Add(this.label7);
			this.groupBox2.Controls.Add(this.m_txtFromY);
			this.groupBox2.Controls.Add(this.label6);
			this.groupBox2.Controls.Add(this.m_txtFromX);
			this.groupBox2.Controls.Add(this.label5);
			this.groupBox2.Controls.Add(this.m_txtFrom);
			this.groupBox2.Controls.Add(this.label4);
			this.groupBox2.Controls.Add(this.m_txtRow);
			this.groupBox2.Controls.Add(this.label3);
			this.groupBox2.Location = new System.Drawing.Point(24, 160);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(336, 256);
			this.groupBox2.TabIndex = 1;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "Properties of header";
			// 
			// button3
			// 
			this.button3.Location = new System.Drawing.Point(152, 222);
			this.button3.Name = "button3";
			this.button3.Size = new System.Drawing.Size(136, 23);
			this.button3.TabIndex = 26;
			this.button3.Text = "fBmp_SetHeaderFormat";
			this.button3.Click += new System.EventHandler(this.button3_Click);
			// 
			// m_txtTime
			// 
			this.m_txtTime.Location = new System.Drawing.Point(96, 224);
			this.m_txtTime.Name = "m_txtTime";
			this.m_txtTime.Size = new System.Drawing.Size(40, 21);
			this.m_txtTime.TabIndex = 25;
			this.m_txtTime.Text = "";
			// 
			// label15
			// 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -