• <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++
            婷婷久久久亚洲欧洲日产国码AV | 久久久亚洲欧洲日产国码aⅴ | 老色鬼久久亚洲AV综合| av色综合久久天堂av色综合在| 久久精品人人做人人爽电影| 996久久国产精品线观看| 国内精品伊人久久久久影院对白| 久久久这里有精品| 久久精品国产一区二区三区日韩| 亚洲人成无码网站久久99热国产| 热re99久久精品国99热| 无码任你躁久久久久久| 99久久无色码中文字幕| 狠狠色婷婷久久综合频道日韩 | AV无码久久久久不卡蜜桃| 久久亚洲AV永久无码精品| 久久无码av三级| 久久超乳爆乳中文字幕| 精品久久久久久国产| 久久久久这里只有精品| 99久久精品日本一区二区免费| 久久久亚洲AV波多野结衣| 久久精品成人欧美大片| 久久国产一区二区| 狠狠狠色丁香婷婷综合久久俺| 7777精品久久久大香线蕉| 伊人色综合久久天天网| 亚洲精品无码久久久| 久久精品无码免费不卡| 狠狠人妻久久久久久综合| 人人狠狠综合久久亚洲88| 97久久精品无码一区二区| 国产69精品久久久久777| 99999久久久久久亚洲| 国产精品久久久久久搜索| 久久99国产精品久久99| 99久久精品国产一区二区三区 | 久久66热人妻偷产精品9| 精品久久久久久成人AV| 久久91精品国产91久久麻豆| 青青国产成人久久91网|