Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C++ basics Pin
toxcct13-Nov-06 5:48
toxcct13-Nov-06 5:48 
QuestionDisable Frame Moving Pin
baerten13-Nov-06 2:56
baerten13-Nov-06 2:56 
AnswerRe: Disable Frame Moving [modified] Pin
Viorel.13-Nov-06 3:11
Viorel.13-Nov-06 3:11 
GeneralRe: Disable Frame Moving Pin
baerten13-Nov-06 3:34
baerten13-Nov-06 3:34 
QuestionRe: Disable Frame Moving Pin
baerten13-Nov-06 4:09
baerten13-Nov-06 4:09 
AnswerRe: Disable Frame Moving Pin
Viorel.13-Nov-06 4:28
Viorel.13-Nov-06 4:28 
GeneralRe: Disable Frame Moving Pin
baerten13-Nov-06 21:43
baerten13-Nov-06 21:43 
QuestionUsing Webdings as font for CDialog buttons problem Pin
peterboulton13-Nov-06 1:21
professionalpeterboulton13-Nov-06 1:21 
Hi,

I'm using VS2005 / MFC in a MBCS build. For some of the buttons on my
dialog I am using characters from the Webdings font and setting the button
font like this (in OnInitDialog()):

if(m_pfntMonotype == NULL)<br />
{<br />
    m_pfntMonotype = new CFont;<br />
    LOGFONT lf;<br />
    CFont* pFont=((CButton*)GetDlgItem(IDC_UP_BUTTON))->GetFont();<br />
    pFont->GetLogFont(&lf);<br />
    strcpy(lf.lfFaceName, "Webdings");<br />
    lf.lfCharSet=SYMBOL_CHARSET;<br />
    lf.lfHeight=22;<br />
    m_pfntMonotype->CreateFontIndirect(&lf);<br />
}<br />
((CButton*)GetDlgItem(IDC_UP_BUTTON))->SetFont(m_pfntMonotype);

etc..

This works fine, except for some (but not all) XP Themes that I have
downloaded, where the characters on my buttons show the character "8"
instead of the equivalent Webdings character for character code 56. (Ditto
for other characters (of course), not just 56!)

If I obtain the LOGFONT from m_pfntMonotype it is identical when the
Webdings character is correctly rendered (in Luna, etc.) and incorrectly
rendered.

Therefore, I am guessing the font mapper is incorrectly mapping the font.

Is there any way to guarantee that the Webdings characters are used on all
themes, or am I using the font inappropriately? Advice appreciated!

Thanks.

Pete
AnswerRe: Using Webdings as font for CDialog buttons problem Pin
Rage13-Nov-06 2:53
professionalRage13-Nov-06 2:53 
AnswerRe: Using Webdings as font for CDialog buttons problem Pin
Viorel.13-Nov-06 3:02
Viorel.13-Nov-06 3:02 
QuestionHow to diable menu itemin VC++ Pin
Kvaibhav13-Nov-06 1:05
Kvaibhav13-Nov-06 1:05 
AnswerRe: How to diable menu itemin VC++ Pin
Rage13-Nov-06 2:52
professionalRage13-Nov-06 2:52 
GeneralRe: How to diable menu itemin VC++ Pin
Kvaibhav13-Nov-06 19:41
Kvaibhav13-Nov-06 19:41 
QuestionProblem with registering a dll Pin
narayanagvs13-Nov-06 0:36
narayanagvs13-Nov-06 0:36 
AnswerRe: Problem with registering a dll Pin
Mike_99913-Nov-06 1:46
Mike_99913-Nov-06 1:46 
AnswerRe: Problem with registering a dll Pin
Roger Stoltz13-Nov-06 1:46
Roger Stoltz13-Nov-06 1:46 
QuestionMaking a Package Pin
Patriot8112-Nov-06 23:42
Patriot8112-Nov-06 23:42 
AnswerRe: Making a Package Pin
Christian Graus12-Nov-06 23:43
protectorChristian Graus12-Nov-06 23:43 
AnswerRe: Making a Package Pin
toxcct13-Nov-06 3:28
toxcct13-Nov-06 3:28 
AnswerRe: Making a Package Pin
Hamid_RT13-Nov-06 5:33
Hamid_RT13-Nov-06 5:33 
QuestionEdit controls Pin
Waldermort12-Nov-06 22:51
Waldermort12-Nov-06 22:51 
AnswerRe: Edit controls Pin
Christian Graus12-Nov-06 23:16
protectorChristian Graus12-Nov-06 23:16 
GeneralRe: Edit controls Pin
Waldermort12-Nov-06 23:40
Waldermort12-Nov-06 23:40 
GeneralRe: Edit controls Pin
Christian Graus12-Nov-06 23:43
protectorChristian Graus12-Nov-06 23:43 
GeneralRe: Edit controls Pin
Waldermort13-Nov-06 0:17
Waldermort13-Nov-06 0:17 

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.