void CWndRankInfo::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); // 여기에 코딩하세요 CWndTabCtrl* pWndTabCtrl = (CWndTabCtrl*)GetDlgItem( WIDC_TABCTRL1 ); CRect rect = GetClientRect(); rect.left = 5; rect.top = 0; m_WndRankInfoTabLevel.Create( WBS_CHILD | WBS_NODRAWFRAME, rect, pWndTabCtrl, APP_RANK_INFOTABLEVEL ); m_WndRankInfoTabPlayTime.Create( WBS_CHILD | WBS_NODRAWFRAME, rect, pWndTabCtrl, APP_RANK_INFOTABPLAYTIME ); WTCITEM tabTabItem; tabTabItem.mask = WTCIF_TEXT | WTCIF_PARAM; tabTabItem.pszText = prj.GetText( TID_GAME_TOOLTIP_RANKLEVEL ); tabTabItem.pWndBase = &m_WndRankInfoTabLevel; pWndTabCtrl->InsertItem( 0, &tabTabItem ); tabTabItem.pszText = prj.GetText( TID_GAME_TOOLTIP_RANKPLAYTIME ); tabTabItem.pWndBase = &m_WndRankInfoTabPlayTime; pWndTabCtrl->InsertItem( 1, &tabTabItem ); // 윈도를 중앙으로 옮기는 부분. CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
void CWndOptWindow::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); CWndButton* pWndEffect = (CWndButton*)GetDlgItem( WIDC_CHECK ); pWndEffect->SetCheck( g_Option.m_nWindowAlpha == 255 ? FALSE : TRUE); CWndButton* pWndButton[ 3 ]; pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_RADIO1 ); pWndButton[ 1 ] = (CWndButton*)GetDlgItem( WIDC_RADIO2 ); pWndButton[ 2 ] = (CWndButton*)GetDlgItem( WIDC_RADIO3 ); pWndButton[ 0 ]->SetGroup( TRUE ); pWndButton[ g_Option.m_nWindowEffect ]->SetCheck( TRUE ); /* pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_OBJECT_DISTANT_HIGH ); pWndButton[ 1 ] = (CWndButton*)GetDlgItem( WIDC_OBJECT_DISTANT_MID ); pWndButton[ 2 ] = (CWndButton*)GetDlgItem( WIDC_OBJECT_DISTANT_LOW ); pWndButton[ 0 ]->SetGroup( TRUE ); */ CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
void CWndRegVend::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); CWndStatic* pStatic = (CWndStatic*)GetDlgItem(WIDC_SELLNUM); CRect rect = pStatic->GetWindowRect(TRUE); m_pt[0] = pStatic->GetWindowRect(TRUE).TopLeft(); m_pt[0].y -= 4; m_pt[0].x -= 4; pStatic->AddWndStyle(WSS_MONEY); pStatic = (CWndStatic*)GetDlgItem(WIDC_SELLPRI); rect = pStatic->GetWindowRect(TRUE); m_pt[1] = pStatic->GetWindowRect(TRUE).TopLeft(); m_pt[1].y -= 4; m_pt[1].x -= 4; pStatic->AddWndStyle(WSS_MONEY); m_bIsFirst = TRUE; m_Calc.m_nValue = 0; m_Calc.m_ch = 0; SetFocus(); m_pTex = m_textureMng.AddTexture( m_pApp->m_pd3dDevice, MakePath( DIR_THEME, "WndVenderArrowEx.tga" ), 0xffff00ff ); CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
void CWndBankPassword::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); // 여기에 코딩하세요 CWndEdit *m_pLastPass = (CWndEdit*)GetDlgItem( WIDC_EDIT1 ); CWndEdit *m_pNewPass = (CWndEdit*)GetDlgItem( WIDC_EDIT2 ); CWndEdit *m_pConfirmPass = (CWndEdit*)GetDlgItem( WIDC_EDIT3 ); if( m_pLastPass && m_pNewPass && m_pConfirmPass ) { m_pLastPass->AddWndStyle( EBS_PASSWORD ); m_pNewPass->AddWndStyle( EBS_PASSWORD ); m_pConfirmPass->AddWndStyle( EBS_PASSWORD ); if( m_nFlags == 0 ) { m_pLastPass->SetString( "0000" ); m_pNewPass->SetFocus(); } else { m_pLastPass->SetFocus(); } } // 윈도를 중앙으로 옮기는 부분. CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
void CWndSelectCh::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); // 여기에 코딩하세요 #ifdef __CASH_AREA CWndListBox* pWndListBox = (CWndListBox*)GetDlgItem( WIDC_LB_CHANNEL ); #else CWndListBox* pWndListBox = (CWndListBox*)GetDlgItem( WIDC_LISTBOX1 ); #endif pWndListBox->ResetContent(); CString strTitle; for(int i=0; i < m_nChCount; ++i) { strTitle.Format( "%s %d", prj.GetText(TID_GAME_CHAR_SERVERNAME), i+1); pWndListBox->AddString(strTitle); } #ifdef __CASH_AREA pWndListBox = (CWndListBox*)GetDlgItem( WIDC_LB_WORLD ); pWndListBox->ResetContent(); pWndListBox->AddString( m_str ); #endif // 윈도를 중앙으로 옮기는 부분. CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
void CWndGHTeleporter::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); RestoreDeviceObjects(); m_pOK = (CWndButton*)GetDlgItem( WIDC_BUTTON_OK ); m_pFire = (CWndButton*)GetDlgItem( WIDC_BUTTON_FIRE ); m_nCtrlId[0] = WIDC_SLOT1; m_nCtrlId[1] = WIDC_SLOT2; m_nCtrlId[2] = WIDC_SLOT3; m_nCtrlId[3] = WIDC_SLOT4; m_nCtrlId[4] = WIDC_SLOT5; HOUSING_ITEM kItem; kItem.m_nType = EMPTY_SLOT; m_cWndItems.resize( MAX_TELEPORTER_SLOT, kItem ); RefreshItems( ); // 윈도를 중앙으로 옮기는 부분. CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
void CWndSelectAwakeCase::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); // 여기에 코딩하세요 // 윈도를 중앙으로 옮기는 부분. CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); ItemProp* pProp = (ItemProp*)prj.GetItemProp( m_dwItemIndex ); if( pProp ) m_pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_ITEM, pProp->szIcon ), 0xffff00ff ); m_pTexGuage = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_THEME, "Wndguage.tga" ), 0xffff00ff ); if( !m_pTexGuage ) Error( "CWndSelectAwakeCase::OnInitialUpdate m_pTexGuage(Wndguage.tga) is NULL" ); AddWndStyle( WBS_MODAL ); RestoreDeviceObjects( ); }
void CWndTotalOption::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); // ¿©±â¿¡ ÄÚµùÇÏ¸é µË´Ï´Ù CWndTabCtrl* pWndTabCtrl = (CWndTabCtrl*)GetDlgItem( WIDC_TABCTRL1 ); CRect rect = GetClientRect(); rect.left = 5; rect.top = 0; #if __VER >= 12 // __UPDATE_OPT m_OptTabVideoSnd.Create( WBS_CHILD | WBS_NODRAWFRAME, rect, pWndTabCtrl, APP_OPTEX_AV12); m_OptTabGame.Create( WBS_CHILD | WBS_NODRAWFRAME, rect, pWndTabCtrl, APP_OPTEX_GAME12); #else m_OptTabVideoSnd.Create( WBS_CHILD | WBS_NODRAWFRAME, rect, pWndTabCtrl, APP_OPTEX_AV ); m_OptTabGame.Create( WBS_CHILD | WBS_NODRAWFRAME, rect, pWndTabCtrl, APP_OPTEX_GAME ); m_OptTabEtc.Create( WBS_CHILD | WBS_NODRAWFRAME, rect, pWndTabCtrl, APP_OPTEX_ETC ); #ifdef __SFX_OPT m_OptTabSound.Create( WBS_CHILD | WBS_NODRAWFRAME, rect, pWndTabCtrl, APP_OPTEX_SOUND); #endif #endif WTCITEM tabTabItem; tabTabItem.mask = WTCIF_TEXT | WTCIF_PARAM; #if __VER >= 12 // __UPDATE_OPT tabTabItem.pszText = prj.GetText(TID_TOOLTIP_OPT_VIDEOAUDIO); //tabTabItem.pszText = prj.GetText(TID_APP_OPTION_VIDEO); tabTabItem.pWndBase = &m_OptTabVideoSnd; pWndTabCtrl->InsertItem( 0, &tabTabItem ); tabTabItem.pszText = prj.GetText(TID_TOOLTIP_OPT_GAME); //tabTabItem.pszText = prj.GetText(TID_APP_OPTION_GAME); tabTabItem.pWndBase = &m_OptTabGame; pWndTabCtrl->InsertItem( 1, &tabTabItem ); #else tabTabItem.pszText = prj.GetText(TID_TOOLTIP_OPT_VIDEOAUDIO); //tabTabItem.pszText = prj.GetText(TID_APP_OPTION_VIDEO); tabTabItem.pWndBase = &m_OptTabVideoSnd; pWndTabCtrl->InsertItem( 0, &tabTabItem ); tabTabItem.pszText = prj.GetText(TID_TOOLTIP_OPT_ETC); //tabTabItem.pszText = prj.GetText(TID_APP_OPTION_ETC); tabTabItem.pWndBase = &m_OptTabEtc; pWndTabCtrl->InsertItem( 1, &tabTabItem ); tabTabItem.pszText = prj.GetText(TID_TOOLTIP_OPT_GAME); //tabTabItem.pszText = prj.GetText(TID_APP_OPTION_GAME); tabTabItem.pWndBase = &m_OptTabGame; pWndTabCtrl->InsertItem( 2, &tabTabItem ); #ifdef __SFX_OPT tabTabItem.pszText = prj.GetText(TID_TOOLTIP_OPT_SOUND); tabTabItem.pWndBase = &m_OptTabSound; pWndTabCtrl->InsertItem( 3, &tabTabItem ); #endif #endif MoveParentCenter(); }
void CWndVendorMessage::InitSize( void ) { CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
void CWndOptMyInfo::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
void CWndOption::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); CWndButton* pWndAlpha = (CWndButton*)GetDlgItem( WIDC_CHECK1 ); pWndAlpha->SetCheck( g_Option.m_nWindowAlpha == 255 ? FALSE : TRUE); CWndButton* pWndHelp = (CWndButton*)GetDlgItem( WIDC_CHECK2 ); pWndHelp->SetCheck( g_Option.m_nInstantHelp ); CWndButton* pWndButton[ 4 ]; pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_RADIO1 ); pWndButton[ 1 ] = (CWndButton*)GetDlgItem( WIDC_RADIO2 ); pWndButton[ 0 ]->SetGroup( TRUE ); pWndButton[ g_Option.m_nSlangWord ]->SetCheck( TRUE ); pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_RADIO3 ); pWndButton[ 1 ] = (CWndButton*)GetDlgItem( WIDC_RADIO4 ); pWndButton[ 2 ] = (CWndButton*)GetDlgItem( WIDC_RADIO5 ); pWndButton[ 3 ] = (CWndButton*)GetDlgItem( WIDC_RADIO6 ); pWndButton[ 0 ]->SetGroup( TRUE ); pWndButton[ g_Option.m_nChatCommand ]->SetCheck( TRUE ); // ÀÎÅÍÆäÀ̽º ¹æ½Ä(±¸¹öÀüÀÌ µðÆúÆ®) pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_RADIO7 ); pWndButton[ 1 ] = (CWndButton*)GetDlgItem( WIDC_RADIO8 ); #ifdef __Y_INTERFACE_VER3 pWndButton[ 2 ] = (CWndButton*)GetDlgItem( WIDC_RADIO12 ); #endif //__Y_INTERFACE_VER3 pWndButton[ 0 ]->SetGroup( TRUE ); pWndButton[ g_Option.m_nInterface ]->SetCheck( TRUE ); pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_RADIO9 ); pWndButton[ 1 ] = (CWndButton*)GetDlgItem( WIDC_RADIO10 ); pWndButton[ 2 ] = (CWndButton*)GetDlgItem( WIDC_RADIO11 ); pWndButton[ 0 ]->SetGroup( TRUE ); pWndButton[ *g_Option.m_pGuide ]->SetCheck( TRUE ); pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_CHECK4 ); if(pWndButton[ 0 ]) pWndButton[ 0 ]->SetCheck( g_Option.m_bCameraLock ); // ºñÇà½Ã ·Ñ¸µ È¿°ú. CWndButton* pWndRoll = (CWndButton*)GetDlgItem( WIDC_CHECK3 ); pWndRoll->SetCheck( g_Option.m_bRollEffect ); #if __VER >= 11 // __ADD_ZOOMOPT CWndButton* pWndZoom = (CWndButton*)GetDlgItem( WIDC_CHECK5 ); pWndZoom->SetCheck(!g_Option.m_bZoomLimit); #endif CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
void CWndChangeName::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); m_dwData = 0; CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
void CWndItemTransy::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); // 여기에 코딩하세요 // 윈도를 중앙으로 옮기는 부분. CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
void CWndChangeName::OnDraw( C2DRender* p2DRender ) { #ifdef __S_SERVER_UNIFY if( g_WndMng.m_bAllAction == FALSE ) { CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); } #endif // __S_SERVER_UNIFY }
void CWndIndirectTalk::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); // 여기에 코딩하세요 CWndEdit* pWndEdit = (CWndEdit*)GetDlgItem( WIDC_EDIT2); pWndEdit->AddWndStyle( EBS_AUTOVSCROLL ); // 윈도를 중앙으로 옮기는 부분. CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
void CWndRankInfoTabPlayTime::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); m_nCurrentList = 0; m_nMxOld = m_nMyOld = 0; // 윈도를 중앙으로 옮기는 부분. CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
void CWndSelectVillage::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); CWndButton* pWndButton[ 3 ]; pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_RADIO_FLARIS ); pWndButton[ 1 ] = (CWndButton*)GetDlgItem( WIDC_RADIO_SAINTM ); pWndButton[ 2 ] = (CWndButton*)GetDlgItem( WIDC_RADIO_DARKON ); pWndButton[ 0 ]->SetGroup( TRUE ); pWndButton[ 0 ]->SetCheck( TRUE ); MoveParentCenter(); }
//----------------------------------------------------------------------------- void CWndMailRequestingBox::OnInitialUpdate( void ) { CWndNeuz::OnInitialUpdate(); DelWndStyle( WBS_MOVE ); CWndButton* pWndButton = ( CWndButton* )GetDlgItem( WIDC_BUTTON_REQUEST ); if( pWndButton ) { pWndButton->EnableWindow( FALSE ); } MoveParentCenter(); }
void CWndTutorial::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); // 여기에 코딩하세요 DWORD dwRight = m_rectClient.Width() * 50 / 100; LoadTutorial( MakePath( DIR_CLIENT, _T( "tutorial.inc" ) ) ); // 윈도를 중앙으로 옮기는 부분. // CRect rectRoot = m_pWndRoot->GetLayoutRect(); // CRect rectWindow = GetWindowRect(); // CPoint point( rectRoot.right - rectWindow.Width(), 110 ); // Move( point ); MoveParentCenter(); }
void CWndGuideSelection::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); m_wndTitleBar.SetVisible( FALSE ); CWndButton* pWndButton[3]; pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_RADIO1 ); pWndButton[ 1 ] = (CWndButton*)GetDlgItem( WIDC_RADIO2 ); pWndButton[ 2 ] = (CWndButton*)GetDlgItem( WIDC_RADIO3 ); pWndButton[ 0 ]->SetGroup( TRUE ); pWndButton[ 0 ]->SetCheck( TRUE ); *g_Option.m_pGuide = 0; MoveParentCenter(); }
void CWndConfirmBank::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); // 여기에 코딩하세요 CWndEdit *m_pPass = (CWndEdit*)GetDlgItem( WIDC_EDIT1 ); if( m_pPass ) { m_pPass->AddWndStyle( EBS_PASSWORD ); m_pPass->SetFocus(); } // 윈도를 중앙으로 옮기는 부분. CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
void CWndDebugInfo::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); // 여기에 코딩하세요 CWndButton* pWndButton; pWndButton = (CWndButton*)GetDlgItem( WIDC_GRID ); pWndButton->SetCheck( g_WorldMng()->m_bViewGrid ); pWndButton = (CWndButton*)GetDlgItem( WIDC_TERRAIN ); pWndButton->SetCheck( g_WorldMng()->m_bViewTerrain ); pWndButton = (CWndButton*)GetDlgItem( WIDC_LOD_TERRAIN); pWndButton->SetCheck( g_WorldMng()->m_bViewLODTerrain); pWndButton = (CWndButton*)GetDlgItem( WIDC_LOD_OBJ ); pWndButton->SetCheck( g_WorldMng()->m_bViewLODObj ); pWndButton = (CWndButton*)GetDlgItem( WIDC_ANIMATION ); pWndButton->SetCheck( CObj::IsAnimate() ); pWndButton = (CWndButton*)GetDlgItem( WIDC_LIGHT ); pWndButton->SetCheck( g_WorldMng()->m_bViewLight ); //pWndButton = (CWndButton*)GetDlgItem( WIDC_CAPTURE ); pWndButton->SetCheck( ); pWndButton = (CWndButton*)GetDlgItem( WIDC_HIDE ); pWndButton->SetCheck( !g_pPlayer->IsVisible() ); pWndButton = (CWndButton*)GetDlgItem( WIDC_WIREFRAME ); pWndButton->SetCheck( g_WorldMng()->m_bViewWireframe ); pWndButton = (CWndButton*)GetDlgItem( WIDC_OBJECT ); pWndButton->SetCheck( g_WorldMng()->m_bViewAllObjects ); pWndButton = (CWndButton*)GetDlgItem( WIDC_FRAME_SKIP ); pWndButton->SetCheck( GetFrameSkip() ); pWndButton = (CWndButton*)GetDlgItem( WIDC_WEATHER ); pWndButton->SetCheck( g_WorldMng()->m_bViewWeather ); pWndButton = (CWndButton*)GetDlgItem( WIDC_BOUNDBOX ); pWndButton->SetCheck( g_WorldMng()->m_bViewBoundBox ); pWndButton = (CWndButton*)GetDlgItem( WIDC_ATTRIBUTE ); pWndButton->SetCheck( g_WorldMng()->m_bViewHeightAttribute ); pWndButton = (CWndButton*)GetDlgItem( WIDC_SKYBOX ); pWndButton->SetCheck( g_WorldMng()->m_bViewSkybox ); pWndButton = (CWndButton*)GetDlgItem( WIDC_NAME ); pWndButton->SetCheck( g_WorldMng()->m_bViewName ); pWndButton = (CWndButton*)GetDlgItem( WIDC_CULLOBJ ); pWndButton->SetCheck( g_WorldMng()->m_bCullObj ); pWndButton = (CWndButton*)GetDlgItem( WIDC_COLLISION ); pWndButton->SetCheck( CObj::m_bCollision ); pWndButton = (CWndButton*)GetDlgItem( WIDC_FOG ); pWndButton->SetCheck( g_WorldMng()->m_bViewFog ); pWndButton = (CWndButton*)GetDlgItem( WIDC_IDSTATE ); pWndButton->SetCheck( g_WorldMng()->m_bViewIdState ); pWndButton = (CWndButton*)GetDlgItem( WIDC_WATER ); pWndButton->SetCheck( g_WorldMng()->m_bViewWater ); pWndButton = (CWndButton*)GetDlgItem( WIDC_HOUR ); pWndButton->SetCheck( g_GameTimer.IsFixed() ); pWndButton = (CWndButton*)GetDlgItem( WIDC_CHECK1 ); pWndButton->SetCheck( g_WorldMng()->m_bViewHP ); CString string; string.Format( "%d", g_GameTimer.m_nHour ); CWndEdit* pWndEdit = (CWndEdit*)GetDlgItem( WIDC_EDIT_HOUR ); pWndEdit->SetString( string ); pWndButton = (CWndButton*)GetDlgItem( WIDC_HOUR ); pWndButton->SetCheck( g_GameTimer.IsFixed() ); //g_World.m_bViewWater ////////////////////////////////////////////////////// CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
void CWndGuildVoteSeting::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); // 여기에 코딩하세요 if( m_nSelect != -1 ) { //WIDC_EDIT1 CWndEdit* pEdit; CWndComboBox* pCombo = (CWndComboBox*)GetParentWnd()->GetDlgItem(WIDC_COMBOBOX1); CString str = pCombo->GetString(); pEdit = (CWndEdit*) GetDlgItem( WIDC_EDIT1 ); pEdit->SetString( str ); pEdit = (CWndEdit*) GetDlgItem( WIDC_EDIT2 ); pEdit->SetString( ((CWndEdit*) GetParentWnd()->GetDlgItem(WIDC_EDIT1))->GetString() ); pEdit = (CWndEdit*) GetDlgItem( WIDC_EDIT3 ); pEdit->SetString( ((CWndEdit*) GetParentWnd()->GetDlgItem(WIDC_EDIT4))->GetString() ); pEdit = (CWndEdit*) GetDlgItem( WIDC_EDIT5 ); pEdit->SetString( ((CWndEdit*) GetParentWnd()->GetDlgItem(WIDC_EDIT2))->GetString() ); pEdit = (CWndEdit*) GetDlgItem( WIDC_EDIT6 ); pEdit->SetString( ((CWndEdit*) GetParentWnd()->GetDlgItem(WIDC_EDIT5))->GetString() ); pEdit = (CWndEdit*) GetDlgItem( WIDC_EDIT4 ); pEdit->SetString( ((CWndEdit*) GetParentWnd()->GetDlgItem(WIDC_EDIT3))->GetString() ); } // 윈도를 중앙으로 옮기는 부분. CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
void CWndVendorMessage::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); CWndEdit* pWndEdit = (CWndEdit*)GetDlgItem( WIDC_EDIT1 ); pWndEdit->AddWndStyle( EBS_AUTOVSCROLL ); pWndEdit->SetNativeMode(); pWndEdit->SetFocus(); #if __VER >= 11 // __MOD_VENDOR CWndTabCtrl* pWndTabCtrl = (CWndTabCtrl*)GetDlgItem( WIDC_TABCTRL1 ); WTCITEM tabTabItem; m_wndChat.Create(WBS_NODRAWFRAME, CRect( 0, 0, 300, 220 ), pWndTabCtrl, 10 ); m_wndChat.AddWndStyle(WBS_VSCROLL); tabTabItem.mask = WTCIF_TEXT | WTCIF_PARAM; tabTabItem.pszText = prj.GetText(TID_APP_DIALOG); //"대화" tabTabItem.pWndBase = &m_wndChat; pWndTabCtrl->InsertItem( 0, &tabTabItem ); if( m_nIsOwner ) { m_wndInfo.Create(WBS_NODRAWFRAME, CRect( 0, 0, 300, 220 ), pWndTabCtrl, 11 ); m_wndInfo.AddWndStyle(WBS_VSCROLL); tabTabItem.mask = WTCIF_TEXT | WTCIF_PARAM; tabTabItem.pszText = prj.GetText(TID_APP_INFOMATION); //"정보" tabTabItem.pWndBase = &m_wndInfo; pWndTabCtrl->InsertItem( 1, &tabTabItem ); } #endif CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
void CWndCloseExistingConnection::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); CRect rect = GetClientRect(); rect.left += 8; rect.right -= 4; rect.top += 8; rect.bottom /= 2; m_wndText.Create( WBS_NODRAWFRAME, rect, this, 0 ); m_wndText.SetString( _T( prj.GetText(TID_DIAG_0065) ), 0xff000000 );//prj.GetTextColor(TID_DIAG_0065) ); //m_wndText.SetString( _T( "접속중인 계정입니다. 기존 접속을 해제하시겠습니까?" ), 0xff000000 ); m_wndText.ResetString(); CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
void CWndLvReqDown::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); // 여기에 코딩하세요 CWndButton* pButton = (CWndButton*)GetDlgItem(WIDC_BUTTON1); if(::GetLanguage() == LANG_FRE) pButton->SetTexture(g_Neuz.m_pd3dDevice, MakePath( "Theme\\", ::GetLanguage(), _T( "ButtNormal00.tga" ) ), TRUE); pButton->EnableWindow(FALSE); m_pText = (CWndText*)GetDlgItem( WIDC_TEXT1 ); SetDescription(); /* // 윈도를 중앙으로 옮기는 부분. CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point );*/ MoveParentCenter(); }
//----------------------------------------------------------------------------- void CWndHelperWebBox::OnInitialUpdate( void ) { CWndNeuz::OnInitialUpdate(); SetTitle( prj.GetText( TID_GAME_HELPER_WEB_BOX_ICON_TITLE ) ); if( g_Option.m_nResWidth >= 1024 && g_Option.m_nResHeight >= 768 ) { CRect rectHelperWebBox = GetWndRect(); rectHelperWebBox.right = 1024; rectHelperWebBox.bottom = 768; SetWndRect( rectHelperWebBox ); } DelWndStyle( WBS_MOVE ); AddWndStyle( WBS_TOPMOST ); CHelperWebBox::GetInstance()->Initialize(); MoveParentCenter(); }
void CWndBlessingCancel::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); // 여기에 코딩하세요 CWndButton* pButton = (CWndButton*)GetDlgItem(WIDC_START); if(::GetLanguage() == LANG_FRE) pButton->SetTexture(g_Neuz.m_pd3dDevice, MakePath( "Theme\\", ::GetLanguage(), _T( "ButOk2.bmp" ) ), TRUE); pButton->EnableWindow(FALSE); m_pText = (CWndText*)GetDlgItem( WIDC_DESC ); SetDescription(); // 윈도를 중앙으로 옮기는 부분. CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
BOOL CWndGHUpkeep::Initialize( CWndBase* pWndParent, DWORD dwWndId ) { InitDialog( g_Neuz.GetSafeHwnd(), APP_CONFIRM_BUY_, 0, 0, pWndParent ); MoveParentCenter(); SetTitle( GETTEXT( TID_GAME_GUILDHOUSE_TAXUI01 ) ); //유지비 CWndStatic* pLabel = (CWndStatic *)GetDlgItem( WIDC_STATIC ); pLabel->SetTitle( "" ); pLabel = (CWndStatic *)GetDlgItem( WIDC_STATIC1 ); pLabel->SetTitle( GETTEXT( TID_GAME_GUILDHOUSE_TAXUI03 ) ); //납부금액 m_pEdit = (CWndEdit *)GetDlgItem( WIDC_CONTROL2 ); m_pStatic = (CWndStatic *)GetDlgItem( WIDC_CONTROL1 ); m_pStatic->SetTitle( GETTEXT( TID_GAME_GUILDHOUSE_TAXUI02 ) ); //유지기간 m_pStaticGold = (CWndStatic *)GetDlgItem( WIDC_STATIC2 ); m_pStaticGold->AddWndStyle(WSS_MONEY); OnChangeBuyCount( 1 ); return TRUE; }
void CWndOptSound::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); CWndButton* pWndButton[ 3 ]; pWndButton[ 1 ] = (CWndButton*)GetDlgItem( WIDC_VOICEON ); pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_VOICEOFF ); if( ::GetLanguage() == LANG_JAP ) { pWndButton[ 1 ]->SetGroup( TRUE ); pWndButton[ g_Option.m_bVoice ]->SetCheck( TRUE ); } else { CWndStatic* pWndVoice = (CWndStatic*)GetDlgItem(WIDC_STATIC2); pWndVoice->SetVisible(FALSE); pWndButton[ 1 ]->SetVisible(FALSE); pWndButton[ 0 ]->SetVisible(FALSE); } m_Texture.LoadTexture( g_Neuz.GetDevice(), MakePath( DIR_THEME, "WndVolumeBar.tga" ), 0xffff00ff, TRUE ); m_TexturePt.LoadTexture( g_Neuz.GetDevice(), MakePath( DIR_THEME, "ButtSpin.tga" ), 0xffffffff, TRUE ); #if __VER < 12 // __UPDATE_OPT pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_MSHIGH ); pWndButton[ 1 ] = (CWndButton*)GetDlgItem( WIDC_MSMID ); pWndButton[ 2 ] = (CWndButton*)GetDlgItem( WIDC_MSLOW ); pWndButton[ 0 ]->SetGroup( TRUE ); pWndButton[ g_Option.m_MouseSpeed ]->SetCheck( TRUE ); #endif m_nStep[0] = (int)( g_Option.m_fEffectVolume * 10 ); m_nStep[1] = (int)( g_Option.m_fBGMVolume * 10 ); }