Click here to Skip to main content
15,906,625 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to monitor network traffic for a process Pin
Garth J Lancaster7-Mar-10 19:08
professionalGarth J Lancaster7-Mar-10 19:08 
GeneralRe: How to monitor network traffic for a process Pin
feanorgem8-Mar-10 5:41
feanorgem8-Mar-10 5:41 
AnswerRe: How to monitor network traffic for a process Pin
Stephen Hewitt7-Mar-10 16:12
Stephen Hewitt7-Mar-10 16:12 
GeneralRe: How to monitor network traffic for a process Pin
feanorgem7-Mar-10 18:44
feanorgem7-Mar-10 18:44 
GeneralRe: How to monitor network traffic for a process Pin
Stephen Hewitt7-Mar-10 19:38
Stephen Hewitt7-Mar-10 19:38 
GeneralRe: How to monitor network traffic for a process Pin
feanorgem8-Mar-10 5:12
feanorgem8-Mar-10 5:12 
QuestionMouse down on disabled button Pin
marko20107-Mar-10 6:58
marko20107-Mar-10 6:58 
Answer[Wrong Answer]Re: Mouse down on disabled button [modified] Pin
Avi Berger7-Mar-10 12:42
Avi Berger7-Mar-10 12:42 
Edit: This is WRONG. I was obviously not thinking. Please ignore it.

I have not tried this. Why don't I tell you my idea and you can tell me if it is right? Smile | :)

( I am presuming that you are using MFC. For win32, you would use window subclassing. )

Derive a class from CButton.

Override OnRButtonDown(). Have it enable the (button) window.

Add a data member of this class to the class of the parent window.

In the parent window, when the button is created, associate it with this data member. If the parent window is a dialog, you can use the DDX mechanism for this - see DoDataExchange and DDX_Control. If you are manually creating the button, do it with this variable's Create() member function.

That's it.
Please do not read this signature.
modified on Monday, March 8, 2010 9:57 AM

GeneralRe: Mouse down on disabled button Pin
LunaticFringe7-Mar-10 22:24
LunaticFringe7-Mar-10 22:24 
GeneralRe: Mouse down on disabled button Pin
Avi Berger8-Mar-10 4:57
Avi Berger8-Mar-10 4:57 
QuestionMessage Removed Pin
7-Mar-10 6:13
MrMcIntyre7-Mar-10 6:13 
AnswerRe: Internet Connection Pin
Emilio Garavaglia7-Mar-10 6:23
Emilio Garavaglia7-Mar-10 6:23 
GeneralRe: Internet Connection Pin
MrMcIntyre7-Mar-10 6:40
MrMcIntyre7-Mar-10 6:40 
AnswerRe: Internet Connection [modified] PinPopular
Avi Berger7-Mar-10 7:59
Avi Berger7-Mar-10 7:59 
GeneralRe: Internet Connection Pin
Richard MacCutchan7-Mar-10 9:52
mveRichard MacCutchan7-Mar-10 9:52 
GeneralRe: Internet Connection Pin
Luc Pattyn7-Mar-10 10:23
sitebuilderLuc Pattyn7-Mar-10 10:23 
JokeRe: Internet Connection Pin
Richard MacCutchan7-Mar-10 10:35
mveRichard MacCutchan7-Mar-10 10:35 
GeneralRe: Internet Connection Pin
Luc Pattyn7-Mar-10 11:13
sitebuilderLuc Pattyn7-Mar-10 11:13 
GeneralRe: Internet Connection Pin
Avi Berger7-Mar-10 12:01
Avi Berger7-Mar-10 12:01 
GeneralRe: Internet Connection Pin
Tim Craig7-Mar-10 13:23
Tim Craig7-Mar-10 13:23 
GeneralRe: Internet Connection Pin
CPallini8-Mar-10 0:59
mveCPallini8-Mar-10 0:59 
AnswerRe: Internet Connection Pin
Emilio Garavaglia7-Mar-10 9:55
Emilio Garavaglia7-Mar-10 9:55 
QuestionHow to organize MFC project directory structure - main and DLL programs? Pin
Vaclav_7-Mar-10 5:10
Vaclav_7-Mar-10 5:10 
AnswerRe: How to organize MFC project directory structure - main and DLL programs? Pin
Richard MacCutchan7-Mar-10 5:22
mveRichard MacCutchan7-Mar-10 5:22 
GeneralRe: How to organize MFC project directory structure - main and DLL programs? Pin
Vaclav_7-Mar-10 5:46
Vaclav_7-Mar-10 5:46 

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.