• <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++
            av无码久久久久不卡免费网站| 国产免费久久精品99久久| 久久狠狠爱亚洲综合影院| 久久青青草原亚洲av无码app| 久久97精品久久久久久久不卡| 大伊人青草狠狠久久| 欧洲性大片xxxxx久久久| 久久久久人妻精品一区二区三区| 久久久久国产一级毛片高清版| 久久夜色撩人精品国产小说| 精品国产乱码久久久久久1区2区 | 99久久精品国产高清一区二区 | 国产欧美久久一区二区| 日日狠狠久久偷偷色综合0| 国产产无码乱码精品久久鸭| 伊人久久精品影院| 久久九色综合九色99伊人| 久久精品a亚洲国产v高清不卡| 久久青青草原精品国产不卡| 久久国产乱子精品免费女| 无码AV中文字幕久久专区| 久久一区二区三区99| 色综合久久88色综合天天 | 久久中文字幕人妻丝袜| 国产免费久久久久久无码| 99久久精品日本一区二区免费| 99久久国产宗和精品1上映| 成人综合久久精品色婷婷| 久久久久国色AV免费看图片| 国产高清美女一级a毛片久久w| 99久久这里只有精品| 国内精品久久久久影院免费| 久久久久亚洲AV无码专区体验| 久久综合给久久狠狠97色| 久久综合给合久久狠狠狠97色| 欧美精品国产综合久久| 国内精品久久久久影院亚洲| 亚洲精品无码专区久久久| 久久婷婷五月综合成人D啪 | 曰曰摸天天摸人人看久久久| 久久99精品国产|