Thanx for listening,
T.L. Disbro
1- The CWnd* is the windows you're using. If you're using DC (like
CWindowDC) you're probably coding in a member class of a CWnd derived class.
That means you can simply pass 'this' as parameter.
2- The function you're using requieres the main application window. For
this, you can use
AfxGetApp()->m_pMainWnd;
or
AfxGetMainWnd();
Tomas Restrepo
win...@bigfoot.com
http://www.geocities.com/SiliconValley/Heights/3401
Terry Disbro <ox...@dmrtc.net> wrote in message
35D43646...@dmrtc.net...
> For most of the functions you describe there's two choices:
>
> 1- The CWnd* is the windows you're using. If you're using DC (like CWindowDC)
> you're probably coding in a member class of a CWnd derived class. That means
> you can simply pass 'this' as parameter.
>
> 2- The function you're using requieres the main application window. For this,
> you can use
> AfxGetApp()->m_pMainWnd; or AfxGetMainWnd();
Tomas:
A couple of quick questions:
1. In CWindowDC( CWnd* pWnd ); is pWnd the "handle" of CWnd*?
2. Is it a pointer that points to a block of data that has all the information
associated with CWnd*?
3. Is there a way to find out what this information is and how it is structured?
Thanks in advance,
Brad McMillan
Tomas Restrepo wrote:
> For most of the functions you describe there's two choices:
>
> 1- The CWnd* is the windows you're using. If you're using DC (like
> CWindowDC) you're probably coding in a member class of a CWnd derived class.
> That means you can simply pass 'this' as parameter.
>
> 2- The function you're using requieres the main application window. For
> this, you can use
> AfxGetApp()->m_pMainWnd;
> or
> AfxGetMainWnd();
>
Greetings, Pi.