| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 412 人关注过本帖
标题:如何解决
只看楼主 加入收藏
rocketabc
Rank: 1
等 级:新手上路
帖 子:100
专家分:0
注 册:2006-7-6
收藏
 问题点数:0 回复次数:2 
如何解决
MyProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
...{
if(msg == WM_RBUTTONDOWN) // 屏蔽右键
return 0;
return CallWindowProc((WNDPROC)oldWndProc, hwnd, msg, wParam, lParam);
}

我想修改一个控件的过程函数,但调用CallWindowProc出现问题

cannot convert from '' to 'long (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)'
以上是编译问题 如何解决啊?
搜索更多相关主题的帖子: 如何 convert return cannot 
2007-11-19 10:55
yuyunliuhen
Rank: 6Rank: 6
等 级:贵宾
威 望:20
帖 子:1435
专家分:0
注 册:2005-12-12
收藏
得分:0 
看看 CallWindowProc参数的说明
lpPrevWndFunc
[in] Long pointer to the previous window procedure.

If this value is obtained by calling the GetWindowLong function with the nIndex parameter set to GWL_WNDPROC or DWL_DLGPROC, it is actually either the address of a window or dialog box procedure, or a handle representing that address.


Go confidently in the  directions of your dreams,live the life you have imagined!Just do it!
It is no use learning without thinking!
2007-11-19 13:15
rocketabc
Rank: 1
等 级:新手上路
帖 子:100
专家分:0
注 册:2006-7-6
收藏
得分:0 
oldWndProc 我定义的是整形long,是 setwindowlong()的返回值 这样有错么 ?  我还是不明白啊

兴趣和爱好是我追求的方向
2007-11-19 16:32
快速回复:如何解决
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018417 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved