论坛: 编程破解 标题: VC编程的一个小问题! 复制本贴地址    
作者: jhkdiy [jhkdiy]    版主   登录
如有以下代码:
    afx_msg void OnLButtonDown(UINT,CPoint Point)
    {
        SetCapture();
    }
   
    afx_msg void OnLButtonDown(UINT,CPoint Point)
    {
        if(this==GetCapture())
        {
          。。。。。。
          。。。。。。
        }
    }

1:关键字“this”是什么,有什么用?
2:“if(this==GetCapture())”这句是什么意思?

地主 发表时间: 04-03-07 14:07

回复: ghame [ghame]   论坛用户   登录
this是对包含这个函数的类的引用啊。

B1层 发表时间: 04-03-07 19:36

论坛: 编程破解

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

粤ICP备05087286号