Click here to Skip to main content
15,892,072 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Having trouble with arrays. Pin
PJ Arends29-Aug-04 9:34
professionalPJ Arends29-Aug-04 9:34 
GeneralRe: Having trouble with arrays. Pin
nigma_x30-Aug-04 3:54
nigma_x30-Aug-04 3:54 
GeneralRegistry question Pin
Andre Massada29-Aug-04 8:35
Andre Massada29-Aug-04 8:35 
GeneralRe: Registry question Pin
PJ Arends29-Aug-04 8:53
professionalPJ Arends29-Aug-04 8:53 
GeneralRe: Registry question Pin
Andre Massada29-Aug-04 9:53
Andre Massada29-Aug-04 9:53 
Generalsetting font size in wm_paint Pin
Tyrus18229-Aug-04 8:30
Tyrus18229-Aug-04 8:30 
GeneralRe: setting font size in wm_paint Pin
bneacetp29-Aug-04 9:02
bneacetp29-Aug-04 9:02 
GeneralRe: setting font size in wm_paint Pin
PJ Arends29-Aug-04 9:03
professionalPJ Arends29-Aug-04 9:03 
You have to create a new font and select into the device context before calling Drawtext. CreatePointFont is the easiest (although limited) way to create the font.
dc.Draw3dRect(rc, yellow, yellow);
dc.SetTextColor(black);
 
int points = rc.Height() * 10;
CFont newFont;
newFont.CreatePointFont(points, "Arial", &dc);
CFont *defFont = dc.SelectObject(&newFont);
 
dc.DrawText(str, rc, DT_SINGLELINE | DT_LEFT);
 
dc.SelectObject(defFont); // Restore the font in the dc









"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
GeneralMultiple inheritance in MFC Pin
Vaclav29-Aug-04 8:21
Vaclav29-Aug-04 8:21 
GeneralRe: Multiple inheritance in MFC Pin
PJ Arends29-Aug-04 9:52
professionalPJ Arends29-Aug-04 9:52 
GeneralRe: Multiple inheritance in MFC Pin
Vaclav30-Aug-04 7:07
Vaclav30-Aug-04 7:07 
GeneralRe: Multiple inheritance in MFC Pin
PJ Arends30-Aug-04 17:58
professionalPJ Arends30-Aug-04 17:58 
GeneralRe: Multiple inheritance in MFC Pin
Vaclav31-Aug-04 9:57
Vaclav31-Aug-04 9:57 
GeneralStruct for CListCtrl items/subitems Pin
Thomas Latuske29-Aug-04 8:03
Thomas Latuske29-Aug-04 8:03 
GeneralRe: Struct for CListCtrl items/subitems Pin
toxcct29-Aug-04 9:24
toxcct29-Aug-04 9:24 
GeneralRe: Struct for CListCtrl items/subitems Pin
KaЯl29-Aug-04 22:53
KaЯl29-Aug-04 22:53 
GeneralRe: Struct for CListCtrl items/subitems Pin
David Crow30-Aug-04 4:44
David Crow30-Aug-04 4:44 
GeneralEllipsis / variable parameters Pin
0v3rloader29-Aug-04 6:46
0v3rloader29-Aug-04 6:46 
GeneralRe: Ellipsis / variable parameters Pin
PJ Arends29-Aug-04 8:46
professionalPJ Arends29-Aug-04 8:46 
GeneralRe: Ellipsis / variable parameters Pin
0v3rloader29-Aug-04 9:48
0v3rloader29-Aug-04 9:48 
GeneralSequentially sorting Pin
Daniel132429-Aug-04 5:46
Daniel132429-Aug-04 5:46 
GeneralRe: Sequentially sorting Pin
Maximilien29-Aug-04 6:09
Maximilien29-Aug-04 6:09 
GeneralRe: Sequentially sorting Pin
Daniel132429-Aug-04 6:26
Daniel132429-Aug-04 6:26 
GeneralRe: Sequentially sorting Pin
Maximilien29-Aug-04 6:38
Maximilien29-Aug-04 6:38 
GeneralRe: Sequentially sorting Pin
Daniel132429-Aug-04 6:43
Daniel132429-Aug-04 6:43 

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.