Click here to Skip to main content
15,889,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What's The Best Way... Pin
Blake Miller1-Mar-05 12:21
Blake Miller1-Mar-05 12:21 
GeneralRe: What's The Best Way... Pin
LighthouseJ1-Mar-05 14:47
LighthouseJ1-Mar-05 14:47 
GeneralRe: What's The Best Way... Pin
PJ Arends28-Feb-05 6:02
professionalPJ Arends28-Feb-05 6:02 
GeneralWinHTTP, error 12175, howto Pin
qdzhulf27-Feb-05 3:10
qdzhulf27-Feb-05 3:10 
GeneralRe: WinHTTP, error 12175, howto Pin
KitchenMaster26-Feb-09 12:02
KitchenMaster26-Feb-09 12:02 
QuestionHow to catch events? Pin
Roozbeh6926-Feb-05 20:13
professionalRoozbeh6926-Feb-05 20:13 
GeneralPDF format Pin
Chna26-Feb-05 18:58
Chna26-Feb-05 18:58 
GeneralWhen to draw the focus rectangle Pin
Ron Waller26-Feb-05 17:38
Ron Waller26-Feb-05 17:38 
How do you know when you are supposed to draw the focus on a control?

I'm referring to controls on dialog boxes.

At first when you click on a control with the mouse, the control doesn't draw the focus rectangle. It only draws it once you start navigating the dialog with the keyboard.

I'd like to be able to find out from within the control using its hWnd.

(I'm trying to skin Win98-style buttons in VC++ 6.0 to give them a WinXP look by overriding drawing messages [WM_PAINT, BM_SETSEL, etc.] in the button's windows-class wnd proc. I've got everything done so far, except this, and I've spent hours searching MSDN and the internet trying to find it.)
GeneralRe: When to draw the focus rectangle Pin
Ravi Bhavnani27-Feb-05 5:55
professionalRavi Bhavnani27-Feb-05 5:55 
GeneralRe: When to draw the focus rectangle Pin
Michael Dunn27-Feb-05 7:04
sitebuilderMichael Dunn27-Feb-05 7:04 
Generalrandom number between.... Pin
Raylan26-Feb-05 16:20
Raylan26-Feb-05 16:20 
GeneralRe: random number between.... Pin
Ravi Bhavnani26-Feb-05 16:28
professionalRavi Bhavnani26-Feb-05 16:28 
GeneralRe: random number between.... Pin
Sheng Jiang 蒋晟27-Feb-05 9:39
Sheng Jiang 蒋晟27-Feb-05 9:39 
Generalcolor values for palettes Pin
nm_11426-Feb-05 14:10
nm_11426-Feb-05 14:10 
Generalint, read from text file Pin
jonavon blakly26-Feb-05 14:02
jonavon blakly26-Feb-05 14:02 
GeneralRe: int, read from text file Pin
Ravi Bhavnani26-Feb-05 14:11
professionalRavi Bhavnani26-Feb-05 14:11 
GeneralRe: int, read from text file Pin
uus9926-Feb-05 15:37
uus9926-Feb-05 15:37 
GeneralRe: int, read from text file Pin
jonavon blakly27-Feb-05 5:40
jonavon blakly27-Feb-05 5:40 
GeneralRe: int, read from text file Pin
uus9927-Feb-05 13:12
uus9927-Feb-05 13:12 
GeneralRe: int, read from text file Pin
eli1502197927-Feb-05 4:16
eli1502197927-Feb-05 4:16 
GeneralRe: int, read from text file Pin
jonavon blakly27-Feb-05 5:28
jonavon blakly27-Feb-05 5:28 
GeneralRe: int, read from text file (Try this 1) Pin
Alton Williams27-Feb-05 23:39
Alton Williams27-Feb-05 23:39 
Generalcode doesn't work when compiled in debug mode Pin
lino_i26-Feb-05 12:51
lino_i26-Feb-05 12:51 
GeneralRe: code doesn't work when compiled in debug mode Pin
Rob Manderson26-Feb-05 13:21
protectorRob Manderson26-Feb-05 13:21 
GeneralRe: code doesn't work when compiled in debug mode Pin
lino_i26-Feb-05 14:18
lino_i26-Feb-05 14:18 

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.