除了用FindWindowA()函数还有什么方法得到对话框句柄呢?比如对象或者指针可以吗?怎么弄啊!谢谢!
解决方案 »
- socket网络编程的几个问题?
- 类内部static成员函数?
- 为什么我的static控件上文字的颜色和背景色又复原了呢????????
- [注册表] <文件打开方式-始终用该程序打开>这个信息存放在注册标的什么位置?
- 如何在主窗口获得视图对象
- error LNK2019: unresolved external symbol "class CMsgAutoStApp & __cdecl GetMsgAuStApp(void)"
- 简单的UDL的问题!!!
- 关于就业,高分相送.不够再开贴..
- 请问在COM里面如何对树形对象进行序列化?有没有系统已经实现的接口?
- 我有一个access数据库文件,一字段为日期类型,我如何将其值显示到我的Edit控件中
- 令人头疼的问题,,,Phonic_usb控件
- PostMessage(WM_NCLBUTTONUP, HTCAPTION, lParam);//什么意思???
是这样用吗?那个mbw就是我的对话框的指针,但是怎么报这个错误呢?Yuyan.cpp(31) : error C2227: left of '->GetSafeHwnd' must point to class/struct/union
见MSDN上的解释:
The EnumWindows function enumerates all top-level windows on the screen by passing the handle to each window, in turn, to an application-defined callback function. EnumWindows continues until the last top-level window is enumerated or the callback function returns FALSE. SyntaxBOOL EnumWindows( WNDENUMPROC lpEnumFunc,
LPARAM lParam
);
ParameterslpEnumFunc
[in] Pointer to an application-defined callback function. For more information, see EnumWindowsProc.
lParam
[in] Specifies an application-defined value to be passed to the callback function.