首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

在哪些情况下CreateWindowEx函数的返回值为0?解决办法

2012-03-16 
在哪些情况下CreateWindowEx函数的返回值为0?如题.[解决办法]an invalid parameter valuethe system class

在哪些情况下CreateWindowEx函数的返回值为0?
如题.

[解决办法]
an invalid parameter value
the system class was registered by a different module
the WH_CBT hook is installed and returns a failure code
the window procedure fails for WM_CREATE or WM_NCCREATE
[解决办法]
If the function succeeds, the return value is a handle to the new window.

If the function fails, the return value is NULL. To get extended error information, call GetLastError.

This function typically fails for one of the following reasons:

an invalid parameter value
the system class was registered by a different module
the WH_CBT hook is installed and returns a failure code
the window procedure fails for WM_CREATE or WM_NCCREATE

[解决办法]
楼上都写明白了。
[解决办法]
If the function succeeds, the return value is a handle to the new window.

If the function fails, the return value is NULL. To get extended error information, call GetLastError.

This function typically fails for one of the following reasons:

an invalid parameter value
the system class was registered by a different module
the WH_CBT hook is installed and returns a failure code
the window procedure fails for WM_CREATE or WM_NCCREATE
-------------------------------------------------
UP!

热点排行