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

C / C++ / MFC

 
GeneralRe: Help on Drawing Ellipse(..) Pin
Hamid_RT2-Aug-06 8:50
Hamid_RT2-Aug-06 8:50 
QuestionGUI technologies Pin
A_Fa1-Aug-06 22:29
A_Fa1-Aug-06 22:29 
AnswerRe: GUI technologies Pin
Hamid_RT1-Aug-06 22:33
Hamid_RT1-Aug-06 22:33 
AnswerRe: GUI technologies Pin
toxcct1-Aug-06 22:37
toxcct1-Aug-06 22:37 
GeneralRe: GUI technologies Pin
ThatsAlok2-Aug-06 0:42
ThatsAlok2-Aug-06 0:42 
JokeRe: GUI technologies Pin
toxcct2-Aug-06 1:37
toxcct2-Aug-06 1:37 
AnswerRe: GUI technologies Pin
Sarath C1-Aug-06 22:47
Sarath C1-Aug-06 22:47 
QuestionCEdit HowTo react on changed Selection? Pin
whiteman761-Aug-06 22:04
whiteman761-Aug-06 22:04 
Hello all,

Yesterday I've taken all the day to search for a solution to this problem but couldn't find one. Hopefully one of you can hint me in the right direction.

What I'm trying to do is the following.

A selectable text like you can find it in the file properties of windows explorer. Additional this control should be able to draw different fonts/colors after each whitespace.
I tried to realize this with a CEdit derived class in which I used OnPaint to draw the colored text.

The Problem is that whenever the selection is changed either by Mouse or Keyboard the CEdit seems to use alternative drawing routines and therefore overwrite my colored text.
So I tried ON_CONTROL_REFLECT for the messages EM_SETSEL and EN_SELCHANGE. I need to handle this message directly in the control not in the parent class. I also tried the other reflection handlers because I wasn't sure if ON_CONTROL_REFLECT is the right one here. Unfortunately there is no real documentation about CEdit messages in MSDN. I also searched alot in google groups and on the developer sites like this and codeguru but didn't find any hint.

So can anyone help me and tell me how I can react on a changed selection in the CEdit or if this is possible at all? The control would be finished if I could handle the changed selection because I would be able to draw only the non-selected parts of the control. But if I don't find a way to handle this I'd have to take a whole new approach to the problem and use a different control.

Thx for any help,
whiteman
AnswerRe: CEdit HowTo react on changed Selection? [modified] Pin
Naveen1-Aug-06 22:15
Naveen1-Aug-06 22:15 
QuestionFile Read/Write buffer lenght Pin
tanarnelinistit1-Aug-06 22:00
tanarnelinistit1-Aug-06 22:00 
AnswerRe: File Read/Write buffer lenght Pin
Naveen1-Aug-06 22:07
Naveen1-Aug-06 22:07 
GeneralRe: File Read/Write buffer lenght Pin
tanarnelinistit1-Aug-06 22:36
tanarnelinistit1-Aug-06 22:36 
GeneralRe: File Read/Write buffer lenght Pin
Naveen1-Aug-06 22:45
Naveen1-Aug-06 22:45 
QuestionRe: File Read/Write buffer lenght Pin
David Crow2-Aug-06 3:54
David Crow2-Aug-06 3:54 
AnswerRe: File Read/Write buffer lenght Pin
_AnsHUMAN_ 1-Aug-06 22:26
_AnsHUMAN_ 1-Aug-06 22:26 
AnswerRe: File Read/Write buffer lenght Pin
Hamid_RT1-Aug-06 22:44
Hamid_RT1-Aug-06 22:44 
Questionj'ai un projet en c++ Pin
wiemounir1-Aug-06 21:34
wiemounir1-Aug-06 21:34 
AnswerRe: j'ai un projet en c++ Pin
Sarath C1-Aug-06 21:43
Sarath C1-Aug-06 21:43 
GeneralRe: j'ai un projet en c++ Pin
ThatsAlok2-Aug-06 0:43
ThatsAlok2-Aug-06 0:43 
JokeRe: j'ai un projet en c++ [modified] Pin
Sarath C2-Aug-06 0:45
Sarath C2-Aug-06 0:45 
AnswerRe: j'ai un projet en c++ Pin
toxcct1-Aug-06 22:26
toxcct1-Aug-06 22:26 
GeneralI can speak english Pin
wiemounir1-Aug-06 22:46
wiemounir1-Aug-06 22:46 
AnswerRe: j'ai un projet en c++ Pin
Hamid_RT1-Aug-06 22:36
Hamid_RT1-Aug-06 22:36 
GeneralRe: j'ai un projet en c++ Pin
toxcct1-Aug-06 22:48
toxcct1-Aug-06 22:48 
GeneralRe: j'ai un projet en c++ Pin
Hamid_RT1-Aug-06 22:52
Hamid_RT1-Aug-06 22:52 

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.