首页 > 代码库 > 每个窗口单独处理消息的例子源码

每个窗口单独处理消息的例子源码

整个窗口使用消息类重新写的源码如下:

#windows应用程序
#使用类来描述
#开发人员:蔡军生(QQ:9073204) 深圳  2014-8-24

from ctypes import *
from ctypes.wintypes import *

WS_EX_APPWINDOW = 0x40000
WS_OVERLAPPEDWINDOW = 0xcf0000
WS_CAPTION = 0xc00000
SW_SHOWNORMAL = 1
SW_SHOW = 5
CS_HREDRAW = 2
CS_VREDRAW = 1
CW_USEDEFAULT = 0x80000000

WM_DESTROY = 2
WM_NCCREATE = 0x0081

WHITE_BRUSH = 0
GWL_USERDATA = http://www.mamicode.com/-21>

每个窗口单独处理消息的例子源码