Steve Bonam wrote: > # Create and register new window class > def WndProc(hWnd, msg, wparam, lparam): > print msg > if msg == win32con.WM_PAINT: > print "Painting" > hdc,paintstruct = BeginPaint(hWnd) > PaintDesktop(hdc) > #ExtTextOut(hdc, 100,100,win32con.ETO_OPAQUE,None, "TEST") > EndPaint(hWnd,paintstruct) > return 0 > if msg == 522: > PostQuitMessage(0) > return 0 >
522 is WM_MOUSEWHEEL. Was that your "escape hatch" -- twiddle the wheel to kill the app? If you change that to win32con.WM_CLOSE, you can kill it with Alt-F4, like normal. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32