• <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++
            综合久久国产九一剧情麻豆| 久久精品国产影库免费看| 欧美一级久久久久久久大片| 欧美亚洲日本久久精品| 国内精品伊人久久久久妇| 97久久国产亚洲精品超碰热| 国产精品午夜久久| 亚洲精品高清国产一线久久| 91精品国产高清久久久久久91| 欧美久久一区二区三区| 久久精品国产99久久无毒不卡| 久久www免费人成精品香蕉| 国内精品人妻无码久久久影院导航 | 亚洲中文字幕久久精品无码喷水| 中文精品久久久久人妻不卡| 久久这里只精品国产99热| 久久久久久久女国产乱让韩| 97久久精品无码一区二区天美| 伊人久久大香线蕉成人| 日韩欧美亚洲综合久久影院d3| 日本WV一本一道久久香蕉| 久久九色综合九色99伊人| 久久99精品久久久久久动态图| 欧美成a人片免费看久久| 亚洲国产二区三区久久| AV无码久久久久不卡蜜桃| 久久人人爽人人爽人人片av麻烦| 99久久无码一区人妻| 国产精品久久久久影院色| 精品国际久久久久999波多野| 亚洲中文字幕久久精品无码喷水 | 日本WV一本一道久久香蕉| 亚洲综合精品香蕉久久网97| 久久久久人妻一区二区三区vr| 色天使久久综合网天天| 伊人久久精品影院| 亚洲国产天堂久久综合| 一本大道久久香蕉成人网| 久久综合久久综合亚洲| 一本大道久久香蕉成人网| 久久人人爽人人爽人人片AV东京热 |