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

C / C++ / MFC

 
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 
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 
Ya.. previously I didnt set the font to "Lucida san Unicode" After i set that too the text came as you said

But I dont understand what wrong with your settings... I started a dialog based application a put the below code in the oninitdialog function


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 />
   CClientDC dc(this);<br />
   LOGFONT lf;<br />
   memset(&lf, 0, sizeof(lf)); <br />
   lf.lfHeight = MulDiv(12, ::GetDeviceCaps(dc.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 />
   static CFont m_font;<br />
   m_font.CreateFontIndirect(&lf);<br />
   HWND hEdit =  CreateWindowExW( 0, L"Edit", str, WS_CHILD|WS_VISIBLE|WS_BORDER, 0,0, 300,50,   m_hWnd, 0, AfxGetInstanceHandle(), 0 );<br />
   ::SendMessage( hEdit, WM_SETFONT, (WPARAM)m_font.m_hObject, (LPARAM)TRUE );



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 
AnswerRe: Memory... Pin
toxcct15-Oct-07 21:19
toxcct15-Oct-07 21:19 
QuestionRe: Memory... Pin
David Crow16-Oct-07 2:52
David Crow16-Oct-07 2:52 
AnswerRe: Memory... Pin
toxcct16-Oct-07 2:56
toxcct16-Oct-07 2:56 
GeneralRe: Memory... Pin
David Crow16-Oct-07 3:03
David Crow16-Oct-07 3:03 
AnswerRe: Memory... Pin
Nibu babu thomas15-Oct-07 21:37
Nibu babu thomas15-Oct-07 21:37 

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.