Click here to Skip to main content
15,912,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to change the font of property page Pin
Hadi Dayvary15-Oct-07 23:49
professionalHadi Dayvary15-Oct-07 23:49 
AnswerRe: how to change the font of property page Pin
Mark Salsbery16-Oct-07 5:27
Mark Salsbery16-Oct-07 5:27 
QuestionSubClass all buttons of aprogram Pin
Hadi Dayvary15-Oct-07 22:34
professionalHadi Dayvary15-Oct-07 22:34 
AnswerRe: SubClass all buttons of aprogram Pin
Anand Todkar15-Oct-07 23:22
Anand Todkar15-Oct-07 23:22 
GeneralRe: SubClass all buttons of aprogram Pin
Hadi Dayvary15-Oct-07 23:43
professionalHadi Dayvary15-Oct-07 23:43 
GeneralRe: SubClass all buttons of aprogram Pin
_AnsHUMAN_ 16-Oct-07 2:57
_AnsHUMAN_ 16-Oct-07 2:57 
AnswerRe: SubClass all buttons of aprogram Pin
Naveen16-Oct-07 3:38
Naveen16-Oct-07 3:38 
QuestionDisplaying WChar string in non-Unicode Project. Pin
nilesh.gawade15-Oct-07 22:15
nilesh.gawade15-Oct-07 22:15 
Hi,
I am trying to display a wide char string to an Edit box. My prject setting is MBCS. Is it possible to display Wchar string in non-unicode project?
If so Please let me know.


For setting unicode font :


CDC *pDC = GetDC();<br />
<br />
// create UNICODE font<br />
LOGFONT lf;<br />
memset(&lf, 0, sizeof(lf)); <br />
lf.lfHeight = MulDiv(12, ::GetDeviceCaps(pDC->m_hDC, LOGPIXELSY), 72);<br />
lf.lfWeight = FW_NORMAL;<br />
lf.lfOutPrecision = OUT_TT_ONLY_PRECIS;<br />
_tcscpy(lf.lfFaceName, _T("Lucida Sans Unicode")); <br />
m_font.CreateFontIndirect(&lf);<br />
<br />
// apply the font to the controls<br />
m_edit.SetFont(&m_font);



For Displaying text :


wchar_t str[10];<br />
str[0]=0x41;<br />
str[1]=0x42;<br />
str[2]=0x284;<br />
str[3]=0x44;<br />
str[4]=0x45;<br />
str[5]=0x46;<br />
str[6]=0x47;<br />
str[7]=0x48;<br />
str[8]=0x49;<br />
str[9]=0x00;<br />
<br />
::SetWindowTextW(m_edit.m_hWnd,(LPCWSTR)str);


Plz help.

Thanks.
AnswerRe: Displaying WChar string in non-Unicode Project. Pin
Naveen15-Oct-07 23:16
Naveen15-Oct-07 23:16 
QuestionRe: Displaying WChar string in non-Unicode Project. Pin
nilesh.gawade16-Oct-07 0:22
nilesh.gawade16-Oct-07 0:22 
AnswerRe: Displaying WChar string in non-Unicode Project. Pin
Naveen16-Oct-07 14:08
Naveen16-Oct-07 14:08 
QuestionRe: Displaying WChar string in non-Unicode Project. Pin
nilesh.gawade16-Oct-07 17:14
nilesh.gawade16-Oct-07 17:14 
AnswerRe: Displaying WChar string in non-Unicode Project. Pin
Naveen16-Oct-07 17:51
Naveen16-Oct-07 17:51 
GeneralRe: Displaying WChar string in non-Unicode Project. Pin
nilesh.gawade16-Oct-07 18:03
nilesh.gawade16-Oct-07 18:03 
QuestionRe: Displaying WChar string in non-Unicode Project. Pin
nilesh.gawade16-Oct-07 18:28
nilesh.gawade16-Oct-07 18:28 
AnswerRe: Displaying WChar string in non-Unicode Project. Pin
Naveen16-Oct-07 21:58
Naveen16-Oct-07 21:58 
QuestionRe: Displaying WChar string in non-Unicode Project. Pin
nilesh.gawade17-Oct-07 3:08
nilesh.gawade17-Oct-07 3:08 
AnswerRe: Displaying WChar string in non-Unicode Project. Pin
Naveen17-Oct-07 5:15
Naveen17-Oct-07 5:15 
AnswerRe: Displaying WChar string in non-Unicode Project. Pin
Naveen17-Oct-07 5:17
Naveen17-Oct-07 5:17 
GeneralRe: Displaying WChar string in non-Unicode Project. Pin
nilesh.gawade17-Oct-07 17:37
nilesh.gawade17-Oct-07 17:37 
Questionincreasing the buffer allocatied for the application Pin
Kiran Pinjala15-Oct-07 21:44
Kiran Pinjala15-Oct-07 21:44 
QuestionRe: increasing the buffer allocatied for the application Pin
David Crow16-Oct-07 2:57
David Crow16-Oct-07 2:57 
AnswerRe: increasing the buffer allocatied for the application Pin
Kiran Pinjala16-Oct-07 19:09
Kiran Pinjala16-Oct-07 19:09 
GeneralRe: increasing the buffer allocatied for the application Pin
David Crow17-Oct-07 4:12
David Crow17-Oct-07 4:12 
QuestionMemory... [Solved] Pin
Rage15-Oct-07 21:15
professionalRage15-Oct-07 21:15 

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.