Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralConversion of a default file format to PDF. Pin
1-Apr-01 19:45
suss1-Apr-01 19:45 
GeneralRe: Conversion of a default file format to PDF. Pin
Kannan Kalyanaraman1-Apr-01 20:56
Kannan Kalyanaraman1-Apr-01 20:56 
QuestionHow to create a Button array ........ Pin
Vistac1-Apr-01 19:31
Vistac1-Apr-01 19:31 
AnswerRe: How to create a Button array ........ Pin
Erik Thompson1-Apr-01 21:36
sitebuilderErik Thompson1-Apr-01 21:36 
GeneralRe: How to create a Button array ........ Pin
Vistac2-Apr-01 6:17
Vistac2-Apr-01 6:17 
GeneralRe: How to create a Button array ........ Pin
Erik Thompson2-Apr-01 6:23
sitebuilderErik Thompson2-Apr-01 6:23 
GeneralBest way to write a drawing tool? (AKA The nightmare of windowless ActiveX) Pin
Brendan Tregear1-Apr-01 18:56
Brendan Tregear1-Apr-01 18:56 
GeneralRe: Best way to write a drawing tool? (AKA The nightmare of windowless ActiveX) Pin
Christian Graus1-Apr-01 19:09
protectorChristian Graus1-Apr-01 19:09 
Only you can answer question one, but I'd suggest that whatever you do, you'll find there are hurdles. If it were me, I would stick with it, on the basis that I refuse to be beaten by a machine. If it was for work and it was taking too long, I'd do something else and fix it in my time, as a matter of pride. However, I have some serious issues, so take this as a comment on my state of mind rather than advice...

As for question two, in my paint program I created a virtual base class for drawing tools, and put in functions for every message that a tool is likely to use ( OnLButtonDown, OnMouseMove, OnDraw, OnPrepareDC, etc ) and then put the appropriate code in each derived class. So my view class looks like this:

CGrausPaintView::OnMouseMove(CPoint point, etc)
{
PaintTool->OnMouseMove(point, etc);

}


Much cleaner and easier to extend.

Christian

The content of this post is not necessarily the opinion of my yadda yadda yadda.

To understand recursion, we must first understand recursion.
GeneralThanks. You've given me the energy to give it another shot :) (n/t) Pin
Brendan Tregear2-Apr-01 14:12
Brendan Tregear2-Apr-01 14:12 
QuestionWhat this means?! Pin
webman011-Apr-01 18:40
webman011-Apr-01 18:40 
GeneralArray copying Pin
1-Apr-01 17:39
suss1-Apr-01 17:39 
GeneralRe: Array copying Pin
Christian Graus1-Apr-01 17:50
protectorChristian Graus1-Apr-01 17:50 
GeneralChanging the clock text Pin
Greg Hedlund1-Apr-01 16:41
Greg Hedlund1-Apr-01 16:41 
GeneralGetVolumeInformation Pin
paulb1-Apr-01 15:52
paulb1-Apr-01 15:52 
GeneralSupport MultiLanguage in VC Pin
hs1-Apr-01 15:29
hs1-Apr-01 15:29 
GeneralRe: Support MultiLanguage in VC Pin
Masaaki Onishi1-Apr-01 16:02
Masaaki Onishi1-Apr-01 16:02 
GeneralMy problem is: Pin
hs1-Apr-01 16:35
hs1-Apr-01 16:35 
GeneralRe: My problem is: Pin
Masaaki Onishi1-Apr-01 17:56
Masaaki Onishi1-Apr-01 17:56 
GeneralRe: Support MultiLanguage in VC Pin
l a u r e n2-Apr-01 6:45
l a u r e n2-Apr-01 6:45 
GeneralRe: Support MultiLanguage in VC Pin
Masaaki Onishi2-Apr-01 7:08
Masaaki Onishi2-Apr-01 7:08 
Generaldot operator menu... Pin
Cam1-Apr-01 15:28
Cam1-Apr-01 15:28 
GeneralRe: dot operator menu... Pin
Christian Graus1-Apr-01 17:07
protectorChristian Graus1-Apr-01 17:07 
Generaltry / catch : not compiled && unreachable in release build. Pin
Matt Cooper1-Apr-01 14:54
Matt Cooper1-Apr-01 14:54 
GeneralRe: try / catch : not compiled && unreachable in release build. Pin
Tim Deveaux2-Apr-01 6:54
Tim Deveaux2-Apr-01 6:54 
GeneralRe: try / catch : Oops - fogot something... Pin
Tim Deveaux2-Apr-01 13:33
Tim Deveaux2-Apr-01 13:33 

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.