锘??xml version="1.0" encoding="utf-8" standalone="yes"?>蜜桃av久久久亚洲精品,亚洲黄色在线看,久久亚洲免费http://www.shnenglu.com/zhcen/category/6402.htmlC/C++zh-cnSun, 01 Jun 2008 11:14:46 GMTSun, 01 Jun 2008 11:14:46 GMT60Window Superclassinghttp://www.shnenglu.com/zhcen/archive/2008/06/01/51768.html闄堟尟杈?/dc:creator>闄堟尟杈?/author>Sun, 01 Jun 2008 09:39:00 GMThttp://www.shnenglu.com/zhcen/archive/2008/06/01/51768.htmlhttp://www.shnenglu.com/zhcen/comments/51768.htmlhttp://www.shnenglu.com/zhcen/archive/2008/06/01/51768.html#Feedback0http://www.shnenglu.com/zhcen/comments/commentRss/51768.htmlhttp://www.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.



]]>
色8久久人人97超碰香蕉987| 久久久WWW成人免费毛片| 欧美va久久久噜噜噜久久| 精品久久无码中文字幕| 久久精品国产精品亚洲| 亚洲AV无码久久精品色欲| 国产成人综合久久久久久| 久久精品国产男包| 国产福利电影一区二区三区久久老子无码午夜伦不 | 国产成人精品久久亚洲高清不卡| 久久精品无码av| 国产三级久久久精品麻豆三级| 久久精品二区| 久久久久久久尹人综合网亚洲| 九九精品久久久久久噜噜| 9191精品国产免费久久| 久久久久久久女国产乱让韩| 岛国搬运www久久| 99re久久精品国产首页2020| 看全色黄大色大片免费久久久 | 久久精品国产免费| 亚洲国产精品一区二区久久hs| 午夜精品久久久久9999高清| 亚洲国产精久久久久久久| 狠狠色丁香久久婷婷综合五月 | 国产精品久久久久jk制服| 一本色道久久HEZYO无码| 久久天天躁狠狠躁夜夜躁2014| 精品久久久久久99人妻| 曰曰摸天天摸人人看久久久| 成人免费网站久久久| 国产精品视频久久久| 91视频国产91久久久| 成人资源影音先锋久久资源网| 亚洲综合伊人久久大杳蕉| 亚洲va久久久噜噜噜久久狠狠| 国内高清久久久久久| 天堂久久天堂AV色综合| 久久国产精品一国产精品金尊| 国内精品人妻无码久久久影院导航 | 久久性精品|