Click here to Skip to main content
16,005,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Food For Thought Pin
Paolo Messina30-Aug-01 23:40
professionalPaolo Messina30-Aug-01 23:40 
GeneralCString displays garbage before and after string Pin
30-Aug-01 17:03
suss30-Aug-01 17:03 
GeneralRe: CString displays garbage before and after string Pin
Michael Dunn30-Aug-01 18:23
sitebuilderMichael Dunn30-Aug-01 18:23 
Generalabout asynchronous property Pin
Maer72730-Aug-01 16:52
Maer72730-Aug-01 16:52 
Questionwhy register the "Frame Window" as a drag-drop target? Pin
Maer72730-Aug-01 16:47
Maer72730-Aug-01 16:47 
Generala simple question about EnableCompoundFile Pin
Maer72730-Aug-01 16:46
Maer72730-Aug-01 16:46 
Generalsimple questions about "NETRESOURCE" Pin
Maer72730-Aug-01 16:27
Maer72730-Aug-01 16:27 
GeneralHelp on font in View versus Print Pin
Mike Gaskey30-Aug-01 14:49
Mike Gaskey30-Aug-01 14:49 
I know this will be a silly question but it is driving me nuts. I need to both display and print symbols for hearts, diamonds, clubs and spades. No problem on the View, everything works just fine. What doesn't work is the print function. The symbols are output as empty blocks. I have delved into every help/resource I can find and have found nothing that works. This can't be difficult, but the solution isn't obvious (to me). Any help would be appreciated.

The essential code from the OnDraw() and set up logic is:

LOGFONT m_lf;

m_lc.lfCharSet = ANSI_CHARSET;
m_lc.lfPitchAndFamily = FIXED_PITCH | FF_DECORATIVE;
m_lc.lfQuality = PROOF_QUALITY;
strcpy(m_lc.lfFaceName,"Symbol");

// Create font for this view
m_SymbolFont.CreateFontIndirect(&m_lc);
CFont* xFont = pDC->SelectObject(&m_SymbolFont);

pDC->TextOut(xPos,yPos,wbItem,wbItem.GetLength());
Confused | :confused: Thanks

Too much poop - not enough toilets
GeneralRe: Help on font in View versus Print Pin
Mike Gaskey31-Aug-01 15:08
Mike Gaskey31-Aug-01 15:08 
GeneralRe: Answer to -> Help on font in View versus Print Pin
Mike Gaskey3-Sep-01 6:11
Mike Gaskey3-Sep-01 6:11 
QuestionHow do you know if a control is clicked Pin
JekYu30-Aug-01 14:44
JekYu30-Aug-01 14:44 
AnswerRe: How do you know if a control is clicked Pin
Alex Taylor30-Aug-01 14:56
Alex Taylor30-Aug-01 14:56 
GeneralChange color of the Form Pin
JekYu30-Aug-01 14:03
JekYu30-Aug-01 14:03 
GeneralRe: Change color of the Form Pin
Alex Taylor30-Aug-01 14:51
Alex Taylor30-Aug-01 14:51 
GeneralRe: Change color of the Form Pin
JekYu30-Aug-01 15:02
JekYu30-Aug-01 15:02 
GeneralRe: Change color of the Form Pin
Alex Taylor30-Aug-01 15:12
Alex Taylor30-Aug-01 15:12 
GeneralRe: Change color of the Form Pin
JekYu30-Aug-01 20:06
JekYu30-Aug-01 20:06 
GeneralRe: Change color of the Form Pin
Richard Stringer31-Aug-01 12:31
Richard Stringer31-Aug-01 12:31 
GeneralRelease build. Pin
John Uhlenbrock30-Aug-01 14:03
John Uhlenbrock30-Aug-01 14:03 
GeneralRe: Release build. Pin
Tomasz Sowinski30-Aug-01 23:23
Tomasz Sowinski30-Aug-01 23:23 
GeneralRe: Release build. Pin
John Uhlenbrock31-Aug-01 10:30
John Uhlenbrock31-Aug-01 10:30 
GeneralRe: Release build. Pin
Mukkie31-Aug-01 6:11
Mukkie31-Aug-01 6:11 
GeneralRe: Release build. Pin
John Uhlenbrock4-Sep-01 4:57
John Uhlenbrock4-Sep-01 4:57 
GeneralRe: Release build. Pin
Tim Deveaux31-Aug-01 8:15
Tim Deveaux31-Aug-01 8:15 
GeneralRe: Release build. Pin
John Uhlenbrock4-Sep-01 4:59
John Uhlenbrock4-Sep-01 4:59 

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.