论坛: 编程破解 标题: 一个windows编程的小问题 复制本贴地址    
作者: mhxueshan [mhxueshan]    论坛用户   登录
hInst = ((LPCREATESTRUCT)lParam)->hInstance ;
这句话不太懂,想查一下LPCREATESTRUCT的结构,不过MSDN上查不到,网上也不好搜,不知道哪位高手能给我解释一下这句话的意思,谢了

地主 发表时间: 05-10-21 20:01

回复: tabris17 [tabris17]   论坛用户   登录
怎么会查不到呢

The CREATESTRUCT structure defines the initialization parameters passed to the window procedure of an application. These members are identical to the parameters of the CreateWindowEx function.

Syntax

typedef struct tagCREATESTRUCT {
    LPVOID lpCreateParams;
    HINSTANCE hInstance;
    HMENU hMenu;
    HWND hwndParent;
    int cy;
    int cx;
    int y;
    int x;
    LONG style;
    LPCTSTR lpszName;
    LPCTSTR lpszClass;
    DWORD dwExStyle;
} CREATESTRUCT, *LPCREATESTRUCT;


B1层 发表时间: 05-10-21 20:50

回复: mhxueshan [mhxueshan]   论坛用户   登录
那这个((LPCREATESTRUCT)lParam)是什么意思呢?把lparam强制转换为LPCREATESTRUCT的结构指针吗?好像没有什么道理

B2层 发表时间: 05-10-21 21:43

论坛: 编程破解

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号