Click here to Skip to main content
16,006,006 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Suppressing "What do you want Windows to do?" message Pin
Bob Stanneveld7-Jun-05 3:02
Bob Stanneveld7-Jun-05 3:02 
GeneralRe: Suppressing "What do you want Windows to do?" message Pin
Blake Miller7-Jun-05 4:21
Blake Miller7-Jun-05 4:21 
GeneralRe: Suppressing "What do you want Windows to do?" message Pin
vineas7-Jun-05 13:19
vineas7-Jun-05 13:19 
GeneralSetting parent Window handle of a MFC dialog Pin
User 5826196-Jun-05 12:26
User 5826196-Jun-05 12:26 
GeneralRe: Setting parent Window handle of a MFC dialog Pin
Blake Miller6-Jun-05 12:35
Blake Miller6-Jun-05 12:35 
QuestionHow to separately color entries in an editbox?? Pin
Anonymous6-Jun-05 10:28
Anonymous6-Jun-05 10:28 
AnswerRe: How to separately color entries in an editbox?? Pin
PJ Arends6-Jun-05 12:33
professionalPJ Arends6-Jun-05 12:33 
GeneralRe: How to separately color entries in an editbox?? Pin
KellyR6-Jun-05 17:10
KellyR6-Jun-05 17:10 
I have a problem kinda similar to this:

I create a CRichEditCtrl using CreateEx, like this:

chat_window_rich.CreateEx(0, "Edit","", WS_TABSTOP | WS_CHILD | WS_VISIBLE | ES_MULTILINE | ES_AUTOVSCROLL |
ES_READONLY | WS_VSCROLL, W_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, hwnd, (HMENU)CHAT_WINDOW,NULL);

Then I try to set the text color using this:

CHARFORMAT cf;
::memset( &cf, 0, sizeof( cf ) );
cf.cbSize = sizeof( cf );
cf.dwMask = CFM_COLOR;
cf.crTextColor = RGB( 255, 160, 160 );
int test = SendMessage(chat_window_rich.GetSafeHwnd(), EM_SETCHARFORMAT, (WPARAM) SCF_ALL, (LPARAM) &cf );

But the SendMessage always fails, and the text isn't set. ??? Does anyone know what might be wrong?


Kelly Ryan
GeneralRe: How to separately color entries in an editbox?? Pin
PJ Arends6-Jun-05 18:22
professionalPJ Arends6-Jun-05 18:22 
GeneralRe: How to separately color entries in an editbox?? Pin
KellyR6-Jun-05 18:41
KellyR6-Jun-05 18:41 
AnswerRe: How to separately color entries in an editbox?? Pin
Nilesh K.6-Jun-05 18:04
Nilesh K.6-Jun-05 18:04 
GeneralRe: How to separately color entries in an editbox?? Pin
PJ Arends6-Jun-05 18:32
professionalPJ Arends6-Jun-05 18:32 
Questiondialog on top of another app's window? Pin
Peter Weyzen6-Jun-05 10:21
Peter Weyzen6-Jun-05 10:21 
AnswerRe: dialog on top of another app's window? Pin
David Crow7-Jun-05 2:46
David Crow7-Jun-05 2:46 
GeneralSocket Issue Pin
Identity Undisclosed6-Jun-05 9:32
Identity Undisclosed6-Jun-05 9:32 
GeneralRe: Socket Issue Pin
Nilesh K.6-Jun-05 18:23
Nilesh K.6-Jun-05 18:23 
GeneralRe: Socket Issue Pin
ThatsAlok6-Jun-05 18:34
ThatsAlok6-Jun-05 18:34 
QuestionHow do save a screen to a bitmap Pin
bkphat6-Jun-05 9:13
bkphat6-Jun-05 9:13 
AnswerRe: How do save a screen to a bitmap Pin
Ravi Bhavnani6-Jun-05 10:14
professionalRavi Bhavnani6-Jun-05 10:14 
AnswerRe: How do save a screen to a bitmap Pin
ucc8016-Jun-05 17:56
ucc8016-Jun-05 17:56 
AnswerRe: How do save a screen to a bitmap Pin
ThatsAlok6-Jun-05 19:05
ThatsAlok6-Jun-05 19:05 
GeneralEmulating Windows Task Manager CPU Usage and history applets Pin
Anonymous6-Jun-05 9:10
Anonymous6-Jun-05 9:10 
GeneralRe: Emulating Windows Task Manager CPU Usage and history applets Pin
Ravi Bhavnani6-Jun-05 10:16
professionalRavi Bhavnani6-Jun-05 10:16 
GeneralWin32 - How to Clip a window Pin
dirkhelmet6-Jun-05 7:43
dirkhelmet6-Jun-05 7:43 
Generalworker thread and free Pin
Pasquale826-Jun-05 6:37
Pasquale826-Jun-05 6: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.