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

隨筆 - 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| 欧美顶级少妇做爰| 日韩视频免费看| 亚洲欧美日韩国产一区二区三区| 亚洲欧美精品在线观看| 久久国产精品一区二区三区四区| 久久久欧美一区二区| 免费看成人av| 欧美午夜精品电影| 黄色精品网站| 亚洲精品一区二区在线| 亚洲一区二区影院| 久久视频在线免费观看| 欧美国产精品va在线观看| 一卡二卡3卡四卡高清精品视频| 欧美一区二区播放| 欧美日韩精品福利| 国产一区999| 一区二区日韩伦理片| 久久九九热免费视频| 亚洲日本欧美天堂| 亚洲一区二区三区精品视频| 久久蜜桃香蕉精品一区二区三区| 欧美日韩国产天堂| 影音先锋中文字幕一区| 亚洲一区二区在线看| 欧美国产在线观看| 性一交一乱一区二区洋洋av| 欧美日韩国产成人高清视频| 一区精品在线播放| 午夜久久福利| 日韩午夜免费| 久久最新视频| 狠狠色狠狠色综合日日91app| 一级日韩一区在线观看| 免费永久网站黄欧美| 午夜精品久久久久久久久久久久久 | 亚洲系列中文字幕| 久久综合99re88久久爱| 亚洲视频电影图片偷拍一区| 噜噜噜噜噜久久久久久91| 国产人成一区二区三区影院| 正在播放亚洲| 欧美激情一区二区三区不卡| 久久经典综合| 国内精品久久久久影院色| 亚欧美中日韩视频| 亚洲一区二区三区四区五区午夜| 亚洲第一色中文字幕| 久久久亚洲成人| 一区二区三区久久久| 欧美激情aⅴ一区二区三区| 依依成人综合视频| 裸体一区二区三区| 久久精品国产亚洲一区二区三区| 国产欧美亚洲精品| 欧美亚洲日本一区| 亚洲综合精品四区| 国产午夜精品久久久| 欧美伊久线香蕉线新在线| 亚洲一区二区三区中文字幕| 国产精品第13页| 亚洲一区二区免费在线| 夜夜嗨av一区二区三区中文字幕 | 欧美激情国产日韩精品一区18| 精品99视频| 欧美暴力喷水在线| 免费欧美日韩国产三级电影| 亚洲激情视频网| 亚洲乱码视频| 国产精品jvid在线观看蜜臀| 午夜国产不卡在线观看视频| 亚洲一区在线视频| 娇妻被交换粗又大又硬视频欧美| 久久米奇亚洲| 美日韩精品免费| 一本色道久久综合亚洲91| 亚洲一区二区黄色| 精品1区2区3区4区| 亚洲欧洲精品一区二区三区不卡 | 亚洲国产精品va在线看黑人| 欧美日韩人人澡狠狠躁视频| 亚洲综合99| 久久精品国内一区二区三区| 亚洲美女福利视频网站| 亚洲午夜在线观看| 亚洲国产成人精品久久| 日韩图片一区| 狠狠干综合网| 亚洲激情国产精品| 国产欧美一区视频| 亚洲欧洲一二三| 国产麻豆日韩欧美久久| 欧美激情四色| 国产九色精品成人porny| 欧美v亚洲v综合ⅴ国产v| 国产精品国产精品| 亚洲国产精品va在线看黑人动漫| 国产伦理精品不卡| 亚洲日本乱码在线观看| 国产在线高清精品| 亚洲最新在线视频| 亚洲国产欧美日韩| 亚洲欧美国产毛片在线| 亚洲毛片在线看| 国产精品二区在线| 久久米奇亚洲| 欧美日韩视频一区二区| 久久久久久久网| 欧美午夜精品伦理| 欧美激情视频一区二区三区免费| 国产农村妇女毛片精品久久麻豆| 亚洲国产精品日韩| 在线看视频不卡| 欧美一级视频一区二区| 亚洲在线电影| 欧美激情二区三区| 美日韩精品视频免费看| 国产精品视频最多的网站| 亚洲精品一区在线观看| 91久久国产自产拍夜夜嗨| 性久久久久久久| 午夜精品短视频| 欧美日韩在线观看一区二区| 亚洲国产小视频在线观看| 亚洲国产精品福利| 媚黑女一区二区| 欧美激情四色| 亚洲精品在线一区二区| 女人色偷偷aa久久天堂| 欧美激情一区二区三区蜜桃视频 | 伊人久久大香线蕉综合热线| 国产九区一区在线| 国产日韩精品一区二区浪潮av| 欧美另类亚洲| 久久久久国产一区二区三区| 久久精品国产亚洲一区二区| 亚洲片区在线| 日韩五码在线| 欧美日韩www| 欧美日韩综合| 欧美日韩一级片在线观看| 久久国产高清| 欧美fxxxxxx另类| 欧美韩国日本一区| 亚洲另类一区二区| 欧美日韩国产在线看| 亚洲免费电影在线| 亚洲女女女同性video| 国产欧美 在线欧美| 久久成人18免费网站| 欧美成人精品1314www| 亚洲人成在线播放| 国产精品爱久久久久久久| 午夜精品短视频| 免费影视亚洲| 亚洲一二三级电影| 国产三区二区一区久久 | 亚洲一区三区电影在线观看| 久久精品99国产精品| 亚洲电影毛片| 欧美日韩一区二区在线| 亚洲新中文字幕| 久久精品视频导航| 亚洲人妖在线| 欧美乱妇高清无乱码| 亚洲免费网址| 欧美激情第一页xxx| 中文av一区二区| 国产亚洲精品高潮| 欧美精品黄色| 亚洲欧美激情视频| 亚洲黑丝一区二区| 欧美一区二区三区成人| 亚洲激情专区| 国产精品夜夜嗨| 女主播福利一区| 欧美一区二区三区免费看 | 久久国产精品免费一区| 亚洲片国产一区一级在线观看| 国产精品久久网站| 久久美女艺术照精彩视频福利播放| 99视频有精品| 免费亚洲一区| 久久精品伊人| 亚洲欧美日韩系列| av成人国产| 亚洲狠狠婷婷| 黄色av日韩| 国产视频精品va久久久久久| 欧美日韩成人综合| 欧美成人xxx| 久久久久久穴| 欧美中文在线视频| 亚洲网站视频福利|