• <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++
            97精品国产91久久久久久| 欧洲性大片xxxxx久久久| 久久婷婷五月综合国产尤物app| 国色天香久久久久久久小说| 99久久中文字幕| 久久伊人精品青青草原日本| 亚洲AV无码久久| 国产免费福利体检区久久| 亚洲午夜福利精品久久| 99久久99久久精品免费看蜜桃| 久久亚洲欧洲国产综合| 国产精品久久久久jk制服| 久久天天躁狠狠躁夜夜2020| 97久久综合精品久久久综合| 久久亚洲精品国产亚洲老地址 | 老司机午夜网站国内精品久久久久久久久| 久久亚洲色一区二区三区| 久久综合综合久久97色| 久久人妻少妇嫩草AV蜜桃| 久久精品综合一区二区三区| 久久天堂AV综合合色蜜桃网| 精品无码久久久久国产动漫3d| 精品久久久久一区二区三区 | 久久人与动人物a级毛片| 青青青伊人色综合久久| 久久精品毛片免费观看| 综合久久国产九一剧情麻豆| 欧美亚洲另类久久综合婷婷 | 亚洲av伊人久久综合密臀性色| 2021国内精品久久久久久影院| 久久亚洲2019中文字幕| 久久亚洲AV永久无码精品| 久久国产香蕉一区精品| 久久国产精品国语对白| 情人伊人久久综合亚洲| 97精品伊人久久久大香线蕉| 久久精品国产免费一区| 国产精品亚洲美女久久久| 久久国产成人亚洲精品影院| 久久成人精品| 人妻无码αv中文字幕久久琪琪布|