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

隨筆 - 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>
            免费观看30秒视频久久| 中文精品视频| 玖玖精品视频| 一区二区三区在线看| 欧美一级视频免费在线观看| 亚洲午夜精品一区二区三区他趣| 欧美激情片在线观看| 亚洲国产精品高清久久久| 午夜国产精品视频| 欧美中在线观看| 影音先锋中文字幕一区| 欧美精品一区二区三区视频| 在线一区二区三区四区五区| 久久久久久色| 99综合在线| 国产欧美日韩三级| 裸体丰满少妇做受久久99精品 | 激情视频一区| 亚洲黄色影片| 国产欧美日韩另类视频免费观看| 国产麻豆视频精品| 欧美经典一区二区三区| 欧美色视频在线| 久久久久www| 老牛影视一区二区三区| 欧美激情一区在线观看| 久久av二区| 欧美激情免费观看| 亚洲欧美高清| 亚洲神马久久| 久久色在线观看| 久久久999精品视频| 欧美精品国产| 国内精品久久久久影院 日本资源 国内精品久久久久伊人av | 中文精品一区二区三区| 久久精品一区| 久久精品国产一区二区三区| 中日韩美女免费视频网址在线观看| 欧美一区成人| 校园激情久久| 亚洲网站在线看| 一区二区三区精品视频在线观看| 亚洲黄色免费网站| 午夜精品亚洲一区二区三区嫩草| 99国产精品久久久久久久| …久久精品99久久香蕉国产| 在线不卡中文字幕播放| 亚洲欧美视频一区二区三区| 欧美成人高清| 亚洲高清在线观看| 亚洲激情专区| 亚洲日本视频| 亚洲久久成人| 亚洲精品国产精品乱码不99| 欧美夜福利tv在线| 欧美日韩亚洲系列| 国产精品久久久久毛片软件| 国产精品成人aaaaa网站| 蜜臀va亚洲va欧美va天堂| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久 | 亚洲精品中文字幕在线观看| 久久九九有精品国产23| 国产欧美一区二区三区久久人妖 | 狠狠色丁香婷婷综合影院| 国产欧美一区视频| 亚洲一区二区三区精品在线观看| 91久久香蕉国产日韩欧美9色| 久久全球大尺度高清视频| 国产午夜精品在线观看| 亚洲国产精品一区二区久| 一本高清dvd不卡在线观看| 欧美激情第二页| 欧美成人高清视频| 国产精品日韩二区| 国语自产偷拍精品视频偷| 久久成年人视频| 欧美一二三区在线观看| 国产日韩欧美一区二区三区在线观看 | 欧美+日本+国产+在线a∨观看| 羞羞视频在线观看欧美| 久久综合九色综合网站| 欧美日韩国产123区| 国产一区二区三区四区老人| 日韩午夜精品| 99热这里只有成人精品国产| 欧美中文字幕| 国产精品激情| 久久国产精品一区二区三区四区 | 亚洲精品乱码久久久久久黑人| 欧美激情视频一区二区三区在线播放| 亚洲精选视频免费看| 亚洲欧美日韩视频二区| 久久亚洲电影| 亚洲小少妇裸体bbw| 国产午夜精品一区二区三区欧美 | 亚洲激情视频网站| 亚洲一区二区三区四区中文 | 亚洲欧美伊人| 国产亚洲精品久久久| 欧美国产高潮xxxx1819| 夜夜嗨av色综合久久久综合网| 亚洲国产综合91精品麻豆| 欧美精品久久一区二区| 亚洲欧美日韩系列| 欧美一级成年大片在线观看| 国内精品久久久久久久影视蜜臀 | 欧美一区激情| 欧美.日韩.国产.一区.二区| 国产美女搞久久| 欧美国产视频在线| 国产精品久久999| 欧美电影免费观看网站| 欧美色道久久88综合亚洲精品| 乱中年女人伦av一区二区| 欧美视频手机在线| 国产女人18毛片水18精品| 欧美韩日一区二区| 欧美性片在线观看| 亚洲国产精品久久久久| 国产精品午夜电影| 亚洲精品一区在线| 狠狠干综合网| 香蕉久久夜色精品国产使用方法| 夜夜爽99久久国产综合精品女不卡| 性18欧美另类| 亚洲午夜一区二区| 欧美韩国一区| 亚洲缚视频在线观看| 日韩午夜激情av| 欧美日韩国产精品一卡| 欧美在线亚洲| 欧美日韩国产综合视频在线观看 | 亚洲视频第一页| 亚洲国产精品久久久久婷婷884| 亚洲摸下面视频| 亚洲欧美日韩在线观看a三区| 麻豆精品视频在线| 久久尤物电影视频在线观看| 国产日韩欧美一区二区三区在线观看 | 亚洲国产精品毛片| 久久9热精品视频| 久久精品国产一区二区三区| 欧美体内谢she精2性欧美| 最新国产精品拍自在线播放| 亚洲国产高清在线观看视频| 亚洲欧美成人综合| 性色av香蕉一区二区| 国产精品普通话对白| 在线视频欧美一区| 亚洲一区影音先锋| 久久久久欧美| 亚洲私人影院在线观看| 久久综合图片| 免费欧美日韩| 亚洲国产1区| 欧美成人资源网| 亚洲精品一级| 午夜精品国产更新| 国际精品欧美精品| 毛片av中文字幕一区二区| 欧美激情国产高清| 亚洲精品一区中文| 欧美日本亚洲视频| 亚洲在线视频观看| 久久亚洲春色中文字幕| 亚洲精品在线观| 国产精品劲爆视频| 久久久久久高潮国产精品视| 亚洲福利久久| 亚洲网友自拍| 激情综合激情| 欧美精品色网| 性欧美大战久久久久久久免费观看| 久久在线观看视频| 一区二区欧美亚洲| 国产在线精品自拍| 午夜视频一区在线观看| 日韩视频免费观看高清在线视频| 久久av红桃一区二区小说| 欧美黄网免费在线观看| 欧美日韩中文另类| 亚洲片在线资源| 国产精品一区久久久| 国产三区精品| 99人久久精品视频最新地址| 亚洲国产天堂久久综合网| 亚洲午夜电影网| 久久亚洲一区二区| 国产午夜精品福利| 久久精品国产亚洲精品| 亚洲精品自在久久| 99re热这里只有精品视频| 国产一区二区毛片| 欧美视频在线看| 久久九九热re6这里有精品| 狂野欧美激情性xxxx| 欧美日韩精品在线视频| 久久久久国产成人精品亚洲午夜| 久久久999国产| 亚洲午夜国产成人av电影男同|