Click here to Skip to main content
14,660,458 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
QuestionText Access Pin
Bram van Kampen17-Nov-18 14:49
MemberBram van Kampen17-Nov-18 14:49 
AnswerRe: Text Access Pin
Richard MacCutchan17-Nov-18 21:06
mveRichard MacCutchan17-Nov-18 21:06 
QuestionHow to close a sub Dialogwindow without closing a Parent Dialogwindow in MFC C++ VS2010? Pin
Member 1312800516-Nov-18 22:09
MemberMember 1312800516-Nov-18 22:09 
SuggestionRe: How to close a sub Dialogwindow without closing a Parent Dialogwindow in MFC C++ VS2010? Pin
Richard MacCutchan16-Nov-18 23:20
mveRichard MacCutchan16-Nov-18 23:20 
QuestionRe: How to close a sub Dialogwindow without closing a Parent Dialogwindow in MFC C++ VS2010? Pin
David Crow17-Nov-18 3:57
MemberDavid Crow17-Nov-18 3:57 
AnswerRe: How to close a sub Dialogwindow without closing a Parent Dialogwindow in MFC C++ VS2010? Pin
Bram van Kampen17-Nov-18 14:51
MemberBram van Kampen17-Nov-18 14:51 
QuestionLinked List Problem - K reverse linked list Pin
Member 1405554315-Nov-18 0:04
MemberMember 1405554315-Nov-18 0:04 
AnswerRe: Linked List Problem - K reverse linked list Pin
CPallini15-Nov-18 0:24
mveCPallini15-Nov-18 0:24 
GeneralRe: Linked List Problem - K reverse linked list Pin
Stefan_Lang15-Nov-18 3:43
mveStefan_Lang15-Nov-18 3:43 
GeneralRe: Linked List Problem - K reverse linked list Pin
CPallini15-Nov-18 6:07
mveCPallini15-Nov-18 6:07 
AnswerRe: Linked List Problem - K reverse linked list Pin
Daniel Pfeffer15-Nov-18 2:16
professionalDaniel Pfeffer15-Nov-18 2:16 
AnswerRe: Linked List Problem - K reverse linked list Pin
Stefan_Lang15-Nov-18 4:19
mveStefan_Lang15-Nov-18 4:19 
QuestionRe: Linked List Problem - K reverse linked list Pin
David Crow15-Nov-18 5:37
MemberDavid Crow15-Nov-18 5:37 
Questionfacing issue in “Ajantha” font on windows10 in GDIplus Pin
Avinash.Pandey12-Nov-18 22:06
MemberAvinash.Pandey12-Nov-18 22:06 
QuestionRe: facing issue in “Ajantha” font on windows10 in GDIplus Pin
Richard MacCutchan13-Nov-18 5:06
mveRichard MacCutchan13-Nov-18 5:06 
AnswerRe: facing issue in “Ajantha” font on windows10 in GDIplus Pin
leon de boer13-Nov-18 6:22
Memberleon de boer13-Nov-18 6:22 
Adding to what has already been said ... read carefully
CreateFontA function | Microsoft Docs[^]
Read this bit carefully
Quote:
To ensure consistent results when creating a font, do not specify OEM_CHARSET or DEFAULT_CHARSET. If you specify a typeface name in the lpszFace parameter, make sure that the fdwCharSet value matches the character set of the typeface specified in lpszFace.

Specifically you may want to look at the GDIPLUS font class
CFont Class | Microsoft Docs[^]
Quote:
The font mapper does not use the DEFAULT_CHARSET value. An application can use this value to allow the name and size of a font to fully describe the logical font. If a font with the specified name does not exist, a font from any character set can be substituted for the specified font. To avoid unexpected results, applications should use the DEFAULT_CHARSET value sparingly.

Look at the sample code on the page and what setting they use, so what you really want to do for entirely predictable results is specify ANSI_CHARSET and use UNICODE strings, anything else is hit and miss Smile | :)
In vino veritas


modified 13-Nov-18 12:48pm.

QuestionElevate Process from user to Admins Rights without UAC Elevation Pin
Drakesal12-Nov-18 21:22
MemberDrakesal12-Nov-18 21:22 
AnswerRe: Elevate Process from user to Admins Rights without UAC Elevation Pin
Richard MacCutchan12-Nov-18 21:35
mveRichard MacCutchan12-Nov-18 21:35 
QuestionOk im back with another problem... Pin
Member 140474359-Nov-18 12:36
MemberMember 140474359-Nov-18 12:36 
AnswerRe: Ok im back with another problem... Pin
Richard MacCutchan9-Nov-18 21:44
mveRichard MacCutchan9-Nov-18 21:44 
AnswerRe: Ok im back with another problem... Pin
leon de boer10-Nov-18 19:21
Memberleon de boer10-Nov-18 19:21 
QuestionMobile app Pin
valentineNandang9-Nov-18 2:45
MembervalentineNandang9-Nov-18 2:45 
AnswerRe: Mobile app Pin
Richard MacCutchan9-Nov-18 2:52
mveRichard MacCutchan9-Nov-18 2:52 
QuestionHello I am having a problem Pin
Member 140474357-Nov-18 12:30
MemberMember 140474357-Nov-18 12:30 
AnswerRe: Hello I am having a problem Pin
David Crow7-Nov-18 17:34
MemberDavid Crow7-Nov-18 17:34 

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.