Click here to Skip to main content
15,924,829 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Message Question! Help me! Pin
kiluar23-Jan-07 21:50
kiluar23-Jan-07 21:50 
QuestionNeed idea about Command line compilation.. Pin
Sakthiu23-Jan-07 18:52
Sakthiu23-Jan-07 18:52 
AnswerRe: Need idea about Command line compilation.. Pin
Monty223-Jan-07 19:05
Monty223-Jan-07 19:05 
AnswerRe: Need idea about Command line compilation.. Pin
Naveen23-Jan-07 19:11
Naveen23-Jan-07 19:11 
GeneralRe: Need idea about Command line compilation.. Pin
Sakthiu23-Jan-07 19:40
Sakthiu23-Jan-07 19:40 
GeneralRe: Need idea about Command line compilation.. Pin
Naveen23-Jan-07 19:47
Naveen23-Jan-07 19:47 
GeneralRe: Need idea about Command line compilation.. Pin
Sakthiu23-Jan-07 19:59
Sakthiu23-Jan-07 19:59 
QuestionA Question on SetWindowOrg Pin
sunshine jeffrey23-Jan-07 18:52
sunshine jeffrey23-Jan-07 18:52 
Hi, all,
just got 2 questions about the use of method SetWindowOrg:

void CCoordinateTestView::OnDraw(CDC* pDC)<br />
{<br />
	  pDC->SetMapMode (MM_TEXT);<br />
	  pDC->SetWindowOrg (100,100); <br />
	  //pDC->SetViewportOrg(-100,-100);<br />
	  pDC->Rectangle(CRect(100, 100, 300, 300));<br />
}


1.
I find that
pDC->SetWindowOrg (100,100);
actually has the same effect with
pDC->SetViewportOrg(-100,-100);
So either of them can take place of the other. They're essentially equivalent. Is that right?

2.
The literal meaning of SetWindowOrg, as I guess, is to set maybe the left-top position when a window (like in SingleDoc) is created. That is, every time I instantiate a window, it's position should be fixed. But the fact is not so. Then why is it named Set "Window" Org? What does this "Window" refer to?

Maybe my questions look a litte strange.

Thanks a lot for any comments!


-- modified at 1:21 Wednesday 24th January, 2007

Jeffrey

AnswerRe: A Question on SetWindowOrg Pin
Mark Salsbery24-Jan-07 6:35
Mark Salsbery24-Jan-07 6:35 
GeneralRe: A Question on SetWindowOrg Pin
sunshine jeffrey25-Jan-07 6:39
sunshine jeffrey25-Jan-07 6:39 
QuestionBase Address Pin
Shouvik Das23-Jan-07 18:40
Shouvik Das23-Jan-07 18:40 
AnswerRe: Base Address Pin
Stephen Hewitt23-Jan-07 18:57
Stephen Hewitt23-Jan-07 18:57 
GeneralRe: Base Address Pin
Shouvik Das23-Jan-07 19:05
Shouvik Das23-Jan-07 19:05 
GeneralRe: Base Address Pin
Stephen Hewitt23-Jan-07 19:11
Stephen Hewitt23-Jan-07 19:11 
GeneralRe: Base Address Pin
Shouvik Das23-Jan-07 19:19
Shouvik Das23-Jan-07 19:19 
GeneralRe: Base Address Pin
Stephen Hewitt23-Jan-07 19:29
Stephen Hewitt23-Jan-07 19:29 
GeneralRe: Base Address Pin
Shouvik Das23-Jan-07 19:33
Shouvik Das23-Jan-07 19:33 
GeneralRe: Base Address Pin
Naveen23-Jan-07 19:16
Naveen23-Jan-07 19:16 
GeneralRe: Base Address Pin
Shouvik Das23-Jan-07 19:20
Shouvik Das23-Jan-07 19:20 
GeneralRe: Base Address Pin
Naveen23-Jan-07 20:30
Naveen23-Jan-07 20:30 
GeneralRe: Base Address Pin
Shouvik Das23-Jan-07 20:32
Shouvik Das23-Jan-07 20:32 
GeneralRe: Base Address Pin
Shouvik Das23-Jan-07 20:36
Shouvik Das23-Jan-07 20:36 
GeneralRe: Base Address Pin
Naveen23-Jan-07 21:30
Naveen23-Jan-07 21:30 
GeneralRe: Base Address Pin
Naveen24-Jan-07 1:20
Naveen24-Jan-07 1:20 
GeneralRe: Base Address Pin
Shouvik Das24-Jan-07 1:31
Shouvik Das24-Jan-07 1:31 

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.