Click here to Skip to main content
15,886,963 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: File Locations on Win 7 Pin
_AnsHUMAN_ 13-Oct-11 20:21
_AnsHUMAN_ 13-Oct-11 20:21 
AnswerRe: File Locations on Win 7 Pin
«_Superman_»13-Oct-11 22:03
professional«_Superman_»13-Oct-11 22:03 
GeneralRe: File Locations on Win 7 Pin
softwaremonkey13-Oct-11 22:50
softwaremonkey13-Oct-11 22:50 
AnswerRe: File Locations on Win 7 Pin
Snorri Kristjansson14-Oct-11 1:27
professionalSnorri Kristjansson14-Oct-11 1:27 
GeneralRe: File Locations on Win 7 Pin
softwaremonkey14-Oct-11 10:13
softwaremonkey14-Oct-11 10:13 
AnswerRe: File Locations on Win 7 Pin
jkirkerx14-Oct-11 7:49
professionaljkirkerx14-Oct-11 7:49 
GeneralRe: File Locations on Win 7 Pin
softwaremonkey14-Oct-11 10:21
softwaremonkey14-Oct-11 10:21 
Question[mfc, custom control] Default Button Pin
csrss13-Oct-11 6:15
csrss13-Oct-11 6:15 
Hi.
I got my own custom button where i am doing all the painting myself. And now there is a problem: default button behavior. You know, like, these fancy regular windows buttons - when you click inside some Edit Box (let it be anywhere on the main app window) - button is drawn with blue shinning color. When you click on another button - that another button becomes default one. When you click inside some other edit box, again - this first button is drawn with a blue shinning color. The thing is : it is not an issue to check the style with:

if( GetStyle() & BS_DEFPUSHBUTTON ) then...


and do some additional drawing. The problem is: how to catch when a user clicked somewhere on another control which is not mine, which is regular windows edit box for example. Or another button which is just windows regular button? How do my button know when to draw some additional stuff to indicate it is a default button?

Thanks
011011010110000101100011011010000110100101101110
0110010101110011

AnswerRe: Implement an NM_CUSTOMDRAW Message Handler Pin
Software_Developer13-Oct-11 6:36
Software_Developer13-Oct-11 6:36 
GeneralRe: Implement an NM_CUSTOMDRAW Message Handler Pin
csrss13-Oct-11 6:51
csrss13-Oct-11 6:51 
AnswerRe: [mfc, custom control] Default Button Pin
Richard MacCutchan13-Oct-11 7:48
mveRichard MacCutchan13-Oct-11 7:48 
GeneralRe: [mfc, custom control] Default Button Pin
csrss13-Oct-11 7:58
csrss13-Oct-11 7:58 
AnswerRe: [mfc, custom control] Default Button Pin
André Kraak13-Oct-11 8:41
André Kraak13-Oct-11 8:41 
GeneralRe: [mfc, custom control] Default Button Pin
csrss13-Oct-11 9:06
csrss13-Oct-11 9:06 
GeneralRe: [mfc, custom control] Default Button Pin
André Kraak13-Oct-11 9:12
André Kraak13-Oct-11 9:12 
QuestionRegistry - basic questions - read / write in MFC VC++ Pin
Vaclav_13-Oct-11 5:25
Vaclav_13-Oct-11 5:25 
QuestionRe: Registry - basic questions - read / write in MFC VC++ Pin
David Crow13-Oct-11 5:36
David Crow13-Oct-11 5:36 
AnswerRe: Registry - basic questions - read / write in MFC VC++ Pin
Vaclav_13-Oct-11 7:13
Vaclav_13-Oct-11 7:13 
AnswerRe: Registry - basic questions - read / write in MFC VC++ Pin
Richard MacCutchan13-Oct-11 5:53
mveRichard MacCutchan13-Oct-11 5:53 
QuestionTo ask the user information via keyboard Pin
antonio34312-Oct-11 11:40
antonio34312-Oct-11 11:40 
AnswerRe: To ask the user information via keyboard Pin
Maximilien12-Oct-11 14:04
Maximilien12-Oct-11 14:04 
GeneralRe: To ask the user information via keyboard Pin
Madhu Nair12-Oct-11 18:26
Madhu Nair12-Oct-11 18:26 
GeneralRe: To ask the user information via keyboard Pin
antonio34313-Oct-11 7:10
antonio34313-Oct-11 7:10 
GeneralRe: To ask the user information via keyboard Pin
Maximilien13-Oct-11 7:41
Maximilien13-Oct-11 7:41 
GeneralRe: To ask the user information via keyboard Pin
antonio34313-Oct-11 9:05
antonio34313-Oct-11 9:05 

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.