• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            C++博客 聯系 聚合 管理  

            Blog Stats

            文章分類(17)

            收藏夾(2)

            文章檔案(18)

            相冊

            Blogs

            citywanderer



            ???????????????????????????????? (Figure 1-1.The Visual C++ MFC application build process. in 《inside vc.net》)
            From Figure1.1 above, we can see that resource.h is the bridge between MFC files and Resource file.?Any an ID value in resource.h corresponds to a control.
            1、If haven't Resouce file, we can also create a control by Create function. For instance:
            //in .h file
            CButton m_nRTButton;
            //in OnInitDialog() function
            m_nRTButton.Create("RunTime", WS_CHILD|WS_VISIBLE|BS_AUTO3STATE, CRect(0,0,100,20), this, 100);
            virtual BOOLCreate
            (
            LPCTSTRlpszCaption,
            DWORDdwStyle,
            constRECT&rect,
            CWnd*pParentWnd,
            UINTnID
            );
            nID can be any number if you will use it later, otherwise, the id number may conflict with
            others.
            2、If you want to change data between a control and a variable, here are three ways as
            follow:
            (1):DDX_Control(……)
            ……
            (2):object = (Class*)GetDlgItem(nID)
            The class must derive from CWND, and the data flow just from variable to control i think
            (3):Create(……)
            CButton m_nRTButton;
            m_nRTButton.Create("RunTime", WS_CHILD|WS_VISIBLE|BS_AUTO3STATE, CRect(0,0,100,20), this, 100);
            as above.
            (4):create an object of the class corresponding to a resource.
            Of cource if you want to generate a modeless dialog, you must use Create function, otherwise
            , you can
            posted on 2006-06-29 18:14 citywanderer 閱讀(298) 評論(0)  編輯 收藏 引用 所屬分類: C++
            久久中文骚妇内射| 亚洲国产精品无码成人片久久| 精品久久久无码人妻中文字幕| 思思久久99热免费精品6| 国产免费久久精品99re丫y| 久久精品无码专区免费东京热| 国产巨作麻豆欧美亚洲综合久久 | 久久亚洲AV无码西西人体| 久久久精品视频免费观看| 国产精品免费福利久久| 亚洲第一永久AV网站久久精品男人的天堂AV | 国产精品青草久久久久福利99 | 国产激情久久久久影院小草| 欧美午夜A∨大片久久| 久久久老熟女一区二区三区| 久久久久综合国产欧美一区二区| 国产成人精品综合久久久久| 日日狠狠久久偷偷色综合0| 久久亚洲精品无码AV红樱桃| 久久夜色精品国产亚洲av| 影音先锋女人AV鲁色资源网久久 | 日本精品一区二区久久久| 精品久久久久久无码中文字幕一区 | 亚洲精品国产自在久久| 品成人欧美大片久久国产欧美...| 久久无码国产专区精品| 99久久伊人精品综合观看| 久久精品国产第一区二区三区| 亚洲欧美日韩久久精品| 亚洲国产精品人久久| 亚洲嫩草影院久久精品| 久久精品人人槡人妻人人玩AV | 狠狠色丁香婷婷综合久久来来去 | 欧美日韩中文字幕久久久不卡| 成人免费网站久久久| 久久久久久久尹人综合网亚洲| 国产精品青草久久久久婷婷| 久久精品九九亚洲精品| 久久国产免费观看精品3| 久久99国产精品尤物| 精品免费tv久久久久久久|