青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

隨筆 - 3  文章 - 3  trackbacks - 0
<2025年9月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用鏈接

留言簿(1)

隨筆分類

隨筆檔案

相冊

News

Program

搜索

  •  

最新評論

閱讀排行榜

評論排行榜

Superclassing is a technique that allows an application to create a new window class with the basic functionality of the existing class, plus enhancements provided by the application. A superclass is based on an existing window class called the base class. Frequently, the base class is a system global window class such as an edit control, but it can be any window class.

A superclass has its own window procedure, called the superclass procedure. The superclass procedure can take three actions upon receiving a message: It can pass the message to the original window procedure, modify the message and pass it to the original window procedure, or process the message and not pass it to the original window procedure. If the superclass procedure processes a message, it can do so before, after, or both before and after it passes the message to the original window procedure.

Unlike a subclass procedure, a superclass procedure can process window creation messages (WM_NCCREATE, WM_CREATE, and so on), but it must also pass them to the original base-class window procedure so that the base-class window procedure can perform its initialization procedure.

To superclass a window class, an application first calls the GetClassInfo function to retrieve information about the base class. GetClassInfo fills a WNDCLASS structure with the values from the WNDCLASS structure of the base class. Next, the application copies its own instance handle into the hInstance member of the WNDCLASS structure and copies the name of the superclass into the lpszClassName member. If the base class has a menu, the application must provide a new menu with the same menu identifiers and copy the menu name into the lpszMenuName member. If the superclass procedure processes the WM_COMMAND message and does not pass it to the window procedure of the base class, the menu need not have corresponding identifiers. GetClassInfo does not return the lpszMenuName, lpszClassName, or hInstance member of the WNDCLASS structure.

An application must also set the lpfnWndProc member of the WNDCLASS structure. The GetClassInfo function fills this member with the address of the original window procedure for the class. The application must save this address, to pass messages to the original window procedure, and then copy the address of the superclass procedure into the lpfnWndProc member. The application can, if necessary, modify any other members of the WNDCLASS structure. After it fills the WNDCLASS structure, the application registers the superclass by passing the address of the structure to the RegisterClass function. The superclass can then be used to create windows.

Because superclassing registers a new window class, an application can add to both the extra class bytes and the extra window bytes. The superclass must not use the original extra bytes for the base class or the window for the same reasons that an instance subclass or a global subclass should not use them. Also, if the application adds extra bytes for its use to either the class or the window instance, it must reference the extra bytes relative to the number of extra bytes used by the original base class. Because the number of bytes used by the base class may vary from one version of the base class to the next, the starting offset for the superclass's own extra bytes may also vary from one version of the base class to the next.

posted @ 2008-06-01 17:39 陳振輝 閱讀(369) | 評論 (0)編輯 收藏
         When you implement a modeless dialog box, always override the OnCancel member function and call DestroyWindow from within   it. Don’t call the base class CDialog::OnCancel, because it calls EndDialog, which will make the dialog box invisible but will not destroy it. 
         You should also override PostNcDestroy for modeless dialog boxes in order to delete this, since modeless dialog boxes are usually allocated with new. Modal dialog boxes are usually constructed on the frame and do not need PostNcDestroy cleanup.
posted @ 2008-04-14 10:19 陳振輝 閱讀(932) | 評論 (3)編輯 收藏

Z-Order

The z-order of a window indicates the window's position in a stack of overlapping windows. This window stack is oriented along an imaginary axis, the z-axis, extending outward from the screen. The window at the top of the z-order overlaps all other windows. The window at the bottom of the z-order is overlapped by all other windows.

The system maintains the z-order in a single list. It adds windows to the z-order based on whether they are topmost windows, top-level windows, or child windows. A topmost window overlaps all other non-topmost windows, regardless of whether it is the active or foreground window. A topmost window has the WS_EX_TOPMOST style. All topmost windows appear in the z-order before any non-topmost windows. A child window is grouped with its parent in z-order.

When an application creates a window, the system puts it at the top of the z-order for windows of the same type. You can use the BringWindowToTop function to bring a window to the top of the z-order for windows of the same type. You can rearrange the z-order by using the SetWindowPos and DeferWindowPos functions.

The user changes the z-order by activating a different window. The system positions the active window at the top of the z-order for windows of the same type. When a window comes to the top of z-order, so do its child windows. You can use the GetTopWindow function to search all child windows of a parent window and return a handle to the child window that is highest in z-order. The GetNextWindow function retrieves a handle to the next or previous window in z-order.

posted @ 2008-04-07 14:24 陳振輝| 編輯 收藏
僅列出標(biāo)題  
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            欧美在线视频导航| 日韩一级黄色av| 欧美中在线观看| 亚洲国产婷婷香蕉久久久久久99| 欧美一区二区福利在线| 欧美高清在线| 亚洲大片av| 欧美午夜视频一区二区| 久久综合图片| 久久精视频免费在线久久完整在线看| 一二三区精品福利视频| 亚洲精品资源| 亚洲欧美不卡| 久久久精品日韩| 欧美成人r级一区二区三区| 精品成人一区| 亚洲精品免费在线播放| 亚洲永久精品国产| 欧美精彩视频一区二区三区| 99视频+国产日韩欧美| 亚洲一区免费看| 久久婷婷国产麻豆91天堂| 欧美日韩黄色一区二区| 国产真实乱偷精品视频免| 亚洲精品中文字幕在线| 久久www成人_看片免费不卡| 亚洲欧美日韩综合aⅴ视频| 国产日韩欧美自拍| 午夜久久99| 欧美搞黄网站| 亚洲国产精品一区| 久热精品视频在线| 亚洲主播在线观看| 欧美成人午夜影院| 在线观看日产精品| 久久xxxx| 亚洲特级片在线| 国产精品久久久久天堂| 欧美成人一区二区在线| 国产自产在线视频一区| 欧美一级专区| 亚洲免费在线视频| 久久精品30| 国产精品对白刺激久久久| 亚洲欧美一区二区三区在线 | 国产乱码精品1区2区3区| 妖精成人www高清在线观看| 久热这里只精品99re8久| 久久成人18免费网站| 亚洲免费婷婷| 红桃视频国产精品| 亚洲第一区色| 国产欧美69| 欧美国产国产综合| 国产日韩欧美精品| 欧美激情亚洲另类| 欧美日韩三区四区| 看欧美日韩国产| 欧美人与性动交a欧美精品| 一区二区三区四区国产精品| 99在线热播精品免费| 亚洲中字在线| 香蕉久久精品日日躁夜夜躁| 亚洲欧美www| 日韩亚洲欧美一区| 欧美一级在线视频| 久热成人在线视频| 国产精品成人久久久久| 久久综合网hezyo| 国产精品一二三视频| 91久久午夜| 狠狠久久五月精品中文字幕| 亚洲激情影院| 亚洲国产导航| 久久精品30| 国产乱理伦片在线观看夜一区| 亚洲国产精品毛片| ●精品国产综合乱码久久久久| 精东粉嫩av免费一区二区三区| 一本一本大道香蕉久在线精品| 欧美日韩亚洲网| 亚洲三级免费| 欧美成人精品福利| 欧美激情亚洲| 日韩一区二区免费高清| 免费黄网站欧美| 亚洲人成在线观看| 蜜乳av另类精品一区二区| 久久精品日产第一区二区| 国产日韩欧美在线| 久久精品一区二区三区中文字幕 | 欧美在线不卡| 久久久久一本一区二区青青蜜月| 国产精品久久久久高潮| 午夜精品久久久久99热蜜桃导演| 国产精品一区一区| 亚洲国产成人不卡| 国产女优一区| 亚洲欧美国产精品va在线观看| 亚洲精品乱码久久久久久| 国产夜色精品一区二区av| 久久精品视频一| 亚洲国产欧洲综合997久久| 久久精品综合| 在线亚洲+欧美+日本专区| 久久久久久高潮国产精品视| 亚洲国产mv| 激情视频一区| 合欧美一区二区三区| 欧美日韩国语| 欧美日韩精品系列| 久久综合99re88久久爱| 亚洲欧美日韩在线一区| 亚洲三级视频| 亚洲日本中文字幕区| 在线电影一区| 亚洲欧美色婷婷| 亚洲欧美影音先锋| 欧美午夜美女看片| 欧美福利一区| 欧美波霸影院| 欧美成人免费在线观看| 久久尤物电影视频在线观看| 亚洲欧美伊人| 久久精品30| 欧美77777| 亚洲人成在线观看网站高清| 久久综合久久综合久久综合| 欧美一区二区日韩| 久久久视频精品| 欧美日韩亚洲一区在线观看| 日韩视频二区| 亚洲欧美日韩精品久久亚洲区| 91久久亚洲| 国产精品国产三级国产专区53| 欧美日韩免费在线视频| 国产精品一区二区黑丝| 亚洲国产精品一区制服丝袜| 亚洲日本成人在线观看| 亚洲欧美区自拍先锋| 国产日韩欧美日韩| 亚洲黄色免费电影| 亚洲欧美日韩国产另类专区| 一本久久综合亚洲鲁鲁五月天| 久久久久欧美精品| 午夜欧美视频| 国产精品久久久久久久久久ktv | 午夜视频在线观看一区二区| 久久久久久999| 一本久久a久久精品亚洲| 免费亚洲婷婷| 在线观看成人av| 国产一区二区三区高清| 亚洲国产精品福利| 美女国产一区| 欧美亚洲免费在线| 亚洲成人在线网站| 国产精品专区一| 亚洲视频网站在线观看| 欧美本精品男人aⅴ天堂| 久久精品国产亚洲aⅴ| 国产欧美在线观看| 久久精品日韩| 久久国内精品自在自线400部| 国产美女精品免费电影| 亚洲一区三区视频在线观看| 一区二区三区四区在线| 欧美日韩精品在线播放| 欧美日本免费一区二区三区| 国产主播在线一区| 亚洲高清在线观看| 欧美精品午夜视频| 欧美激情精品久久久久久久变态| 欧美成人国产va精品日本一级| 一本色道久久综合亚洲精品高清| 欧美va天堂va视频va在线| 日韩亚洲欧美综合| 亚洲欧美三级在线| 99精品视频免费| 香蕉久久精品日日躁夜夜躁| 国产区欧美区日韩区| 亚洲国产mv| 国产亚洲一级| 久久婷婷久久| 日韩视频一区二区在线观看| 欧美性色综合| 欧美国产激情| 国产区精品视频| 亚洲福利视频在线| 午夜精品一区二区在线观看 | 一区二区三区|亚洲午夜| 国产伦精品一区二区三区四区免费 | 伊人精品成人久久综合软件| 亚洲国产精品综合| 国产亚洲一本大道中文在线| 一区二区成人精品 | 黄色资源网久久资源365| 亚洲视频免费在线观看| 日韩网站在线| 欧美日韩一卡|