• <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 閱讀(392) 評論(0)  編輯 收藏 引用 所屬分類: C++
            久久99热这里只有精品国产| 久久久久无码精品| 久久精品亚洲精品国产色婷| 国产成人久久精品一区二区三区| 69国产成人综合久久精品| 麻豆精品久久精品色综合| 久久强奷乱码老熟女| 国产亚洲精品久久久久秋霞| 99久久精品午夜一区二区| 久久丝袜精品中文字幕| 午夜天堂av天堂久久久| 久久免费高清视频| 99久久99久久精品国产片果冻| 久久婷婷五月综合色奶水99啪 | 久久99国产精品成人欧美| 久久久久久久久66精品片| 久久久久国产精品熟女影院| 久久夜色精品国产www| 好久久免费视频高清| 久久久久久久久久久精品尤物| 丰满少妇人妻久久久久久4| 久久精品人人做人人爽电影| 国产成人无码精品久久久久免费| 无码精品久久久天天影视| 国产精品久久久久久久久久影院 | 色8激情欧美成人久久综合电| 精品久久久久久成人AV| 久久国产欧美日韩精品| 久久综合视频网站| 久久国产视频网| 国产精品成人99久久久久| 91精品国产综合久久精品| 日韩乱码人妻无码中文字幕久久 | 久久人人爽人人爽人人片AV麻烦| 国内精品久久久久久久影视麻豆 | 精品欧美一区二区三区久久久| 久久精品国产亚洲AV无码麻豆 | 久久久久久久久久久| 一本大道久久东京热无码AV| 久久影院午夜理论片无码 | 亚洲精品无码久久千人斩|