#include "Fivewin.ch"
FUNCTION MAIN()
? GETTASKBARHEIGHT()
RETURN NIL
#pragma BEGINDUMP
#include "windows.h"
#include "hbapi.h"
HB_FUNC( GETTASKBARHEIGHT )
{
RECT rct;
LONG nHDiff, nVDiff;
SystemParametersInfo( SPI_GETWORKAREA, 0, &rct, 0 );
nHDiff = GetSystemMetrics( SM_CXSCREEN ) - ( rct.right - rct.left );
nVDiff = GetSystemMetrics( SM_CYSCREEN ) - ( rct.bottom - rct.top );
if ( nHDiff > 0 )
hb_retnl( nHDiff );
else
hb_retnl( nVDiff );
}
#pragma ENDDUMP
Bayron wrote:This same function SystemParametersInfo() can be used to set the height of the top window border.. Am I right???
if ( !IsThemeNull() )
GetThemeSysFont ( TMT_MSGBOXFONT, &lf );
else
{
NONCLIENTMETRICS ncm = { sizeof(NONCLIENTMETRICS) };
SystemParametersInfo ( SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS), &ncm, false );
lf = ncm.lfMessageFont;
}
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 81 guests