Click here to Skip to main content
16,005,037 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: anybody help me out Pin
philiptabraham19-Aug-07 21:38
philiptabraham19-Aug-07 21:38 
GeneralRe: anybody help me out Pin
Hamid_RT19-Aug-07 21:49
Hamid_RT19-Aug-07 21:49 
AnswerRe: anybody help me out Pin
David Crow20-Aug-07 2:47
David Crow20-Aug-07 2:47 
AnswerBAD USER! Pin
leckey20-Aug-07 3:03
leckey20-Aug-07 3:03 
QuestionCRectTracker Pin
bob1697219-Aug-07 16:01
bob1697219-Aug-07 16:01 
AnswerRe: CRectTracker Pin
Mark Salsbery20-Aug-07 8:35
Mark Salsbery20-Aug-07 8:35 
GeneralRe: CRectTracker Pin
bob1697220-Aug-07 20:12
bob1697220-Aug-07 20:12 
GeneralRe: CRectTracker Pin
Mark Salsbery21-Aug-07 5:08
Mark Salsbery21-Aug-07 5:08 
bob16972 wrote:
it always amazes me how the OOP purists claim classes
should be small, do one thing well, and not require knowledge
of their surroundings.
I've found that extremely hard to accomplish in practice.


I especially find that problem in UI programming with MFC.  In a complex
UI, eventually windows need to communicate with each other.  Most
say the window shouldn't have knowledge of other window classes so
all communication is done through messages up and down the Z-order.
That makes it more OOP pure (I guess) at the C++ level but often the
messages need to be so specific that the class is really not "generic" anyway.


Back on topic... to me, since CRectTracker isn't a window, if I have to
derive a class from it anyhow, I have no problem making a custom
tracker class specific to one window. 

All it really needs to know is an owner CWnd to send messages to if it needs
to be more generic/reusable, just like it needs a CWnd to do its rubberbanding.


Have fun!
MArk



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionHow to monitor drive access? Pin
AlexFr19-Aug-07 12:34
AlexFr19-Aug-07 12:34 
AnswerRe: How to monitor drive access? Pin
Naveen19-Aug-07 15:37
Naveen19-Aug-07 15:37 
AnswerRe: How to monitor drive access? Pin
David Crow19-Aug-07 16:59
David Crow19-Aug-07 16:59 
QuestionRe: How to monitor drive access? Pin
AlexFr20-Aug-07 1:46
AlexFr20-Aug-07 1:46 
AnswerRe: How to monitor drive access? Pin
David Crow20-Aug-07 2:45
David Crow20-Aug-07 2:45 
Question[Message Deleted] Pin
xavierakx19-Aug-07 10:36
xavierakx19-Aug-07 10:36 
AnswerRe: Load time dynamic linking concept Pin
Waldermort19-Aug-07 10:46
Waldermort19-Aug-07 10:46 
GeneralRe: Load time dynamic linking concept Pin
xavierakx19-Aug-07 11:02
xavierakx19-Aug-07 11:02 
GeneralRe: Load time dynamic linking concept Pin
Waldermort19-Aug-07 11:14
Waldermort19-Aug-07 11:14 
GeneralRe: Load time dynamic linking concept Pin
Stephen Hewitt19-Aug-07 15:04
Stephen Hewitt19-Aug-07 15:04 
GeneralRe: Load time dynamic linking concept Pin
David Crow19-Aug-07 16:58
David Crow19-Aug-07 16:58 
GeneralRe: Load time dynamic linking concept Pin
xavierakx23-Aug-07 20:51
xavierakx23-Aug-07 20:51 
QuestionClient re-connect to Server Pin
Guruma19-Aug-07 1:12
Guruma19-Aug-07 1:12 
AnswerRe: Client re-connect to Server Pin
Arun krishnan19-Aug-07 5:00
Arun krishnan19-Aug-07 5:00 
GeneralRe: Client re-connect to Server Pin
Guruma19-Aug-07 12:45
Guruma19-Aug-07 12:45 
QuestionHow to get Functions arguments from shell32.dll Pin
Naveed72719-Aug-07 1:04
Naveed72719-Aug-07 1:04 
AnswerRe: How to get Functions arguments from shell32.dll Pin
Waldermort19-Aug-07 4:00
Waldermort19-Aug-07 4:00 

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.