Sign in to follow this  

Problems with DX9c framework and set fonts

Recommended Posts

Hi! I want to use CDXUTDialog to show a listbox.
	m_pDialog->AddListBox(DIALOG_LIST, 50, 50, 700, 600);
	m_pDialog->GetListBox(DIALOG_LIST)->SetTextColor(D3DCOLOR_ARGB(0xBB, 0x44, 0x44, 0xFF));
	m_pDialog->GetListBox(DIALOG_LIST)->AddItem(L"New User", NULL);
	m_pDialog->GetListBox(DIALOG_LIST)->AddItem(L"New User2", NULL);
	m_pDialog->GetListBox(DIALOG_LIST)->AddItem(L"New User3", NULL);
	m_pDialog->GetListBox(DIALOG_LIST)->AddItem(L"New User4", NULL);
But if I add this code:
	m_pDialog->SetFont(DIALOG_FONT, L"Arial", 28, 5);
The font is always the same... How can I change the font of all items? Thank really much for any good idea :D

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this