码迷,mamicode.com
首页 >  
搜索关键字:hwnd    ( 761个结果
C++ 一个程序获取另一个程序Edit控件的内容
//一个程序获取另一个程序Edit控件的内容 //根据指定程序的标题名获取改程序窗口的句柄 HWND hWnd=::FindWindow(NULL,"zhang001"); if(hWnd) { MessageBox("get windows"); //根据窗口句柄获取EDIT控件的ID,但是这个I...
分类:编程语言   时间:2015-09-10 01:55:41    阅读次数:360
C++/MFC如何启动另一个应用程序并获取其进程 ID
ShellExecute(hWnd: HWND; {指定父窗口句柄}Operation: PChar; {指定动作, 譬如: open、runas、print、edit、explore、find[2] }FileName: PChar; {指定要打开的文件或程序}Parameters: PChar;...
分类:编程语言   时间:2015-09-10 01:42:52    阅读次数:460
扩展:利用现用工具来完成自己的功能
需求:本人有一个针对某软件的注册机工具,每次使用时都需要打开这个程序,输入相应的用户码点击生成才能获得激活码,现在我希望能批量根据用户码生成激活码,本文主要介绍在此背景下如何完成自己的扩展工具。代码说话:void MySetWindowText(HWND hwnd,char* Data){ ...
分类:其他好文   时间:2015-09-09 13:27:12    阅读次数:169
C++ 让 Win32 Console Application 程序后台运行
方法一:(无闪现)添加 #pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" )方法二:(这个会有闪现)#include "windows.h"void main(){HWND hwnd;if(hwnd...
分类:移动开发   时间:2015-09-09 11:11:22    阅读次数:146
System.Windows.Forms中的Message Structure
结构用途说明Implements a Windows message.Properties1.public IntPtr HWnd { get; set; }Gets or sets the window handle of the message.System.IntPtrA platform-s...
分类:Windows程序   时间:2015-09-07 12:52:10    阅读次数:200
对于windows窗口的标题菜单栏的操作——删除/禁用 最小最大话和关闭
HWND hand = FindWindow(NULL, "计算器"); int nStyle = GetWindowLong(hand, GWL_STYLE);nStyle &= ~(WS_MAXIMIZEBOX);SetWindowLong(hand, GWL_STYLE, nStyle);//...
分类:Windows程序   时间:2015-09-07 00:39:21    阅读次数:244
FindWindow 查找窗口
Declare Function SendMessage Lib "user32" Alias "SendMessageA" _ (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Integer, _ ByV...
分类:Windows程序   时间:2015-09-06 12:23:01    阅读次数:320
拦截TextBox 双击消息
OptionExplicitPublicDeclareFunctionGetWindowLong Lib "user32"Alias"GetWindowLongA"(ByVal hwnd AsLong, ByVal nIndex AsLong) AsLongPublicDeclareFunction...
分类:其他好文   时间:2015-09-04 18:23:18    阅读次数:140
深入浅出CChart 每日一课——快乐高四第十三课 月上柳梢,Win32标准控件ChartCtrl之牵手
上节课笨笨介绍了新增加的ChartCtrl控件,是在对话框中使用的。本节课简单介绍这个控件的另一种用法。 首先按照以前的步骤建立一个Win32Application。 增加WM_CREATE消息的响应例程如下。 case WM_CREATE: HWND hW; hW = CreateWindow(_T("ChartCtrl"), _T("Cap"), WS_CHILD | WS_...
分类:Windows程序   时间:2015-08-30 21:24:30    阅读次数:285
Delphi调用API时到底应该是指针还是结构体?
看MSDN,GetWindowRect的说明如下:BOOL WINAPI GetWindowRect( _In_HWND hWnd, _Out_LPRECT lpRect);但是实际调用直接传递结构体,而不是指针:procedure TWinControl.UpdateBounds;var P...
分类:Windows程序   时间:2015-08-30 06:33:10    阅读次数:131
761条   上一页 1 ... 37 38 39 40 41 ... 77 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!