• <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 閱讀(295) 評(píng)論(0)  編輯 收藏 引用 所屬分類: C++
            久久久久精品国产亚洲AV无码| 久久久精品国产Sm最大网站| 欧美日韩成人精品久久久免费看| 天天综合久久久网| 久久精品成人免费观看97| 国产午夜精品理论片久久影视| 国产精品成人久久久久久久| 欧美日韩成人精品久久久免费看| 久久久久亚洲精品男人的天堂| 伊人久久综合精品无码AV专区| 国产精品久久久久久| 女同久久| 久久综合给合久久狠狠狠97色 | 国产ww久久久久久久久久| 999久久久免费精品国产| 狠狠色伊人久久精品综合网| 久久青青草原亚洲av无码app| 激情久久久久久久久久| 一本一道久久a久久精品综合| 国产国产成人精品久久| 久久久精品波多野结衣| 国产精品久久久久天天影视| 久久久午夜精品| 香蕉aa三级久久毛片| 久久精品中文闷骚内射| 深夜久久AAAAA级毛片免费看| 99久久久精品| 2021久久精品国产99国产精品| 久久精品成人免费观看97| 久久久久久久亚洲精品| 日本久久久久久久久久| 综合人妻久久一区二区精品| 99久久精品这里只有精品| 亚洲色欲久久久综合网| 亚洲AV无码久久| 久久AⅤ人妻少妇嫩草影院| 久久精品国产欧美日韩99热| 国产精品免费久久久久电影网| 久久青青草原亚洲av无码app | 久久九九亚洲精品| 精品国产乱码久久久久久人妻|