• <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++
            久久综合综合久久综合| 99久久香蕉国产线看观香| 亚洲熟妇无码另类久久久| 亚洲午夜久久久久久久久电影网| 久久天天躁狠狠躁夜夜avapp| a级毛片无码兔费真人久久| 久久人人爽人人人人爽AV| 国产一级持黄大片99久久| 久久久久高潮综合影院| 国产福利电影一区二区三区久久老子无码午夜伦不| 久久996热精品xxxx| 国产精品久久久久久福利漫画| 区亚洲欧美一级久久精品亚洲精品成人网久久久久 | 精品无码久久久久国产动漫3d| 国产精品免费福利久久| 午夜视频久久久久一区 | 久久久无码人妻精品无码| 国产成人久久精品麻豆一区| 欧美丰满熟妇BBB久久久| 日日狠狠久久偷偷色综合免费 | 久久久精品人妻一区二区三区四| 久久久久国产精品嫩草影院| 久久久久亚洲av无码专区喷水| 久久伊人色| 精品水蜜桃久久久久久久| 国产精品99久久免费观看| 香蕉久久夜色精品升级完成| 亚洲国产综合久久天堂| 久久久中文字幕日本| 国产高清国内精品福利99久久 | 久久99精品久久久久久野外 | 久久久WWW成人| 国产精品免费看久久久香蕉| 97超级碰碰碰碰久久久久 | 伊色综合久久之综合久久| 久久伊人中文无码| 性做久久久久久久久老女人| 亚洲国产天堂久久综合| 久久亚洲精品成人无码网站| 97久久国产综合精品女不卡| 久久久久亚洲AV无码专区体验|