win32Lib pixmap

new topic     » topic index » view thread      » older message » newer message

I am using GDIPlus for jpeg images; photos

Have not been able to place an image from GDIPlus on a pixmap.. can draw to the pixmap without problems.

Also can copy the pixmap to a window successfully with bitBlt or copyBlt.

If I then put the images on that window, the images disappear when the window is scrolled.

When attempting to place the image on the pixmap, the program fails at this line:

status=GdipCreateFromHWND(getHandle(VirtScrn),ppGraphics) 

The value of status is 3.. indicating "out of memory HWND". If use getHandle(ChartWin), a normal window, status is 0 and the image is drawn.

I would think both VirtScrn and ChartWin are atoms, but I could be incorrect.

- charting 
	    VirtScrn = createEx( Pixmap, "", 0, 0, 0, 0, 0, 0, 0), 
	    ChartWin = createEx( Window, "Relatives Chart", 0, 0, 0,vxChartWin, vyChartWin,{WS_POPUP,WS_BORDER, WS_SCROLLBARS},0), 

The 0's are replaced depending on the size of the chart.

I have studied win32lib.ew, but did not get a clue on this problem.

As usual, advise will be appreciated .

Buzzo

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu