Click here to Skip to main content
15,925,309 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalprotocols designing in vc++6.0 for OSI model Help!! Pin
lalitkale16-Aug-03 6:02
lalitkale16-Aug-03 6:02 
GeneralRe: protocols designing in vc++6.0 for OSI model Help!! Pin
aka the guy16-Aug-03 14:32
aka the guy16-Aug-03 14:32 
Generaldisplaying tabs using CTabCtrl Pin
flight_master16-Aug-03 3:51
flight_master16-Aug-03 3:51 
GeneralMario Bros Pin
The_Server16-Aug-03 3:31
The_Server16-Aug-03 3:31 
GeneralRe: Mario Bros Pin
Snyp16-Aug-03 6:02
Snyp16-Aug-03 6:02 
GeneralRe: Mario Bros Pin
John R. Shaw16-Aug-03 9:33
John R. Shaw16-Aug-03 9:33 
GeneralRe: Mario Bros Pin
parths17-Aug-03 17:25
parths17-Aug-03 17:25 
GeneralCSocket OnReceive Pin
prabagarm16-Aug-03 2:41
prabagarm16-Aug-03 2:41 
GeneralRe: CSocket OnReceive Pin
pxw16-Aug-03 11:37
pxw16-Aug-03 11:37 
QuestionHow to convert from .DOC to .PDF, please help me .......... Pin
Atif Bashir16-Aug-03 1:43
Atif Bashir16-Aug-03 1:43 
AnswerRe: How to convert from .DOC to .PDF, please help me .......... Pin
pxw16-Aug-03 10:48
pxw16-Aug-03 10:48 
GeneralDocument/View question Pin
7stud16-Aug-03 0:21
7stud16-Aug-03 0:21 
GeneralRe: Document/View question Pin
ColinDavies16-Aug-03 3:44
ColinDavies16-Aug-03 3:44 
GeneralRe: Document/View question Pin
Ravi Bhavnani16-Aug-03 7:09
professionalRavi Bhavnani16-Aug-03 7:09 
7stud wrote:
It seems to me the document got left out of the equation.

You're right - that's a terrible example and speaks volumes about the author and his/her editing crew. Also, as Colin pointed out, it should be CSketcherDoc* pDoc = GetDocument();, not CSketcher* ....

A better example would have obtained the coordinates used in the MoveTo() and LineTo() calls from the document. This would reinforce the notion that the document stores the data which is simply rendered by the view. A different view class might simply list the coordinates in a tabular form (perhaps in CListCtrl) instead of drawing within the view.

Hope this helps.

/ravi

Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com

GeneralRe: Document/View question Pin
7stud16-Aug-03 8:51
7stud16-Aug-03 8:51 
GeneralRe: Document/View question Pin
John R. Shaw16-Aug-03 10:05
John R. Shaw16-Aug-03 10:05 
GeneralRe: Document/View question Pin
7stud16-Aug-03 20:19
7stud16-Aug-03 20:19 
GeneralRe: Document/View question Pin
Bob Stanneveld17-Aug-03 5:15
Bob Stanneveld17-Aug-03 5:15 
Generalhooking Pin
kafchan200316-Aug-03 0:19
kafchan200316-Aug-03 0:19 
GeneralRe: hooking Pin
Alexander M.,16-Aug-03 14:47
Alexander M.,16-Aug-03 14:47 
GeneralRe: hooking Pin
kafchan200318-Aug-03 0:27
kafchan200318-Aug-03 0:27 
Generalvectors. Pin
WREY15-Aug-03 23:30
WREY15-Aug-03 23:30 
GeneralRe: vectors. Pin
Neville Franks15-Aug-03 23:42
Neville Franks15-Aug-03 23:42 
GeneralRe: vectors. Pin
Anonymous16-Aug-03 4:30
Anonymous16-Aug-03 4:30 
GeneralRe: vectors. Pin
markkuk16-Aug-03 6:29
markkuk16-Aug-03 6:29 

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.