TestEgr 1.5b2 : ulteriori modifiche.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
// TestEgrView
|
||||
|
||||
|
||||
//--------------------------- Include ----------------------------------------
|
||||
#include "stdafx.h"
|
||||
#include "TestEgrView.h"
|
||||
#include "resource.h"
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
TestEgrView::TestEgrView( void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
TestEgrView::Create( CWnd* pParent, int nID)
|
||||
{
|
||||
if ( pParent == nullptr ||
|
||||
pParent->GetDlgItem( nID) == nullptr)
|
||||
return false ;
|
||||
|
||||
CString className = AfxRegisterWndClass( CS_HREDRAW | CS_VREDRAW | CS_OWNDC,
|
||||
AfxGetApp()->LoadCursor( IDC_POINTER), NULL, NULL) ;
|
||||
|
||||
CRect rectWin ;
|
||||
pParent->GetDlgItem( nID)->GetWindowRect( rectWin) ;
|
||||
pParent->ScreenToClient( rectWin) ;
|
||||
|
||||
if ( CreateEx( 0, className, L"TestEgrView",
|
||||
WS_VISIBLE | WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, rectWin, pParent, nID) != 0) {
|
||||
SetWindowPos( &wndTop, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE) ;
|
||||
return true ;
|
||||
}
|
||||
else
|
||||
return false ;
|
||||
}
|
||||
Reference in New Issue
Block a user