锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久国内精品视频,亚洲国产高清aⅴ视频,欧美成人精品一区http://m.shnenglu.com/zhcen/C/C++zh-cnSat, 23 Aug 2025 14:14:26 GMTSat, 23 Aug 2025 14:14:26 GMT60Window Superclassinghttp://m.shnenglu.com/zhcen/archive/2008/06/01/51768.html闄堟尟杈?/dc:creator>闄堟尟杈?/author>Sun, 01 Jun 2008 09:39:00 GMThttp://m.shnenglu.com/zhcen/archive/2008/06/01/51768.htmlhttp://m.shnenglu.com/zhcen/comments/51768.htmlhttp://m.shnenglu.com/zhcen/archive/2008/06/01/51768.html#Feedback0http://m.shnenglu.com/zhcen/comments/commentRss/51768.htmlhttp://m.shnenglu.com/zhcen/services/trackbacks/51768.htmlSuperclassing 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.



]]>
Destroy modeless dialog boxhttp://m.shnenglu.com/zhcen/archive/2008/04/14/47017.html闄堟尟杈?/dc:creator>闄堟尟杈?/author>Mon, 14 Apr 2008 02:19:00 GMThttp://m.shnenglu.com/zhcen/archive/2008/04/14/47017.htmlhttp://m.shnenglu.com/zhcen/comments/47017.htmlhttp://m.shnenglu.com/zhcen/archive/2008/04/14/47017.html#Feedback3http://m.shnenglu.com/zhcen/comments/commentRss/47017.htmlhttp://m.shnenglu.com/zhcen/services/trackbacks/47017.htmlWhen 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.

]]>
Z-Orderhttp://m.shnenglu.com/zhcen/archive/2008/04/07/zhcen20080408.html闄堟尟杈?/dc:creator>闄堟尟杈?/author>Mon, 07 Apr 2008 06:24:00 GMThttp://m.shnenglu.com/zhcen/archive/2008/04/07/zhcen20080408.htmlZ-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.



]]>
久久亚洲AV无码西西人体| 奇米影视7777久久精品| 久久精品亚洲福利| 久久久久se色偷偷亚洲精品av| 久久久噜噜噜www成人网| 成人亚洲欧美久久久久 | 国内精品久久久久久不卡影院| 人妻无码精品久久亚瑟影视| 亚洲AV无码久久精品狠狠爱浪潮| 99热热久久这里只有精品68| 亚洲av伊人久久综合密臀性色| 久久精品免费观看| 久久国语露脸国产精品电影| 国产精品99久久精品| 偷窥少妇久久久久久久久| 亚洲国产一成久久精品国产成人综合| 久久久久亚洲AV无码专区桃色| 欧洲国产伦久久久久久久| 97久久久久人妻精品专区| 亚洲欧美久久久久9999| 激情综合色综合久久综合| 久久精品亚洲日本波多野结衣| 一级A毛片免费观看久久精品| 成人精品一区二区久久久| 久久亚洲国产午夜精品理论片| 狠狠色噜噜色狠狠狠综合久久| 久久久久亚洲AV成人网| AA级片免费看视频久久| 亚洲国产成人久久综合一| 国产精品免费福利久久| 久久久噜噜噜久久熟女AA片| 亚洲综合伊人久久综合| 性高湖久久久久久久久| 日产精品久久久久久久性色| 亚洲国产精品无码久久一区二区| 国内精品伊人久久久影院| 久久久噜噜噜久久中文字幕色伊伊 | 久久人人爽人人爽人人av东京热| 日韩久久无码免费毛片软件| 一本一道久久a久久精品综合| 欧美日韩精品久久免费|