• <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 閱讀(295) 評論(0)  編輯 收藏 引用 所屬分類: C++
            国产一区二区精品久久凹凸| 国产香蕉久久精品综合网| 九九精品99久久久香蕉| 97久久超碰成人精品网站| 国内精品久久久久| 久久久久久国产a免费观看不卡 | 久久久久久精品无码人妻| 精品国产乱码久久久久久呢 | 丁香狠狠色婷婷久久综合| 国产成人精品久久亚洲| 久久大香萑太香蕉av| 欧美一区二区三区久久综合| 日本精品久久久久中文字幕8| 一本色道久久综合狠狠躁篇 | 青青草国产成人久久91网| 综合久久一区二区三区| 国产精品女同久久久久电影院| 国产精品熟女福利久久AV| 亚洲中文字幕久久精品无码APP| 久久综合综合久久97色| 久久久www免费人成精品| 久久综合久久综合九色| 麻豆成人久久精品二区三区免费| 久久久久久久久久免免费精品 | 韩国三级大全久久网站| 久久夜色精品国产亚洲| 久久久久婷婷| 久久精品这里只有精99品| 国产精品久久久久久| 人妻丰满AV无码久久不卡 | 99国产精品久久| 久久精品午夜一区二区福利| 亚洲精品tv久久久久久久久久| 久久精品无码一区二区三区日韩| 青青青国产精品国产精品久久久久 | 久久久久无码精品国产不卡| 久久无码专区国产精品发布 | 久久93精品国产91久久综合| 国产人久久人人人人爽| 久久99国产综合精品免费| 久久精品中文无码资源站|