• <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

            There are three main categories:
            1、Command message:
            This includes WM_COMMAND notification messages from user-interface objects: menus, toolbar buttons, and accelerator keys.(digested from msdn)
            for example:
            ?Add click event handler to menuitem about, the MFC generate automatically three lines code( macro definition: ON_COMMAND(ID_HELP_ABOUT, OnAbout) in .cpp?file , event handle function: void CCapturePacketDlg::OnAbout()? in .cpp file, and event handle function's declaration: void OnAbout() in .h file), the macro ON_COMMAND(ID_HELP_ABOUT, OnAbout) depresent:??{ WM_COMMAND, CN_COMMAND, (WORD)id, (WORD)id, AfxSigCmd_v, static_cast<AFX_PMSG> (memberFxn) }, among therm, WM_COMMAND is message id, and is also Command message.
            2、Windows messages
            This includes primarily those messages beginning with the WM_ prefix, except for WM_COMMAND. Windows messages are handled by windows and views. These messages often have parameters that are used in determining how to handle the message.(digested by msdn)
            for example:
            Add event handle function OnHotkey() witch responds to Alt + F5 to show or hide the main window. I don't kown how use MFC to add the event code automatically, so i add code into three places( macro definition: ON_MESSAGE(WM_HOTKEY, OnHotkey) in .cpp?file , event handle function: LRESULT CCapturePacketDlg::OnHotkey(WPARAM wp,LPARAM lp) in .cpp file, and event handle function's declaration: LRESULT OnHotkey(WPARAM wp,LPARAM lp) in .h file). But how does the application responde?to Alt + F5? we must register the hot key, so i can call API RegisterHotKey in my dialog class's OnInitDialog function.
            3、Control notifications
            Sorry, so far, i have used it.

            posted on 2006-06-18 14:19 citywanderer 閱讀(402) 評論(0)  編輯 收藏 引用 所屬分類: C++
            伊人久久大香线蕉无码麻豆| 久久天天躁狠狠躁夜夜avapp| 97久久精品人人澡人人爽| 久久国产一片免费观看| 久久亚洲精品无码aⅴ大香| 人妻精品久久无码区| 久久99精品久久久久久秒播| 婷婷综合久久中文字幕蜜桃三电影| 一本一道久久精品综合| 日本强好片久久久久久AAA| 久久久噜噜噜久久| 品成人欧美大片久久国产欧美| 人妻少妇久久中文字幕一区二区| 久久精品综合一区二区三区| 91精品国产高清久久久久久io | 欧洲成人午夜精品无码区久久| 国产精品无码久久四虎| 91视频国产91久久久| 亚洲国产精品无码久久久不卡| 久久精品国产亚洲5555| 久久国产乱子精品免费女| 久久综合88熟人妻| 性色欲网站人妻丰满中文久久不卡 | 久久人人爽人人爽AV片| 国产精品成人久久久久三级午夜电影 | 婷婷久久久亚洲欧洲日产国码AV| 久久夜色精品国产噜噜亚洲a | 久久精品国产久精国产思思| 久久久久亚洲av成人网人人软件 | 亚洲国产精品成人久久| 亚洲精品无码久久久久去q| 伊人久久大香线蕉av一区| 免费久久人人爽人人爽av| 亚洲人成无码网站久久99热国产| 日韩久久无码免费毛片软件| 国产亚洲精午夜久久久久久| 成人精品一区二区久久久| 久久精品中文字幕有码| 亚洲一区精品伊人久久伊人| 久久人人爽人人爽人人爽 | 无码任你躁久久久久久久|