Hi to all!
I have seen, that the minipages in preview in WIN XP are not right visible (transparent?). Can anyone test this?
Hi to all!
I have seen, that the minipages in preview in WIN XP are not right visible (transparent?). Can anyone test this?
Do you have XP? Can you please post a screen shot?
Meanwhile, can you build \fwh\samples\ximage02.prg and check how it looks on XP as well as later OS ?
Same routines to make bitmaps with CreateCompatibleBitmap() use on other places in program without problems! if i use CreateCompatibleBitmap() only in black/white (the standard hdc) is ok! My opinion is that TImageList() or TTreeView() is the problem!
Tomorrow ill send a screenshoot!
Thanks.
Meanwhile, as I suggested please check ximage02.prg also. This is another approach to preview. This is to check if this alternative approach works on XP
Mr. Rao, tested ximage02.prg in XP. All ok!
byte-one wrote:Mr. Rao, tested ximage02.prg in XP. All ok!
local hDC1 := GetDC( 0 )
local hDC := CreateCompatibleDC( hDC1 )
local hBmp := CreateCompatibleBitmap( if(iswinxp(),hDC,hDC1), nWidth, nHeight ) //switching here!
local hOldBmp := SelectObject( hDC, hBmp )
local hEMF := GetEnhMetaFile( cEmf )