| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 830 人关注过本帖
标题:c++编的计算器的一些代码,能帮忙解释一下
只看楼主 加入收藏
c1156w
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2007-12-31
结帖率:100%
收藏
 问题点数:0 回复次数:0 
c++编的计算器的一些代码,能帮忙解释一下
BOOL CCalculatorDlg::OnInitDialog()
{  。。。。。。

       // TODO: Add extra initialization here
    m_1.AutoLoad(IDC_1,this);
    m_2.AutoLoad(IDC_2,this);
    m_3.AutoLoad(IDC_3,this);
    m_4.AutoLoad(IDC_4,this);
    m_5.AutoLoad(IDC_5,this);
    m_6.AutoLoad(IDC_6,this);
    m_7.AutoLoad(IDC_7,this);
    m_8.AutoLoad(IDC_8,this);
    m_9.AutoLoad(IDC_9,this);
    m_0.AutoLoad(IDC_0,this);
    m_back.AutoLoad(IDC_BACK,this);
    m_ce.AutoLoad(IDC_CE,this);
    m_c.AutoLoad(IDC_C,this);
    m_divide.AutoLoad(IDC_DIVIDE,this);
    m_sqrt.AutoLoad(IDC_SQRT,this);
    m_chen.AutoLoad(IDC_CHEN,this);
    m_percent.AutoLoad(IDC_PERCENT,this);
    m_reduce.AutoLoad(IDC_REDUCE,this);
    m_daoshu.AutoLoad(IDC_DAOSHU,this);
    m_sign.AutoLoad(IDC_SIGN,this);
    m_add.AutoLoad(IDC_ADD,this);
    m_equal.AutoLoad(IDC_EQUAL,this);
    m_point.AutoLoad(IDC_POINT,this);  
    
    return TRUE;  // return TRUE  unless you set the focus to a control
}




其中IDC_1到9都是对1到9个按键,那么AutoLoad (,this);  这个符号是什么意思???

下面的代码,能帮忙解释一下思想,和一些函数的含义么?
搜索更多相关主题的帖子: IDC 计算器 AutoLoad 代码 BOOL 
2008-01-13 19:48
快速回复:c++编的计算器的一些代码,能帮忙解释一下
数据加载中...
 
   



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

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