|
-
June 24th, 2019, 07:25 AM
#1
[RESOLVED] SetFocusRect with CheckBox (no .rc file). How to?
Can't seem to infer how to get a focusrect (dotted-line rectangle) around a WinAPI checkbox.
Have tried DrawFocusRect() and also SendMessage() using SET_FOCUS. Maybe I got some parameters wrong? Am still unsure as to what is the accurate HDC to provide to DrawFocusRect.
What code accomplishes this and where in the Window Proc list should it be placed?
How do I determine the correct HDC to provide as the first parameter in DrawFocusRect().
Do I need to use BeginPaint() and EndPaint() around DrawFocusRect()?
Where do I place DrawFocusRect() in Window Procedure to make it affect the checkbox?
If it isn't DrawFocusRect() or SendMessage (supplying WM_SETFOCUS and BST_FOCUS) then how do I get the checkbox to be framed by a dotted-line rectangle?
Appreciate your help, have tried loads of searching on the topic with no answer so far...
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|