Click here to Skip to main content
15,921,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to handle windows messages in COM Exe server? Pin
Monty218-Dec-03 20:25
Monty218-Dec-03 20:25 
GeneralRe: How to handle windows messages in COM Exe server? Pin
Prakash Nadar18-Dec-03 21:11
Prakash Nadar18-Dec-03 21:11 
AnswerRe: How to handle windows messages in COM Exe server? Pin
John R. Shaw18-Dec-03 21:06
John R. Shaw18-Dec-03 21:06 
Generaldrawing from doc Pin
R. Thomas18-Dec-03 19:25
R. Thomas18-Dec-03 19:25 
GeneralRe: drawing from doc Pin
Monty218-Dec-03 19:47
Monty218-Dec-03 19:47 
GeneralRe: drawing from doc Pin
R. Thomas18-Dec-03 20:02
R. Thomas18-Dec-03 20:02 
GeneralRe: drawing from doc Pin
Monty218-Dec-03 20:21
Monty218-Dec-03 20:21 
GeneralRe: drawing from doc Pin
John R. Shaw18-Dec-03 20:40
John R. Shaw18-Dec-03 20:40 
What you seem to want is where to store the rectangle information.

1) If more then 1 view needs the rectangle information, then store it in the document class and tell all views when the information has changed.

2) If only the current view needs the rectangle information, then store it in the view class.

Question: "if i do this in doc..how do i get the DC????"
Answer: The DC only matters when your are drawing the image, and it is given to you (if you are using MFC).

Question: "CClient dc(this);"
Answer: Yes! But you normaly do not need to (when using MFC), since it is given to you in the OnDraw() function.

Question: "will this dc be the dc of the view???"
Answer: If you are getting the DC in the view class, then yes.

Question: "can i do the drtawiung using this dc that i make in doc???"
Answer: Yes! But a document class does not know a DC from a hole in the ground. I wish I could say NO but if you try hard enough then the answer must be yes. (DO NOT DO THIS!)

INTP
GeneralGets a toolbar button ID!!! Pin
Eugene Pustovoyt18-Dec-03 19:22
Eugene Pustovoyt18-Dec-03 19:22 
GeneralRe: Gets a toolbar button ID!!! Pin
John R. Shaw18-Dec-03 20:02
John R. Shaw18-Dec-03 20:02 
GeneralRe: Gets a toolbar button ID!!! Pin
Eugene Pustovoyt18-Dec-03 20:23
Eugene Pustovoyt18-Dec-03 20:23 
GeneralRe: Gets a toolbar button ID!!! Pin
John R. Shaw18-Dec-03 22:01
John R. Shaw18-Dec-03 22:01 
GeneralRe: Gets a toolbar button ID!!! Pin
Eugene Pustovoyt18-Dec-03 23:29
Eugene Pustovoyt18-Dec-03 23:29 
Generalabout CFileDialog... Pin
Grrrr18-Dec-03 18:34
Grrrr18-Dec-03 18:34 
GeneralRe: about CFileDialog... Pin
John R. Shaw18-Dec-03 19:34
John R. Shaw18-Dec-03 19:34 
Generalchanging the menu bar due to a drop-down list selection Pin
Hin Jang18-Dec-03 18:32
Hin Jang18-Dec-03 18:32 
GeneralRe: changing the menu bar due to a drop-down list selection Pin
John R. Shaw18-Dec-03 19:13
John R. Shaw18-Dec-03 19:13 
GeneralWM_CLOSE Priority Pin
Anonymous18-Dec-03 18:24
Anonymous18-Dec-03 18:24 
GeneralRe: WM_CLOSE Priority Pin
John R. Shaw18-Dec-03 18:58
John R. Shaw18-Dec-03 18:58 
GeneralRe: WM_CLOSE Priority Pin
Anonymous18-Dec-03 19:14
Anonymous18-Dec-03 19:14 
GeneralRe: WM_CLOSE Priority Pin
Monty218-Dec-03 19:42
Monty218-Dec-03 19:42 
GeneralRe: WM_CLOSE Priority Pin
John R. Shaw18-Dec-03 21:36
John R. Shaw18-Dec-03 21:36 
Generalde-selecting items in cList Control Pin
azusakt18-Dec-03 17:32
azusakt18-Dec-03 17:32 
GeneralRe: de-selecting items in cList Control Pin
John R. Shaw18-Dec-03 17:47
John R. Shaw18-Dec-03 17:47 
GeneralDirectory Contents Question Pin
Roger Wright18-Dec-03 16:17
professionalRoger Wright18-Dec-03 16:17 

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.