• <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 閱讀(287) 評論(0)  編輯 收藏 引用 所屬分類: C++
            国产精品无码久久四虎| 久久精品国产精品亚洲人人| 亚洲精品国精品久久99热一| 伊人久久大香线蕉AV色婷婷色| 欧美久久久久久| 久久精品国产99国产精偷| 26uuu久久五月天| 婷婷国产天堂久久综合五月| 久久精品九九亚洲精品| 国内精品久久久久国产盗摄| 久久伊人中文无码| 久久精品无码专区免费青青| 精品熟女少妇aⅴ免费久久| 国内高清久久久久久| 久久精品九九亚洲精品天堂| 中文字幕精品久久| 91久久精品国产成人久久| 亚洲精品蜜桃久久久久久| 久久这里只有精品视频99| 国产成人久久精品区一区二区| 伊人久久无码精品中文字幕| 热re99久久精品国产99热| 久久久久亚洲AV无码麻豆| 国内精品久久久久影院亚洲| 99热精品久久只有精品| 精品国际久久久久999波多野| 久久久网中文字幕| 国产精品午夜久久| 伊人丁香狠狠色综合久久| 男女久久久国产一区二区三区| 中文国产成人精品久久亚洲精品AⅤ无码精品 | 久久久久久免费视频| 九九久久精品无码专区| 国产亚洲婷婷香蕉久久精品| 人妻精品久久久久中文字幕一冢本| 欧美久久久久久午夜精品| 久久精品国产福利国产琪琪| 9191精品国产免费久久| 18岁日韩内射颜射午夜久久成人| 久久婷婷久久一区二区三区| 麻豆精品久久久一区二区|