Click here to Skip to main content
15,887,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAutoRestart + Execute Useer Code Pin
Bram van Kampen29-Jan-10 14:24
Bram van Kampen29-Jan-10 14:24 
QuestionAccessing vars in class created with new Pin
al250029-Jan-10 12:48
al250029-Jan-10 12:48 
AnswerRe: Accessing vars in class created with new Pin
Avi Berger29-Jan-10 14:00
Avi Berger29-Jan-10 14:00 
GeneralRe: Accessing vars in class created with new Pin
al250029-Jan-10 14:23
al250029-Jan-10 14:23 
GeneralRe: Accessing vars in class created with new Pin
al250029-Jan-10 15:55
al250029-Jan-10 15:55 
GeneralRe: Accessing vars in class created with new Pin
Avi Berger1-Feb-10 11:22
Avi Berger1-Feb-10 11:22 
AnswerRe: Accessing vars in class created with new Pin
Richard MacCutchan30-Jan-10 1:12
mveRichard MacCutchan30-Jan-10 1:12 
GeneralRe: Accessing vars in class created with new Pin
al250030-Jan-10 8:04
al250030-Jan-10 8:04 
I didn't really state the problem very well -

The whole point of this code is polymorphism to allow one virtual function to be called on the base class for various operations but especially drawing. This way a huge switch statement is avoided every time you want to draw an object (i.e. CInd1, CInd2.. etc.) and you don't have to modify the View class when adding a new object. It seems to be fairly standard - it's described very well in Horton's "Beginning Visual C++".

The downside appears to be the difficulty modifying existing elements but I solve that by a delete and replace operation (transparent to the user). My only difficulty was populating the CInd setup dialog to reflect the selected element but I think I have solved that by instantiating the dialog in the CInd1 class and calling a CIndicator display dialog virtual function.
QuestionRe: Accessing vars in class created with new Pin
David Crow30-Jan-10 12:52
David Crow30-Jan-10 12:52 
AnswerRe: Accessing vars in class created with new Pin
al25001-Feb-10 11:47
al25001-Feb-10 11:47 
QuestionHow to assign directory rights programmatically? Pin
Chintan29-Jan-10 10:38
Chintan29-Jan-10 10:38 
QuestionWindows Shell Replacement Pin
Code-o-mat29-Jan-10 9:22
Code-o-mat29-Jan-10 9:22 
AnswerRe: Windows Shell Replacement Pin
Richard MacCutchan29-Jan-10 9:49
mveRichard MacCutchan29-Jan-10 9:49 
GeneralRe: Windows Shell Replacement Pin
Code-o-mat29-Jan-10 10:18
Code-o-mat29-Jan-10 10:18 
GeneralRe: Windows Shell Replacement Pin
Richard MacCutchan29-Jan-10 22:08
mveRichard MacCutchan29-Jan-10 22:08 
GeneralRe: Windows Shell Replacement Pin
Code-o-mat30-Jan-10 6:18
Code-o-mat30-Jan-10 6:18 
GeneralRe: Windows Shell Replacement Pin
Richard MacCutchan30-Jan-10 9:27
mveRichard MacCutchan30-Jan-10 9:27 
AnswerRe: Windows Shell Replacement Pin
Nemanja Trifunovic29-Jan-10 10:04
Nemanja Trifunovic29-Jan-10 10:04 
GeneralRe: Windows Shell Replacement Pin
Code-o-mat29-Jan-10 10:24
Code-o-mat29-Jan-10 10:24 
AnswerRe: Windows Shell Replacement Pin
Rolf Kristensen29-Jan-10 12:21
Rolf Kristensen29-Jan-10 12:21 
QuestionRe: Windows Shell Replacement Pin
Bram van Kampen29-Jan-10 14:35
Bram van Kampen29-Jan-10 14:35 
AnswerRe: Windows Shell Replacement Pin
Rolf Kristensen29-Jan-10 21:17
Rolf Kristensen29-Jan-10 21:17 
GeneralRe: Windows Shell Replacement Pin
Bram van Kampen30-Jan-10 14:37
Bram van Kampen30-Jan-10 14:37 
GeneralRe: Windows Shell Replacement Pin
Code-o-mat30-Jan-10 6:39
Code-o-mat30-Jan-10 6:39 
AnswerRe: Windows Shell Replacement Pin
Saurabh.Garg29-Jan-10 15:59
Saurabh.Garg29-Jan-10 15:59 

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.