• <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++博客 聯(lián)系 聚合 管理  

            Blog Stats

            文章分類(17)

            收藏夾(2)

            文章檔案(18)

            相冊(cè)

            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 閱讀(304) 評(píng)論(0)  編輯 收藏 引用 所屬分類: C++
            亚洲欧美精品一区久久中文字幕| 精品无码久久久久久久动漫| 香蕉久久夜色精品升级完成 | 久久精品这里热有精品| 国产L精品国产亚洲区久久| 少妇被又大又粗又爽毛片久久黑人| 久久AV高潮AV无码AV| 91精品国产高清久久久久久国产嫩草| 久久久久99这里有精品10| 香蕉久久一区二区不卡无毒影院| 日韩人妻无码一区二区三区久久99| 久久er国产精品免费观看2| 欧美无乱码久久久免费午夜一区二区三区中文字幕 | 久久精品无码一区二区三区日韩| 久久综合久久自在自线精品自| 久久涩综合| 7国产欧美日韩综合天堂中文久久久久| 综合人妻久久一区二区精品| 国内精品久久久久久久亚洲| 久久精品国产亚洲沈樵| 精品久久久久久成人AV| 中文无码久久精品| 久久99精品国产麻豆宅宅| 模特私拍国产精品久久| 亚洲欧美另类日本久久国产真实乱对白| 亚洲国产精品久久66| 品成人欧美大片久久国产欧美...| 99精品国产在热久久 | 久久成人精品| 久久久99精品一区二区| 狠狠色综合久久久久尤物| 欧美精品一区二区精品久久| 久久成人国产精品二三区| 天天久久狠狠色综合| 久久久久久狠狠丁香| 亚洲天堂久久精品| 久久精品亚洲福利| 亚洲国产天堂久久久久久| 日韩中文久久| 亚洲精品乱码久久久久久| 国产精品久久久久国产A级|