What is the difference??
-
I have the below code: There is a classs"CPaintDC". Can anyone please tell me what is the difference between the following 2 statements: 1.)CPaintDC *pDC = new CPaintDC(this); 2.)CPaintDC* pDC=new CPaintDC;
-
I have the below code: There is a classs"CPaintDC". Can anyone please tell me what is the difference between the following 2 statements: 1.)CPaintDC *pDC = new CPaintDC(this); 2.)CPaintDC* pDC=new CPaintDC;
-
I have the below code: There is a classs"CPaintDC". Can anyone please tell me what is the difference between the following 2 statements: 1.)CPaintDC *pDC = new CPaintDC(this); 2.)CPaintDC* pDC=new CPaintDC;
DC is related to Window, in other words, we say "a DC of a window". 1) the DC of "this" window - similar to ::GetDC(this->m_hWnd); 2) the DC of screen - similar to ::GetDC(0).
A special image tool for Windows C++ programmers, don't miss it! A nice hyper tool for optimizing your Microsoft html-help contents. Includeh10