Click here to Skip to main content
15,070,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionfile search problem Pin
david bagaturia10-Sep-07 1:38
Memberdavid bagaturia10-Sep-07 1:38 
AnswerRe: file search problem Pin
Cedric Moonen10-Sep-07 1:59
MemberCedric Moonen10-Sep-07 1:59 
GeneralRe: file search problem Pin
david bagaturia10-Sep-07 3:51
Memberdavid bagaturia10-Sep-07 3:51 
GeneralRe: file search problem Pin
Cedric Moonen10-Sep-07 4:34
MemberCedric Moonen10-Sep-07 4:34 
GeneralRe: file search problem Pin
david bagaturia10-Sep-07 19:37
Memberdavid bagaturia10-Sep-07 19:37 
QuestionFont & BkColor Pin
josip cagalj10-Sep-07 1:16
Memberjosip cagalj10-Sep-07 1:16 
AnswerRe: Font & BkColor Pin
Nishad S10-Sep-07 1:31
MemberNishad S10-Sep-07 1:31 
GeneralRe: Font & BkColor Pin
josip cagalj10-Sep-07 1:55
Memberjosip cagalj10-Sep-07 1:55 
Thanks for replay.
I do this:
<br />
CDC *pDC=GetDC();<br />
CFont VelikiFont;<br />
int nHeight;<br />
nHeight = -MulDiv(10, pDC->GetDeviceCaps(LOGPIXELSY), 72);<br />
VelikiFont.CreateFont(<br />
	nHeight,	// logical height of font <br />
	0,		// logical average character width <br />
	0,		// angle of escapement <br />
	0,		// base-line orientation angle <br />
	FW_BOLD,	// font weight <br />
	FALSE,		// italic attribute flag <br />
	FALSE,		// underline attribute flag <br />
	FALSE,		// strikeout attribute flag <br />
	DEFAULT_CHARSET,// character set identifier <br />
	OUT_DEFAULT_PRECIS,	// output precision <br />
	CLIP_DEFAULT_PRECIS,	// clipping precision <br />
	PROOF_QUALITY,		// output quality <br />
	FIXED_PITCH | FF_MODERN,// pitch and family <br />
	"Courier New"		// pointer to typeface name string <br />
	);<br />
<br />
ReleaseDC(pDC);<br />
m_List.SetFont(&VelikiFont);

But I dont get what I wont. When I change 'nHeight' parameter I don't get bigger font, but more space between rows!

Regarding background color Can I set the color (like RGB value or something) instead of choosing type of stock object!
Once again thanks for replaying!
GeneralRe: Font & BkColor Pin
Nishad S10-Sep-07 2:09
MemberNishad S10-Sep-07 2:09 
QuestionRe: Font &amp; BkColor Pin
josip cagalj10-Sep-07 3:34
Memberjosip cagalj10-Sep-07 3:34 
QuestionReading data from Folder [modified] Pin
shakumar_2210-Sep-07 0:57
Membershakumar_2210-Sep-07 0:57 
AnswerRe: Reading data from Folder Pin
Nishad S10-Sep-07 1:32
MemberNishad S10-Sep-07 1:32 
AnswerRe: Reading data from Folder Pin
David Crow10-Sep-07 5:35
MemberDavid Crow10-Sep-07 5:35 
AnswerRe: Reading data from Folder Pin
david bagaturia10-Sep-07 19:43
Memberdavid bagaturia10-Sep-07 19:43 
QuestionAbout IntelliSense Pin
GauranG Shah10-Sep-07 0:53
MemberGauranG Shah10-Sep-07 0:53 
AnswerRe: About IntelliSense Pin
baerten10-Sep-07 2:42
Memberbaerten10-Sep-07 2:42 
QuestionGeneral Questions Pin
rajaratk10-Sep-07 0:21
Memberrajaratk10-Sep-07 0:21 
AnswerRe: General Questions Pin
Russell'10-Sep-07 0:30
MemberRussell'10-Sep-07 0:30 
AnswerRe: General Questions Pin
Matthew Faithfull10-Sep-07 0:32
MemberMatthew Faithfull10-Sep-07 0:32 
AnswerRe: General Questions Pin
Russell'10-Sep-07 0:38
MemberRussell'10-Sep-07 0:38 
GeneralRe: General Questions Pin
jhwurmbach10-Sep-07 2:20
Memberjhwurmbach10-Sep-07 2:20 
JokeRe: General Questions Pin
Russell'10-Sep-07 2:28
MemberRussell'10-Sep-07 2:28 
JokeRe: General Questions Pin
jhwurmbach10-Sep-07 2:30
Memberjhwurmbach10-Sep-07 2:30 
GeneralRe: General Questions Pin
Russell'10-Sep-07 2:35
MemberRussell'10-Sep-07 2:35 
AnswerRe: General Questions Pin
rajaratk10-Sep-07 0:48
Memberrajaratk10-Sep-07 0:48 

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.