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

C / C++ / MFC

 
AnswerRe: making a custom control that shows focus Pin
Chris Losinger19-Jan-06 10:19
professionalChris Losinger19-Jan-06 10:19 
GeneralRe: making a custom control that shows focus Pin
stephen.hazel19-Jan-06 10:29
stephen.hazel19-Jan-06 10:29 
AnswerRe: making a custom control that shows focus Pin
Stephen Hewitt19-Jan-06 11:37
Stephen Hewitt19-Jan-06 11:37 
GeneralRe: making a custom control that shows focus Pin
stephen.hazel19-Jan-06 11:55
stephen.hazel19-Jan-06 11:55 
GeneralRe: making a custom control that shows focus Pin
Stephen Hewitt19-Jan-06 12:01
Stephen Hewitt19-Jan-06 12:01 
GeneralRe: making a custom control that shows focus Pin
stephen.hazel19-Jan-06 12:10
stephen.hazel19-Jan-06 12:10 
QuestionCaret in a dialog box? Pin
misugi19-Jan-06 8:47
misugi19-Jan-06 8:47 
AnswerRe: Caret in a dialog box? Pin
stephen.hazel19-Jan-06 9:35
stephen.hazel19-Jan-06 9:35 
Well, this won't be much help, but if you can do it, it's possible Smile | :)
I guess the prob with drawing the line is undrawing it, eh?

SetROp (hdc, R2_NOTXORPEN); // <-- YOUR FRIEND

If you go with the caret approach, you'll either have to use the same SetROp xor
biz or else reserve room for the caret in your (probably) custom control...

In any case, it's not the drawing, it's WHEN to undraw that's the tricky part.
If you figure it out, lemme know...
I've got an app doing the same thing and occasionally it doesn't "undraw"...

...Steve
Questiontext measurement in Win XP vs Win 2K Pin
Jim Crafton19-Jan-06 8:37
Jim Crafton19-Jan-06 8:37 
AnswerRe: text measurement in Win XP vs Win 2K Pin
basementman19-Jan-06 9:15
basementman19-Jan-06 9:15 
GeneralRe: text measurement in Win XP vs Win 2K Pin
Jim Crafton19-Jan-06 9:25
Jim Crafton19-Jan-06 9:25 
GeneralRe: text measurement in Win XP vs Win 2K Pin
basementman19-Jan-06 10:35
basementman19-Jan-06 10:35 
QuestionNew to Visual C++ and Win32 - How to bring up a window as activated? Pin
im_chc19-Jan-06 6:02
professionalim_chc19-Jan-06 6:02 
QuestionRe: New to Visual C++ and Win32 - How to bring up a window as activated? Pin
David Crow19-Jan-06 6:06
David Crow19-Jan-06 6:06 
QuestionRe: New to Visual C++ and Win32 - How to bring up a window as activated? Pin
im_chc20-Jan-06 21:06
professionalim_chc20-Jan-06 21:06 
AnswerRe: New to Visual C++ and Win32 - How to bring up a window as activated? Pin
FarPointer19-Jan-06 6:41
FarPointer19-Jan-06 6:41 
QuestionAutomated testing? Pin
im_chc20-Jan-06 20:32
professionalim_chc20-Jan-06 20:32 
QuestionIncluding a class in an MFC project Pin
Lilith.C19-Jan-06 5:39
Lilith.C19-Jan-06 5:39 
AnswerRe: Including a class in an MFC project Pin
David Crow19-Jan-06 6:03
David Crow19-Jan-06 6:03 
QuestionReg: OS problem or Database problem?? Pin
Bhasker P19-Jan-06 5:32
Bhasker P19-Jan-06 5:32 
QuestionRe: Reg: OS problem or Database problem?? Pin
David Crow19-Jan-06 6:07
David Crow19-Jan-06 6:07 
QuestionAnother COM port question Pin
KellyR19-Jan-06 5:14
KellyR19-Jan-06 5:14 
AnswerRe: Another COM port question Pin
Prakash Nadar19-Jan-06 5:39
Prakash Nadar19-Jan-06 5:39 
GeneralRe: Another COM port question Pin
KellyR19-Jan-06 6:09
KellyR19-Jan-06 6:09 
GeneralRe: Another COM port question Pin
Prakash Nadar19-Jan-06 6:15
Prakash Nadar19-Jan-06 6:15 

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.