How change color created in RoundRect ( That is BLACK ) to other color ?
thanks
( I wan´t to use in fwh902 )
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
DEFINE DIALOG oDlg
ACTIVATE DIALOG oDlg;
ON PAINT DRAWBOX( oDlg, hDC, 10, 10, 100, 100, CLR_HRED );
CENTER
RETURN NIL
STATIC FUNCTION DRAWBOX( oDlg, hDC, nTop, nLeft, nBottom, nRight, nColor )
LOCAL hPen := CREATEPEN( PS_SOLID, 1, nColor )
LOCAL hOldPen := SELECTOBJECT( hDC, hPen )
ROUNDRECT( hDC, nTop, nLeft, nBottom, nRight, 20, 20 )
SELECTOBJECT( hDC, hOldPen )
DELETEOBJECT( hPen )
RETURN NIL
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 76 guests