Click here to Skip to main content
15,914,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionps2 adapter interface Pin
ahmad al-omar20-Dec-06 7:37
ahmad al-omar20-Dec-06 7:37 
QuestionCListCtrl - FindItem - finding sub-items Pin
Like2Byte20-Dec-06 6:56
Like2Byte20-Dec-06 6:56 
AnswerRe: CListCtrl - FindItem - finding sub-items Pin
James R. Twine20-Dec-06 7:28
James R. Twine20-Dec-06 7:28 
QuestionProgram is all hosed up...need OOP/MFC help Pin
CoffeeAddict1920-Dec-06 6:42
CoffeeAddict1920-Dec-06 6:42 
AnswerRe: Program is all hosed up...need OOP/MFC help Pin
Chris Losinger20-Dec-06 7:47
professionalChris Losinger20-Dec-06 7:47 
AnswerRe: Program is all hosed up...need OOP/MFC help Pin
Mark Salsbery20-Dec-06 7:51
Mark Salsbery20-Dec-06 7:51 
GeneralRe: Program is all hosed up...need OOP/MFC help Pin
CoffeeAddict1920-Dec-06 9:24
CoffeeAddict1920-Dec-06 9:24 
QuestionProblem with D3DFont Aliasing [modified] Pin
Dustin Henry20-Dec-06 6:37
Dustin Henry20-Dec-06 6:37 
I am having a problem getting my D3DFonts to display antialiased. No matter what font I try to use, although some are better than others, it comes out all jagged around the edged like is is not being antialiased properly or at all.

Font creation code:
if (FAILED(D3DXCreateFont(m_pDirect3D->GetDevice(),	//D3D Device
			iSize,				//Font height
			0,				//Font width
			iWeight,			//Font Weight
			0,				//MipLevels
			bItalic,			//Italic
			DEFAULT_CHARSET,		//CharSet
			OUT_DEFAULT_PRECIS,		//OutputPrecision
			ANTIALIASED_QUALITY,	        //Quality
			DEFAULT_PITCH|FF_DONTCARE,      //PitchAndFamily
			stFace,				//pFacename,
			&font.m_d3dFont)))		//ppFont)
{
	return -1;
}

Font Display Code:
m_pDirect3D->GetFontSprite()->Begin(D3DXSPRITE_ALPHABLEND);
m_vFonts[state.m_nFont].m_d3dFont->DrawText(m_pDirect3D->GetFontSprite(), 
state.m_stText, 
-1, 
&rPos, 
state.m_dwTextJustify | DT_WORDBREAK, 
D3DCOLOR_RGBA(red,green,blue,iOpacity));
m_pDirect3D->GetFontSprite()->End();

I have tried drawing both with a Direct3D sprite and by setting the first parameter to NULL.

Any help is always appreciated.

Thanks,
Dustin

P.S. Here is a link to what it looks like : http://img238.imageshack.us/img238/4011/fontsamplecl4.jpg[^]
-- modified at 12:54 Wednesday 20th December, 2006
QuestionShell Programming Pin
Fwzklmn20-Dec-06 5:37
Fwzklmn20-Dec-06 5:37 
AnswerRe: Shell Programming Pin
Robert Kuster20-Dec-06 5:46
Robert Kuster20-Dec-06 5:46 
AnswerRe: Shell Programming Pin
James R. Twine20-Dec-06 6:25
James R. Twine20-Dec-06 6:25 
QuestionMFC CEdit scrollbar question Pin
FredrickNorge20-Dec-06 4:57
FredrickNorge20-Dec-06 4:57 
AnswerRe: MFC CEdit scrollbar question Pin
Robert Kuster20-Dec-06 5:37
Robert Kuster20-Dec-06 5:37 
GeneralRe: MFC CEdit scrollbar question Pin
FredrickNorge20-Dec-06 5:57
FredrickNorge20-Dec-06 5:57 
QuestionTo show an image from one directory Pin
mikobi20-Dec-06 4:52
mikobi20-Dec-06 4:52 
AnswerRe: To show an image from one directory Pin
mikobi20-Dec-06 5:41
mikobi20-Dec-06 5:41 
AnswerRe: To show an image from one directory Pin
Hamid_RT21-Dec-06 1:42
Hamid_RT21-Dec-06 1:42 
QuestionURI strings Pin
viliam20-Dec-06 3:53
viliam20-Dec-06 3:53 
AnswerRe: URI strings Pin
James R. Twine20-Dec-06 4:07
James R. Twine20-Dec-06 4:07 
QuestionHow to register DLL in APP path Pin
sp_ranjan20-Dec-06 3:52
sp_ranjan20-Dec-06 3:52 
AnswerRe: How to register DLL in APP path Pin
James R. Twine20-Dec-06 4:05
James R. Twine20-Dec-06 4:05 
AnswerRe: How to register DLL in APP path Pin
CPallini20-Dec-06 4:39
mveCPallini20-Dec-06 4:39 
AnswerRe: How to register DLL in APP path Pin
Mark Salsbery20-Dec-06 6:00
Mark Salsbery20-Dec-06 6:00 
AnswerRe: How to register DLL in APP path Pin
Mark Salsbery20-Dec-06 6:12
Mark Salsbery20-Dec-06 6:12 
QuestionLinkage between App windows and Processes Pin
AJarrett20-Dec-06 3:44
AJarrett20-Dec-06 3:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.