Hello,
I forgot to share the last source of preview with page orientation, here you can donwload it
http://www.box.net/shared/8lhxyymtga
regards
Marcelo
//------------------------------------------------------------------------------
FUNCTION Create_minipage( cEmf, nWidth, nHeight )
//------------------------------------------------------------------------------
local hDC1 := GetDC( GetDesktopWindow() )
local hDC := CreateCompatibleDC( hDC1 )
local hBmp := CreateCompatibleBitmap( hDC1, nWidth, nHeight )
local hOldBmp := SelectObject( hDC, hBmp )
local hEMF := GetEnhMetaFile( cEmf )
Rectangle( hDC, 0, 0, nHeight, nWidth )
MyPlayEnhMetaFile( hDC, hEMF, 0, 0, nHeight, nWidth )
CloseEnhMetafile( hEMF )
SelectObject( hDC, hOldBmp )
DeleteDC( hDC )
RETURN( hBmp )
byte-one wrote:Marcelo,
it seems not so! If I change in function create_minipage() closeenhmetafile(hEMF) to deleteenhmetafile(hEmf) the files are deleted at end of preview. (or getenhmetafile(cFile) not releases the handle from cFile??)
Have you a new version?
Silvio.Balcony wrote:I have started with a new preview with ribbonbar based on this code
i will publish here when ready
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 86 guests