hey leute ich habe mir mal eine App mit iHate Daisy gemacht(v16)
habe auch die v16 resdata parameter nur ingame crasht dann der client wenn ich die entsprechende taste drücke.
Code:
APP_SYSCOLLECTION "WndTile00.tga" "" 1 300 300 0x2410000 26
{
// Title String
"System Overview"
}
{
// Help Key
""
}
{
WTYPE_BUTTON WIDC_BUTTON1 "ButtNormal02.tga" 0 34 26 244 50 0x220010 0 0 0 0 0 0 0
{
// Title String
"Model Change"
}
{
// ToolTip
"Opens Model Change"
}
}
falls wer helfen möchte er soll ein fenster 300x300 sein wo 1 button(ButtNormal02.tga) ca in der mitte des Fensters ist.
WndField.cpp
Code:
CWndSysCollection::CWndSysCollection()
{
}
CWndSysCollection::~CWndSysCollection()
{
}
BOOL CWndSysCollection::Initialize( CWndBase* pWndParent, DWORD dwType )
{
return CWndNeuz::InitDialog( g_Neuz.GetSafeHwnd(), APP_SYSCOLLECTION, 0, CPoint( 0, 0 ), pWndParent );
}
BOOL CWndSysCollection::OnCommand( UINT nID, DWORD dwMessage, CWndBase* pWndBase )
{
return CWndNeuz::OnCommand( nID, dwMessage, pWndBase );
}
void CWndSysCollection::OnSize( UINT nType, int cx, int cy )
{
CWndNeuz::OnSize( nType, cx, cy );
}
void CWndSysCollection::OnLButtonUp( UINT nFlags, CPoint point )
{
}
void CWndSysCollection::OnLButtonDown( UINT nFlags, CPoint point )
{
}
BOOL CWndSysCollection::OnDropIcon( LPSHORTCUT pShortcut, CPoint point )
{
return TRUE;
}
void CWndSysCollection::OnDraw( C2DRender* p2DRender )
{
//wndCtrl[2] = GetWndCtrl( WIDC_STATIC3 ); Beipisle für control
}
HRESULT CWndSysCollection::RestoreDeviceObjects()
{
CWndNeuz::RestoreDeviceObjects();
return S_OK;
}
HRESULT CWndSysCollection::InvalidateDeviceObjects()
{
CWndNeuz::InvalidateDeviceObjects();
return S_OK;
}
HRESULT CWndSysCollection::DeleteDeviceObjects()
{
CWndNeuz::DeleteDeviceObjects();
InvalidateDeviceObjects();
return S_OK;
}
void CWndSysCollection::OnInitialUpdate( void )
{
CWndNeuz::OnInitialUpdate();
MoveParentCenter();
}
BOOL CWndSysCollection::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult )
{
switch (nID)
{
case WIDC_BUTTON1: // Model Change Button
{
g_WndMng.PutString("Model Change Window opens", 0, 0xff0000);
g_WndMng.m_pWndModelChange = new CWndModelChange;
g_WndMng.m_pWndModelChange->Initialize( NULL, APP_LOOKCHANGE );
break;
}
}
return CWndNeuz::OnChildNotify( message, nID, pLResult );
}