Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: check status of window Pin
Perestroyka19-Jan-06 10:50
Perestroyka19-Jan-06 10:50 
QuestionActiveX + DLL Pin
PaulNeyman19-Jan-06 9:41
PaulNeyman19-Jan-06 9:41 
AnswerRe: ActiveX + DLL Pin
Stephen Hewitt19-Jan-06 12:31
Stephen Hewitt19-Jan-06 12:31 
GeneralRe: ActiveX + DLL Pin
PaulNeyman20-Jan-06 4:30
PaulNeyman20-Jan-06 4:30 
GeneralRe: ActiveX + DLL Pin
Stephen Hewitt20-Jan-06 4:52
Stephen Hewitt20-Jan-06 4:52 
GeneralRe: ActiveX + DLL Pin
PaulNeyman23-Jan-06 9:07
PaulNeyman23-Jan-06 9:07 
Questionmaking a custom control that shows focus Pin
stephen.hazel19-Jan-06 9:39
stephen.hazel19-Jan-06 9:39 
AnswerRe: making a custom control that shows focus Pin
Chris Losinger19-Jan-06 10:19
professionalChris Losinger19-Jan-06 10:19 
Steve Hazel wrote:
The actual drawing of the control as focused is easy,
but HOW to I correctly respond to these focus messages???


most of the buttons i've done just check the flags in the DRAWITEMSTRUCT they get in their DrawItem handler and draw as focused if necessary (ie. if (pDIS->itemState & ODS_FOCUS) != 0).

you don't need to track key presses or anything like that - Windows will keep track of which control has focus. the control just draws itself accordingly, with the flags Windows hands it.


Cleek | Image Toolkits | Thumbnail maker

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 
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 

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.