去掉Windows CE和 Pocket PC中和OK按钮

时间:2012-07-23 07:19:25
【文件属性】:
文件名称:去掉Windows CE和 Pocket PC中和OK按钮
文件大小:37KB
文件格式:RAR
更新时间:2012-07-23 07:19:25
Pocket PC中和OK按钮 去掉Windows CE和 Pocket PC中和OK按钮 需要Windows mobil 6的SDK using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Runtime; using System.Runtime.InteropServices; namespace Wince5Mis { public partial class FrmMain : Form { public FrmMain() { InitializeComponent(); } /// /// 隐藏OK按钮 /// /// /// /// [DllImport("aygshell.dll")] private static extern bool SHDoneButton(IntPtr hWnd, UInt32 dwState); [DllImport("coredll.dll")] public static extern UInt32 SetWindowLong(IntPtr hWnd, int nIndex, UInt32 dwNewLong); [DllImport("coredll.dll")] public static extern UInt32 GetWindowLong(IntPtr hWnd, int nIndex); public const UInt32 SHDB_SHOW = 0x0001; public const UInt32 SHDB_HIDE = 0x0002; public const int GWL_STYLE = -16; public const UInt32 WS_NONAVDONEBUTTON = 0x00010000; /// /// 隐藏OK按钮 /// /// public static void HideDoneButton(IntPtr hWnd) { SHDoneButton(hWnd, SHDB_HIDE); } /// /// 车辆装备检查 /// /// /// private void FrmMain_Load(object sender, EventArgs e) { HideDoneButton(this.Handle);//隐藏OK按钮
【文件预览】:
DeviceTechDemo
----DeviceTechDemo()
--------DeviceTechDemo.csproj.user(198B)
--------Form1.cs(3KB)
--------bin()
--------obj()
--------Form2.resx(6KB)
--------Form2.Designer.cs(5KB)
--------Properties()
--------Program.cs(379B)
--------DeviceTechDemo.csproj(4KB)
--------Form1.Designer.cs(4KB)
--------Form1.resx(6KB)
--------Form2.cs(2KB)
----DeviceTechDemo.suo(16KB)
----DeviceTechDemo.sln(1KB)

网友评论