荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: Peter (小飞侠), 信区: Program
标  题: vc faq(4)
发信站: BBS 荔园晨风站 (Tue Jan 26 22:49:44 1999), 转信


   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);
}



--
※ 来源:.BBS 荔园晨风站 bbs.szu.edu.cn.[FROM: 192.168.1.3]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店