Problem with Vtaskbar of Paco

Problem with Vtaskbar of Paco

Postby Silvio.Falconi » Mon Jan 25, 2016 10:03 am

Antonio,

do you have change some function of Paco ?

because I have a problem on Vtaskbar

Image



this class use DrawText function to write the text on title

I tried to insert olt drawtext function ( winapi fwh1501) but it make the same
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7048
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem with Vtaskbar of Paco

Postby Silvio.Falconi » Mon Jan 25, 2016 12:41 pm

perhaps I resolved it
there is an error on font

if I set the font run ok

sample :

oVmenu:oFonttitle:= oFontsample


if I not set the font on object ...the class call a function

Code: Select all  Expand view

if ::oFontTitle == nil
      hFont := CreaFCapt()
      lDestroyFont := .t.
   else
      hFont := ::oFontTitle:hFont
   endif
   hOldFont   := SelectObject(  hDC, hFont )


the function is this

HB_FUNC( CREAFCAPT )
{
NONCLIENTMETRICS info;
info.cbSize = sizeof(info);
SystemParametersInfo( SPI_GETNONCLIENTMETRICS, sizeof(info), &info, 0 );
hb_retnl( (LONG ) CreateFontIndirect( &info.lfCaptionFont ) );
}



what is changed ?
I 'm thinking...is there something of modify on CreateFontIndirect function ?


Or also I can resolve with

hFont := ::GetFont() // windows class
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7048
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 117 guests