Click here to Skip to main content
15,914,016 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Classes, new, delete, destructors Pin
James R. Twine18-May-01 8:32
James R. Twine18-May-01 8:32 
GeneralRe: Classes, new, delete, destructors Pin
José Luis Sogorb18-May-01 9:40
José Luis Sogorb18-May-01 9:40 
GeneralRe: Classes, new, delete, destructors Pin
James R. Twine18-May-01 10:14
James R. Twine18-May-01 10:14 
GeneralRe: Classes, new, delete, destructors Pin
José Luis Sogorb18-May-01 23:22
José Luis Sogorb18-May-01 23:22 
GeneralRe: Classes, new, delete, destructors Pin
James R. Twine19-May-01 2:16
James R. Twine19-May-01 2:16 
GeneralMailslot Problem Pin
18-May-01 4:27
suss18-May-01 4:27 
GeneralGeneral Question Pin
mr200318-May-01 4:11
mr200318-May-01 4:11 
GeneralRe: General Question Pin
Stan Shannon18-May-01 9:45
Stan Shannon18-May-01 9:45 
1) Typically, if you want to actually render a GDI object of whatever class, you would uses the DC provided by in the OnPaint/OnDraw handlers in the CWnd/CView classes. I rarely use CClientDC, unless I'm getting information related to the dc of a specific window or the system window (CClientDC( NULL ))in order to set up some aspect of the GDI object in question.

2) GetDocument is a CView method which allows the View to access data/functionality in the associated document class. When the View needs to communicate information to, retrieve information from, or in some way affect the Document, it calls GetDocument().

3) Not directly, but you can if you set the code up correctly. However, it does not sound like good codeing practice to me.
GeneralMemory Mapped Files and Security under IIS 5.0 / Win2K... Pin
James R. Twine18-May-01 3:15
James R. Twine18-May-01 3:15 
GeneralDrag and Drop Pin
Eran18-May-01 2:55
Eran18-May-01 2:55 
GeneralRe: Drag and Drop Pin
Tomasz Sowinski18-May-01 3:06
Tomasz Sowinski18-May-01 3:06 
GeneralTCP/IP Socket programming Pin
Gerry18-May-01 2:03
Gerry18-May-01 2:03 
GeneralRe: TCP/IP Socket programming Pin
18-May-01 2:29
suss18-May-01 2:29 
GeneralRe: TCP/IP Socket programming Pin
Gerry18-May-01 2:45
Gerry18-May-01 2:45 
GeneralRe: TCP/IP Socket programming Pin
markkuk20-May-01 21:06
markkuk20-May-01 21:06 
QuestionCPrintDialog::GetDefaults() doesn't work? Pin
Joep18-May-01 1:31
Joep18-May-01 1:31 
AnswerRe: CPrintDialog::GetDefaults() doesn't work? Pin
Gerry18-May-01 3:21
Gerry18-May-01 3:21 
GeneralUnsing STL in cunjunction with MFC Pin
18-May-01 1:19
suss18-May-01 1:19 
GeneralRe: Unsing STL in cunjunction with MFC Pin
James R. Twine18-May-01 2:57
James R. Twine18-May-01 2:57 
QuestionQuestion on pass HBITMAP using WM_COPYDATA? Pin
18-May-01 1:01
suss18-May-01 1:01 
QuestionQuestion on pass HBITMAP using WM_COPYDATA? Pin
18-May-01 1:01
suss18-May-01 1:01 
AnswerRe: Question on pass HBITMAP using WM_COPYDATA? Pin
#realJSOP18-May-01 2:48
professional#realJSOP18-May-01 2:48 
GeneralRe: Question on pass HBITMAP using WM_COPYDATA? Pin
18-May-01 20:49
suss18-May-01 20:49 
GeneralMFC SplitterBar *** SDI without Document/View Architecture *** Pin
Hubbard18-May-01 0:50
Hubbard18-May-01 0:50 
GeneralChild window resizing problem!! Pin
17-May-01 23:22
suss17-May-01 23:22 

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.