[HELP] WTYPE_STATIC Font "Change"

08/29/2014 12:52 『  』#1
Hey guys what's upp <.<

I ran into a little Problem today and couldn't solve it by myself.

Well, i created an Applet and there i added a Label which i change via
Source. I tried to change the Font Size and Font Color by declareing
a new Font and then i passed this Font via ->SetFont.

Anyways it does not set the Font....

Things i tried:

All of this is in the "OnDraw" Function of the Applet
Code:
// - Font declared
CD3DFont* xpFont = new CD3DFont( _T("MS Gothic"), 22 );
		xpFont->m_nOutLine = 2;
		xpFont->m_dwColor = 0xffffffff;
		xpFont->m_dwBgColor = D3DCOLOR_ARGB( 255, 0, 0, 0);

// 1
CWndStatic* pWndStaticLbl =  ( CWndStatic* )GetDlgItem( WIDC_xTestx );
CD3DFont* pOld = pWndStaticLbl->GetFont();
pWndStaticLbl->SetFont(xpFont);

// 2
CWndStatic* pWndStaticLbl =  ( CWndStatic* )GetDlgItem( WIDC_xTestx );
pWndStaticLbl->m_pFont = xpFont;

// 3
CWndStatic* pWndStaticLbl =  ( CWndStatic* )GetDlgItem( WIDC_xTestx );
pWndStaticLbl->m_p2DRender->SetFont(xpFont);

// 4
p2DRender->SetFont(xpFont);
I hope someone can help me.

LG