• <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++
            久久精品免费一区二区| 久久国产亚洲高清观看| 香蕉久久AⅤ一区二区三区| 久久丝袜精品中文字幕| 亚洲国产精品一区二区久久hs| 久久精品天天中文字幕人妻| 午夜精品久久久久久久无码| 久久精品国产亚洲AV无码娇色| 国产精品久久久久乳精品爆| 亚洲日本va中文字幕久久| 久久久久无码专区亚洲av| 91精品国产综合久久婷婷| 2021久久精品免费观看| 国内精品久久久久久久涩爱| 久久99精品久久久久婷婷| 国产精品久久久久a影院| 精品无码人妻久久久久久| 国产精品久久久久久久| 久久丫精品国产亚洲av不卡| 中文字幕久久精品| 女同久久| 欧美日韩成人精品久久久免费看| 久久久久四虎国产精品| 久久成人国产精品| 精品久久久久久成人AV| 色欲久久久天天天综合网精品| 久久只有这精品99| 一本久久免费视频| 久久亚洲精品国产亚洲老地址 | 久久国产成人亚洲精品影院| 99久久婷婷国产综合亚洲| 精品精品国产自在久久高清| 久久精品亚洲一区二区三区浴池 | 国内高清久久久久久| 亚洲精品无码久久毛片 | 久久99精品国产99久久| 国产精品久久久久aaaa| 国产三级观看久久| 午夜视频久久久久一区| 精品伊人久久大线蕉色首页| 99久久er这里只有精品18|