Click here to Skip to main content
14,933,402 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFonts Pin
Waldermort18-Sep-07 22:57
MemberWaldermort18-Sep-07 22:57 
AnswerRe: Fonts Pin
KarstenK18-Sep-07 23:05
mveKarstenK18-Sep-07 23:05 
AnswerRe: Fonts Pin
nbugalia18-Sep-07 23:14
Membernbugalia18-Sep-07 23:14 
AnswerRe: Fonts Pin
Waldermort19-Sep-07 0:46
MemberWaldermort19-Sep-07 0:46 
QuestionEM_GETSELTEXT Message Doesn't retrive the Text Pin
GauranG Shah18-Sep-07 22:37
MemberGauranG Shah18-Sep-07 22:37 
AnswerRe: EM_GETSELTEXT Message Doesn't retrive the Text Pin
nbugalia18-Sep-07 23:23
Membernbugalia18-Sep-07 23:23 
GeneralRe: EM_GETSELTEXT Message Doesn't retrive the Text Pin
GauranG Shah18-Sep-07 23:30
MemberGauranG Shah18-Sep-07 23:30 
QuestionRe: EM_GETSELTEXT Message Doesn't retrive the Text Pin
David Crow19-Sep-07 3:24
MemberDavid Crow19-Sep-07 3:24 
GauranG033But When I use the Following code it doesn't retrive the selected text


It fails as a result of Unicode being used. You'll find that if you use ANSI, EM_GETSELTEXT would work as expected. Is that a viable option?

If not, use this:

char sz[100] = {'\0'};
LPWSTR SText;
LRESULT lr = SendMessage(hChild, EM_GETSELTEXT, 0, (LPARAM) sz);   
USES_CONVERSION;
SText = A2W(sz);

Notice your text that I quoted above is not formatted correctly.


"A good athlete is the result of a good and worthy opponent." - David Crow

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


AnswerRe: EM_GETSELTEXT Message Doesn't retrive the Text Pin
GauranG Shah19-Sep-07 21:14
MemberGauranG Shah19-Sep-07 21:14 
QuestionRe: EM_GETSELTEXT Message Doesn't retrive the Text Pin
David Crow20-Sep-07 2:27
MemberDavid Crow20-Sep-07 2:27 
QuestionHow to convert *.tif to *.bmp? Pin
TooShy2Talk18-Sep-07 22:34
MemberTooShy2Talk18-Sep-07 22:34 
AnswerRe: How to convert *.tif to *.bmp? Pin
KarstenK18-Sep-07 22:58
mveKarstenK18-Sep-07 22:58 
GeneralRe: How to convert *.tif to *.bmp? Pin
TooShy2Talk18-Sep-07 23:20
MemberTooShy2Talk18-Sep-07 23:20 
GeneralRe: How to convert *.tif to *.bmp? Pin
KarstenK18-Sep-07 23:42
mveKarstenK18-Sep-07 23:42 
AnswerRe: How to convert *.tif to *.bmp? Pin
Mark Salsbery19-Sep-07 5:48
MemberMark Salsbery19-Sep-07 5:48 
Questionreading simple excel sheet without using odbc Pin
neha.agarwal2718-Sep-07 21:58
Memberneha.agarwal2718-Sep-07 21:58 
AnswerRe: reading simple excel sheet without using odbc Pin
KarstenK18-Sep-07 22:59
mveKarstenK18-Sep-07 22:59 
GeneralRe: reading simple excel sheet without using odbc Pin
neha.agarwal2718-Sep-07 23:09
Memberneha.agarwal2718-Sep-07 23:09 
GeneralRe: reading simple excel sheet without using odbc Pin
KarstenK18-Sep-07 23:26
mveKarstenK18-Sep-07 23:26 
AnswerRe: reading simple excel sheet without using odbc Pin
Karismatic18-Sep-07 23:07
MemberKarismatic18-Sep-07 23:07 
QuestionConvert char string to UTF-8 Pin
kcynic18-Sep-07 21:25
Memberkcynic18-Sep-07 21:25 
AnswerRe: Convert char string to UTF-8 Pin
fefe.wyx18-Sep-07 23:13
Memberfefe.wyx18-Sep-07 23:13 
GeneralRe: Convert char string to UTF-8 Pin
kcynic19-Sep-07 15:00
Memberkcynic19-Sep-07 15:00 
AnswerRe: Convert char string to UTF-8 Pin
KarstenK18-Sep-07 23:46
mveKarstenK18-Sep-07 23:46 
QuestionCombo box Max Length Pin
danasegaranea18-Sep-07 21:02
Memberdanasegaranea18-Sep-07 21:02 

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.