• <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 閱讀(385) 評論(0)  編輯 收藏 引用 所屬分類: C++
            国产AV影片久久久久久| 丁香五月综合久久激情| 2020国产成人久久精品| 久久只这里是精品66| 亚洲精品国产字幕久久不卡| 久久久久久亚洲AV无码专区| 91精品免费久久久久久久久| 婷婷久久综合| 好久久免费视频高清| 综合久久久久久中文字幕亚洲国产国产综合一区首 | 国产欧美一区二区久久| 91久久精品视频| 99久久国产宗和精品1上映 | 久久久久18| 色妞色综合久久夜夜| 久久免费观看视频| 久久ZYZ资源站无码中文动漫| 久久99久久无码毛片一区二区| 亚洲AV日韩精品久久久久久| 久久久久国产成人精品亚洲午夜| 久久综合给合久久国产免费| 久久精品国产国产精品四凭| 久久夜色tv网站| 丰满少妇人妻久久久久久| 久久国产色av免费看| 久久精品成人免费国产片小草| 国产精品一久久香蕉国产线看观看| 一本久久a久久精品综合香蕉 | 久久久久久国产精品美女| 2021久久精品国产99国产精品| 久久精品日日躁夜夜躁欧美| 性做久久久久久免费观看| 久久国产精品免费| 久久精品成人欧美大片| 热久久国产精品| 情人伊人久久综合亚洲| 久久综合综合久久97色| 国产亚洲精久久久久久无码AV| 久久这里只有精品首页| 国产精品美女久久久网AV| 久久久中文字幕|