> http://www.xbaseforum.de/viewtopic.php?f=23&t=4884
http://www.xbaseforum.de/viewtopic.php?f=23&t=4884&p=52025&hilit=ShowTimeWndProc#p52025
i had a deeper look to Pablos Class Code : it will display Time in Titlebar
on right Side ... but only in Win XP you can see it
Titlebar Area since Vista are under Control of DWM and use
DwmExtendFrameIntoClientArea() to paint.
but you ask for Toolbar so just adjust Position of rc
IF VAL( OS(OS_VERSION) ) < VERSION_VISTA
now adjust the right end of the rectangle according
the state of the buttons, we asume the buttons are square
but with some themes maybe wrong and we must query the theme metrics
instead
...
ELSE
rc[2] += nTbHeight
rc[4] += nTbHeight
ENDIF
where
#define SM_CYCAPTION 4
FUNCTION xbpGetSystemMetrics( nValue )
RETURN DllCall( "USER32.DLL", DLL_STDCALL, "GetSystemMetrics", nValue )
now TIME() will display on Menubar, Toolbar or what else which is just under
Titlebar in upper right corner