①、ShellExecute 进行进程的创建,属于 shell api://int iRet = (int)ShellExecute(m_hWnd, _T("open"), _T("NOTEPAD.EXE"), _T("C:\\123.txt"), NULL, SW_SHOW);int iRet =...
分类:
编程语言 时间:
2015-01-23 10:46:23
阅读次数:
215
函数功能:该函数获得一个窗体的句柄,该窗体的类名和窗体名与给定的字符串相匹配。这个函数查找子窗体,从排在给定的子窗体后面的下一个子窗体開始。在查找时不区分大写和小写。函数原型:HWND FindWindowEx(HWND hwndParent,HWND hwndChildAfter,LPCTSTR ...
GetMessage()原型:BOOL GetMessage(LPMSG lpMsg, HWND hWNd, UINT wMsgFilterMin, UINT wMsgFilterMax);Retrieves a message from the calling threads queque. Th...
分类:
其他好文 时间:
2015-01-21 14:42:22
阅读次数:
115
m_hWnd 和 this指针m_hWnd①m_hWnd这个成员变量,最早是定义在类CWnd中,而且是类CWnd的第一个数据成员,先看一下MSDN的解析:The handle of the Windows window attached to this CWnd. The m_hWnd data m...
分类:
编程语言 时间:
2015-01-20 17:44:49
阅读次数:
268
#include LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPreInstance,LPSTR lpCmdLine,int nShowCmd)...
分类:
其他好文 时间:
2015-01-19 22:13:54
阅读次数:
190
WinMainCallback:LRESULT CLoginProcess::DefMainWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)case WM_PAINT: |m_Progress == PRG_PATCH |Re.....
分类:
其他好文 时间:
2015-01-19 20:51:25
阅读次数:
328
#include#define TextHeight 20#define TextWdith 80LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hP...
分类:
其他好文 时间:
2015-01-18 17:07:09
阅读次数:
236
打开文件或程序'API函数声明Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lp...
分类:
数据库 时间:
2015-01-18 13:10:01
阅读次数:
232
#includeLRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPreInstance,LPSTR lpCmdLine,int nShowCmd){...
分类:
其他好文 时间:
2015-01-16 18:20:50
阅读次数:
182
通过MFC 对话框的点击按钮打开 服务控制面板
方法一:
system("window命令")
比如: system("services.msc") 打开服务控制面板
方法二:
通过ShellExecute()函数
#include
ShellExecute函数原型及参数含义如下:
ShellExecute(
hWnd: HWND; //{指定父窗口句柄}
...
分类:
编程语言 时间:
2015-01-15 16:08:29
阅读次数:
243