zoukankan      html  css  js  c++  java
  • 第5 章: Windows Message Mapping 20080111 09:04 207人阅读 评论(0) 收藏

      

    5 : Windows Message Mapping

    いち.消息流程

             WM_CREATE

        first message to a view . use ONCreate 无法截获. OnInitalUpdate可以使用, but this function maybe use more than one time .

             WM_CLOSE

        OnClose to close the window, use CDocument::SaveModified for safe.

             WM_QUERYENDSESSION

        It is sure that many programs are  running when you want to close the windows. So, these session must be end before the windows are closed .

    And then , using WM_QUERYENDSESSION in OnQueryEndSession function.

             WM_DESTROY

        WM_DESTROY after WM_CLOSE .->OnDestroy.

        the view is visable but it and its child are still active.

        -> call base OnDestroy.

             WM_NCDESTROY

        last message before window destroyed.

        child has been destroyed .

        ->OnNCDestroy ->base OnNCDestroy.

        The 动态 view use PostNCDestroy.

    版权声明:本文为博主原创文章,未经博主允许不得转载。

  • 相关阅读:
    三数之和
    罗马数字与整数
    Oracle 开启或关闭归档
    Oracle RMAN scripts to delete archivelog
    Oracle check TBS usage
    Oracle kill locked sessions
    场景9 深入RAC运行原理
    场景7 Data Guard
    场景4 Data Warehouse Management 数据仓库
    场景5 Performance Management
  • 原文地址:https://www.cnblogs.com/deman/p/4716623.html
Copyright © 2011-2022 走看看