发信人: mendy.bbs@bbs.nju.edu.cn (孟迪), 信区: cnprogram
标  题: vc faq(4)
发信站: nju_bbs (Sun Apr 19 13:49:21 1998)
转信站: Lilac!ustcnews!nju_bbs

2m发信人:m TMN (派生类)
2m信  区:m RAD
2m标  题:m vc faq(4)
2m发信站:m '3m紫金飞鸿m' (Wed Apr  8 08:14:29 1998) , 5m站内信件m

[返回首页] [分类讨论区] [全部讨论区]

   Read the documentation on SubClassDlgItem.  Here's an example of how to 

call it: 

BOOL CMyDialog::OnInitDialog() 

        //Do your subclassing first. 

        m_MyControl.SubClassDlgItem(ID_MYCONTROL, this); 

        //Let the base class do its thing. 
        CDialog::OnInitDialog(); 

        // Perhaps do some more stuff 
        // Be sure to call Ctl3d last, or it will cause 
        // assertions from multiple subclassing. 

        Ctl3dSubclassDlg(m_hWnd, CTL3D_ALL); 


  

                         [返回首页] [分类讨论区] [全部讨论区]

--
m;31m※ 来源:·紫金飞鸿 bbs.njupt.edu.cn·[FROM: pc05.info.njupt]m

--
※ 来源:.南大小百合信息交换站 bbs.nju.edu.cn.[FROM: a507yjh.nju.edu]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.243毫秒