Click here to Skip to main content
15,884,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Connection setting manager Pin
Hamid_RT28-Apr-09 21:26
Hamid_RT28-Apr-09 21:26 
GeneralRe: Connection setting manager Pin
B060611528-Apr-09 22:49
B060611528-Apr-09 22:49 
Questionhow to get the WM_LBUTTONDOWN outside my Model Dialog? Pin
kaviniswell28-Apr-09 20:52
kaviniswell28-Apr-09 20:52 
AnswerRe: how to get the WM_LBUTTONDOWN outside my Model Dialog? Pin
KarstenK28-Apr-09 21:57
mveKarstenK28-Apr-09 21:57 
GeneralRe: how to get the WM_LBUTTONDOWN outside my Model Dialog? Pin
kaviniswell29-Apr-09 1:28
kaviniswell29-Apr-09 1:28 
AnswerRe: how to get the WM_LBUTTONDOWN outside my Model Dialog? Pin
Stuart Dootson28-Apr-09 22:24
professionalStuart Dootson28-Apr-09 22:24 
QuestionGetting unicode string Pin
Benjamin Bruno28-Apr-09 20:33
Benjamin Bruno28-Apr-09 20:33 
AnswerRe: Getting unicode string Pin
Stuart Dootson29-Apr-09 0:13
professionalStuart Dootson29-Apr-09 0:13 
Getting Unicode out of a rich-edit control:

  1. Use EM_STREAMOUT[^] with the flags set to SF_TEXT|SF_UNICODE
  2. Use SendMessageW (i.e. the Unicode variant of SendMessage) to send WM_GETTEXT to the control (IF there is less than 64K characters in the rich-edit control)

BenjaminBruno wrote:
draw that string in a DC using DrawText

Just make sure you use the Unicode variant of DrawText and that the font you're drawing the text with has glyphs for the characters you want to display.

BenjaminBruno wrote:
I want to know how to store unicode string for later use

How much later? If it's just within the same run of the program, then a variable of type CStringW[^] would do the job nicely. To save Unicode to a file on-disk, the routines in this article[^] look useful?



GeneralRe: Getting unicode string Pin
Benjamin Bruno29-Apr-09 18:56
Benjamin Bruno29-Apr-09 18:56 
QuestionNot support function Pin
Ravenet28-Apr-09 20:33
Ravenet28-Apr-09 20:33 
AnswerRe: Not support function Pin
Naveen28-Apr-09 21:43
Naveen28-Apr-09 21:43 
NewsSDI MultipleViews Pin
Madhu00928-Apr-09 20:30
Madhu00928-Apr-09 20:30 
GeneralRe: SDI MultipleViews Pin
KarstenK28-Apr-09 21:55
mveKarstenK28-Apr-09 21:55 
QuestionRe: SDI MultipleViews Pin
Madhu00926-May-09 1:51
Madhu00926-May-09 1:51 
AnswerRe: SDI MultipleViews Pin
KarstenK26-May-09 1:56
mveKarstenK26-May-09 1:56 
Questionerror LNK2019: unresolved external symbol Pin
Purish Dwivedi28-Apr-09 19:38
Purish Dwivedi28-Apr-09 19:38 
AnswerRe: error LNK2019: unresolved external symbol Pin
_AnsHUMAN_ 28-Apr-09 19:46
_AnsHUMAN_ 28-Apr-09 19:46 
QuestionRe: error LNK2019: unresolved external symbol Pin
Purish Dwivedi28-Apr-09 20:08
Purish Dwivedi28-Apr-09 20:08 
AnswerRe: error LNK2019: unresolved external symbol Pin
_AnsHUMAN_ 28-Apr-09 20:13
_AnsHUMAN_ 28-Apr-09 20:13 
AnswerRe: error LNK2019: unresolved external symbol Pin
Purish Dwivedi28-Apr-09 20:21
Purish Dwivedi28-Apr-09 20:21 
AnswerRe: error LNK2019: unresolved external symbol Pin
Cedric Moonen28-Apr-09 20:31
Cedric Moonen28-Apr-09 20:31 
AnswerRe: error LNK2019: unresolved external symbol Pin
Purish Dwivedi28-Apr-09 20:36
Purish Dwivedi28-Apr-09 20:36 
GeneralRe: error LNK2019: unresolved external symbol Pin
Cedric Moonen28-Apr-09 20:59
Cedric Moonen28-Apr-09 20:59 
Answer[Message Deleted] Pin
Purish Dwivedi28-Apr-09 21:10
Purish Dwivedi28-Apr-09 21:10 
GeneralRe: error LNK2019: unresolved external symbol Pin
Stephen Hewitt28-Apr-09 21:16
Stephen Hewitt28-Apr-09 21:16 

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.