Re: Win32Lib: getDC of a pixmap problem
- Posted by "Brian K. Broker" <bkb at CNW.COM> Oct 07, 1999
- 506 views
On Thu, 7 Oct 1999, Cuny, David wrote: > My guess is that you failed to specify the size (x,y) of the Pixmap when you > created it. It's easy to accidentally use the (cx,cy) parameters instead: > > create( class, title, parent, cx, cy, x, y, flags ) > > If (x,y) are zero, then no bitmap is created, and a handle of zero is > stored. Calling getDC() will then generate the error you got. > > If this is the problem, either specify a size for the pixmap, or resize it > with setSize(). > > Hope this helps! > > -- David Cuny Nope, that's not it. I define my pixmap as follows: Buffer = create( Pixmap, "", 0, 0, 0, 700, 800, 0 ) I even added a setSize in my onOpen routine (just to be sure): setSize( Buffer, 700, 800 ) I get the same error... any other suggestions?