Re: [python-win32] Drawing on the desktop and window creation problems

2009-09-10 Thread Steve Bonam
yes, it was my escape hatch, I see now that i also forgot to destroy the window. Also any thoughts or insights into writing on the desktop? On Thu, Sep 10, 2009 at 3:57 PM, Tim Roberts wrote: > Steve Bonam wrote: >> # Create and register new window class >> def WndProc(hWnd, msg, wparam, lparam):

Re: [python-win32] Drawing on the desktop and window creation problems

2009-09-10 Thread Tim Roberts
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.ET

Re: [python-win32] Drawing on the desktop and window creation problems

2009-09-10 Thread Tim Roberts
Steve Bonam wrote: > I create a new window but as soon it's drawn it is invisible, no > titlebar, no anything. I draw text on it and it becomes white still > has no titlebar and puts the text on twice. when I kill it from the > interpeter the window finally becomes visible but not repsonsive as > I