Click here to Skip to main content
14,922,948 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: EM_GETSELTEXT Message Doesn't retrive the Text Pin
GauranG Shah19-Sep-07 21:14
MemberGauranG Shah19-Sep-07 21:14 
I tried you code. But still facing the same problem. Empty String.

is there any other way I can get the selected Text By user.
I have tried it in MFC application Like this

CWnd *hParent = FindWindow(_T("TfrmChat"),0);
CWnd *hChild = FindWindowEx(hParent->m_hWnd,0,_T("TPanel"),0);
hParent =  FindWindowEx(hParent->m_hWnd,hChild->m_hWnd,_T("TPanel"),0);
hChild =   FindWindowEx(hParent->m_hWnd,0,_T("TExRichEdit"),0);

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

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 
AnswerRe: Combo box Max Length Pin
nbugalia18-Sep-07 21:13
Membernbugalia18-Sep-07 21:13 

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.