App (Parent) -> Client 에서 받기
AfxGetApp
The pointer returned by this function can be used to access application information such as the main message-dispatch code or the topmost window.
CWinApp* AFXAPI AfxGetApp( );
Return Value
A pointer to the single CWinApp object for the application.
Example
// Print the application's executable filename.
TRACE("Executable filename = %s\n", AfxGetApp()->m_pszExeName);
Parent 를 달라고 할 때
Call this function to get a pointer to a child window's parent window (if any).
CWnd* GetParent( ) const;
Return Value
See the Return Values section in GetParent in the Platform SDK.
Remarks
The GetParent function returns a pointer to the immediate parent (if it exists). In contrast, the GetParentOwner function returns a pointer to the most immediate parent or owner window that is not a child window (does not have the WS_CHILD style). If you have a child window within a child window GetParent and GetParentOwner return different results.
Monday, January 02, 2006
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment