码迷,mamicode.com
首页 >  
搜索关键字:hwnd    ( 761个结果
window程序设计基本框架
1 #include<windows.h> 2 //通用字符串的定义头文件 3 #include<tchar.h> 4 5 6 7 //消息回调函数 8 LRESULT CALLBACK WindowProc( 9 HWND hWnd, //窗口句柄 10 UINT uMsg, //消息ID 11
分类:Windows程序   时间:2016-03-07 16:45:08    阅读次数:188
监控其它进程
program Monitor; // {$APPTYPE CONSOLE} uses Winapi.Windows, System.SysUtils, ProcLib in 'ProcLib.pas'; var Mutex: HWND; const c_AppName = 'server.exe'
分类:系统相关   时间:2016-03-03 01:21:34    阅读次数:228
delphi获得当前鼠标坐标
简单的说就是取鼠标所在位置对应的窗口句柄?procedure TForm1.Timer1Timer(Sender: TObject);vara:TPoint; //用来存放坐标hw:HWND; //用来存放窗口句柄begin GetCursorPos(a); //取得鼠标坐标,并存放进a中 hw :
分类:Windows程序   时间:2016-03-02 15:03:27    阅读次数:313
C#调用SendMessage 用法
函数功能:该函数将指定的消息发送到一个或多个窗口。此函数为指定的窗口调用窗口程序,直到窗口程序处理完消息再返回。该函数是应用程序和应用程序之间进行消息传递的主要手段之一。 函数原型:LRESULT SendMessage(HWND hWnd,UINT Msg,WPARAM wParam,LPARAM
分类:Windows程序   时间:2016-03-01 20:45:58    阅读次数:228
NativeWindow_01_CreateWindow(Ex)_VC6
1、 1 #include <windows.h> 2 3 4 LRESULT CALLBACK ProcWindow(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); 5 void QuitWindow(); 6 7 HINSTANCE g_
分类:Windows程序   时间:2016-02-26 23:38:02    阅读次数:403
一些窗口API函数,比如SetForegroundWindow,SwitchToThisWindow
SetForegroundWindowSwitchToThisWindow procedure TApplication.BringToFront;varTopWindow: HWnd;beginif Handle <> 0 thenbeginTopWindow := GetLastActivePo
分类:Windows程序   时间:2016-02-26 23:32:34    阅读次数:234
TControl.GetDeviceContext会给图形控件建立新的坐标原点和建立新的剪裁区域
这是取得DC句柄的其中一种方法(会重定义原点和建立新的剪裁区): function TControl.GetDeviceContext(var WindowHandle: HWnd): HDC; begin if Parent = nil then raise EInvalidOperation.C
分类:其他好文   时间:2016-02-26 21:59:14    阅读次数:238
NativeWindow_01
1、 1 #include <windows.h> 2 3 4 LRESULT CALLBACK ProcWindow(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); 5 void QuitWindow(); 6 7 HINSTANCE g_
分类:Windows程序   时间:2016-02-25 22:48:15    阅读次数:264
DELPHI 通過窗口句柄或窗口标题得到进程句柄
DELPHI 通過窗口句柄或窗口标题得到进程句柄2009年05月08日 星期五 10:15procedure TForm1.Button1Click(Sender: TObject);varhWindow: HWND; { 窗体句柄 }dwProcessID: DWORD; { 进程 ID }hPr
分类:Windows程序   时间:2016-02-25 19:54:58    阅读次数:203
hdc和hwnd的区别
句柄概念在WINDOWS编程中是一个很重要的概念,在许多地方都扮演着重要的角色。但由此而产生的句柄概念也大同小异,比如:<<Microsoft Windows 3 Developer's Workshop>>(Microsoft Press,by Richard Wilton)一书中句柄的概念是:在
分类:其他好文   时间:2016-02-25 19:49:26    阅读次数:146
761条   上一页 1 ... 32 33 34 35 36 ... 77 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!