C#
steavenhe
这个作者很懒,什么都没留下…
展开
-
Windows API SetWindowPos
函数原型:BOOL SetWindowPos(HWN hWnd,HWND hWndlnsertAfter,int X,int Y,int cx,int cy,UNIT.Flags);用到SetWindowPos的时候,windows API解释还不够详细,主要是hWndlnsertAfter和Flags 的值没详细介绍,此处做个记录:hWndInsertAfter在z序中的位于被置位的原创 2012-04-20 12:50:46 · 1556 阅读 · 0 评论 -
Window API ShowWindow
函数功能:该函数设置指定窗口的显示状态。 函数原型:BOOL ShowWindow(HWND hWnd,int nCmdShow); 参数: hWnd:窗口句柄。 nCmdShow:指定窗口如何显示。如果发送应用程序的程序提供了STARTUPINFO结构,则应用程序第一次调用ShowWindow时该参数被忽略。否则,在第一次调用ShowWin原创 2012-04-21 15:21:40 · 1401 阅读 · 0 评论 -
Windows API GetWindowText
函数功能:该函数将指定窗口的标题条文本(如果存在)拷贝到一个缓存区内。如果指定的窗口是一个控制,则拷贝控制的文本。但是,GetWindowTeXt不能接收在其他应用程序中的控制文本。 函数原型:Int GetWindowText(HWND hWnd,LPTSTR lpString,Int nMaxCount); 参数: hWnd:带文本的窗口或控制的句柄。原创 2012-04-21 21:41:38 · 3582 阅读 · 0 评论 -
API与C#的数据类型对应关系表
API与C#的数据类型对应关系表API数据类型类型描述C#类型API数据类型类型描述C#类型WORD16位无符号整数ushortCHAR字符charLONG32位无符号整数intDWORDLONG64位长整数longDWORD32位无符号整数uintHDC设备描述表句柄转载 2012-04-21 20:24:53 · 516 阅读 · 0 评论 -
C# WinIO键盘鼠标模拟
using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;namespace lizheAionWG{ public class WinIo { public const int KBC_KEY_CMD = 0x转载 2012-08-22 19:53:22 · 4658 阅读 · 0 评论