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

隨筆 - 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 陳振輝| 編輯 收藏
僅列出標題  
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            一二三区精品| 亚洲欧洲日本专区| 老妇喷水一区二区三区| 亚洲人成网站在线观看播放| 亚洲美女一区| 欧美午夜a级限制福利片| 久久超碰97中文字幕| 亚洲国产精品精华液网站| 性欧美办公室18xxxxhd| 国产精品一页| 欧美激情四色 | 久久国产精品第一页| 亚洲视频一区二区| 国产精品一区久久| 麻豆精品视频在线| 久久午夜视频| 午夜激情久久久| 亚洲精品少妇网址| 亚洲区一区二区三区| 欧美高清视频免费观看| 亚洲一区精品视频| 一区二区电影免费观看| 亚洲美女中文字幕| 亚洲女性裸体视频| 欧美成人免费大片| 亚洲精品乱码久久久久| 在线一区二区视频| 亚洲国产精品va| 欧美精品一区二区精品网 | 欧美日韩久久精品| 一区二区三区黄色| 久久久国产精品一区| 亚洲人成亚洲人成在线观看图片| 欧美日韩理论| 欧美freesex8一10精品| 亚洲小少妇裸体bbw| 久久久久久高潮国产精品视| 激情视频一区二区| 久久在线免费视频| 性做久久久久久免费观看欧美 | 亚洲人成亚洲人成在线观看图片 | 亚洲精品字幕| 亚洲视频免费看| 樱桃视频在线观看一区| 欧美日韩精品综合| 欧美在线播放一区| 亚洲美女一区| 亚洲第一视频| 久久久久久久成人| 亚洲欧美成aⅴ人在线观看| 亚洲精品视频免费观看| 国产亚洲一本大道中文在线| 国产精品夜夜夜一区二区三区尤| 久久漫画官网| 午夜激情一区| 欧美伊人久久久久久午夜久久久久 | 在线视频中文亚洲| 欧美午夜精品理论片a级大开眼界 欧美午夜精品理论片a级按摩 | 日韩一级成人av| 性欧美video另类hd性玩具| 亚洲国产欧美一区二区三区丁香婷| 99热免费精品在线观看| 一本到12不卡视频在线dvd| 欧美日韩精品免费观看视一区二区| 免费高清在线视频一区·| 有码中文亚洲精品| 久久久五月天| 蜜桃av噜噜一区二区三区| 一区二区三区自拍| 老色批av在线精品| 日韩午夜电影av| 亚洲天堂av在线免费观看| 欧美日韩成人在线视频| 亚洲视频电影在线| 久久亚洲综合网| 亚洲日本va午夜在线影院| 久久亚洲欧美| 午夜免费电影一区在线观看| 午夜欧美视频| 亚洲高清电影| 国产精品中文在线| 久久亚洲私人国产精品va媚药| 噜噜噜91成人网| 在线观看欧美成人| 欧美高清视频一二三区| 欧美日韩妖精视频| 亚洲国产成人久久综合一区| 免费不卡中文字幕视频| 一本大道久久a久久综合婷婷| 久久精品主播| 中日韩美女免费视频网站在线观看| 免费不卡中文字幕视频| 亚洲天堂成人在线观看| 欧美大片免费久久精品三p| 亚洲一区久久久| 日韩亚洲欧美在线观看| 亚洲二区视频在线| 国产欧美视频一区二区三区| 欧美午夜电影一区| 欧美大片第1页| 欧美在线视频网站| 亚洲视频在线看| 欧美成人第一页| 久久免费的精品国产v∧| 99精品免费| 在线看成人片| 最近中文字幕mv在线一区二区三区四区| 欧美性猛交xxxx乱大交蜜桃| 欧美午夜精品久久久久久人妖| 欧美高清在线一区二区| 欧美第十八页| 国产精品久久二区| 欧美日韩黄视频| 国产精品毛片大码女人| 欧美日一区二区三区在线观看国产免| 欧美色图五月天| 国产精品一区二区三区四区五区| 国产欧美午夜| 国产情侣一区| 国产一区二区三区av电影| 在线观看不卡| 日韩视频永久免费| 一区二区三区黄色| 欧美在线视频播放| 欧美激情一区二区三区全黄 | 午夜精品久久| 一区二区不卡在线视频 午夜欧美不卡在 | 国产一级一区二区| 国产精品超碰97尤物18| 国产一区二区成人久久免费影院| 麻豆av一区二区三区久久| 欧美一区二区三区免费看| 久久女同精品一区二区| 亚洲国产精品久久久久久女王| 中国成人黄色视屏| 美女亚洲精品| 欧美日韩在线第一页| 亚洲国产精品毛片| 亚洲欧美日产图| 亚洲国产黄色| 欧美在线一级va免费观看| 欧美午夜电影在线| 亚洲国产91| 免费一级欧美在线大片| 亚洲一区二区在| 欧美日韩一区二区在线观看| 在线精品国产欧美| 久久婷婷一区| 欧美在线精品一区| 国产欧美日韩三区| 亚洲欧美色婷婷| 亚洲免费人成在线视频观看| 欧美日本精品在线| 中日韩视频在线观看| 亚洲精品美女在线观看播放| 欧美成人免费全部| 亚洲一区二区三区四区中文| 欧美日韩123| 99精品国产在热久久| 日韩午夜黄色| 欧美视频网站| 性色av一区二区三区| 亚洲欧美制服中文字幕| 国产精品美女久久久| 欧美怡红院视频一区二区三区| 国内外成人免费激情在线视频网站 | 国产亚洲欧洲| 久久精品亚洲| 久久久久国内| 999在线观看精品免费不卡网站| 99精品福利视频| 狠狠色狠狠色综合日日91app| 久久一区视频| 欧美日韩午夜剧场| 久久se精品一区精品二区| 久久大综合网| 中文一区在线| 久久精品中文字幕一区| 亚洲欧洲日产国码二区| 亚洲尤物精选| 亚洲人成高清| 欧美亚洲三区| 亚洲一区二区毛片| 久久久精品国产免费观看同学| 日韩一级大片在线| 久久人人爽爽爽人久久久| 亚洲视频一区二区| 免费成人高清| 久久久久久久久蜜桃| 美女啪啪无遮挡免费久久网站| 亚洲在线视频一区| 另类尿喷潮videofree| 制服丝袜亚洲播放| 猛干欧美女孩| 欧美成人午夜| 欧美中文字幕不卡| 亚洲国产综合在线看不卡| 亚洲影院免费观看| 亚洲视频在线二区| 夜夜夜精品看看|