void CDPCertified::SysMessageHandler( LPDPMSG_GENERIC lpMsg, DWORD dwMsgSize, DPID dpId )
{
	switch( lpMsg->dwType )
	{
		case DPSYS_CREATEPLAYERORGROUP:
			{
				m_fConn		= TRUE;
				g_bRecvSvrList	= FALSE;
			}
			break;
		case DPSYS_DESTROYPLAYERORGROUP:
			{
				LPDPMSG_DESTROYPLAYERORGROUP lpDestroyPlayer	= (LPDPMSG_DESTROYPLAYERORGROUP)lpMsg;
				m_lError = lpDestroyPlayer->dwFlags;
			}
			CNetwork::GetInstance().OnEvent( CERT_DISCONNECT );

			m_fConn		= FALSE;

			if( CheckNofityDisconnected() )		// 접속 끊김을 표시해야 하는가?
			{
				g_WndMng.CloseMessageBox();
				g_WndMng.OpenMessageBox( prj.GetText(TID_DIAG_0023) );

				CWndLogin* pWndLogin	= (CWndLogin*)g_WndMng.GetWndBase( APP_LOGIN );
				if( pWndLogin )
					pWndLogin->GetDlgItem( WIDC_OK )->EnableWindow( TRUE );
			}

			m_lError = 0;		// 에러코드 clear
			break;
	}
}
void _update_auto_login( const DWORD dwDelta )
{
    static BYTE bySEQ = 0;

    if( bySEQ > 2 )
        return;

    if( 0 == bySEQ )
    {
        CWndLogin* pWndLogin	= (CWndLogin*)g_WndMng.GetWndBase( APP_LOGIN );
        if( pWndLogin )
        {
#ifdef __CON_AUTO_LOGIN
            pWndLogin->SetAccountAndPassword( g_Console._strAccount, g_Console._StrPassword );
#endif
            pWndLogin->OnChildNotify( 0, WIDC_OK, 0 );

            bySEQ = 1;
            g_WndMng.PutString( "<WARNING!!!>자동로그인이 진행중입니다, 월드진입까지 키보드 만지지 마세요 ", NULL, 0xffff0000 );
        }
    }
    else if( 1 == bySEQ )
    {
        CWndSelectServer* pWndSelectServer = (CWndSelectServer*)g_WndMng.GetWndBase( APP_SELECT_SERVER );
        if( pWndSelectServer )
        {
            CWndListBox* pWndList	= (CWndListBox*)pWndSelectServer->GetDlgItem( WIDC_CONTROL0 );
            pWndList->SetCurSel( g_Console._nServer - 1 );

            pWndSelectServer->OnChildNotify( 0, WIDC_NEXT, 0 );
            bySEQ = 2;

            CString strTemp;
            strTemp.Format( "<WARNING!!!>자동로그인 SERVER INDEX: %d ", g_Console._nServer );
            g_WndMng.PutString( strTemp, NULL, 0xffff0000 );
        }
    }
    else if( 2 == bySEQ )
    {
        CWndSelectChar* pWnd	= (CWndSelectChar *)g_WndMng.GetWndBase( APP_SELECT_CHAR );
        if( pWnd )
        {
            pWnd->m_nSelectCharacter = g_Console._nCharacter - 1;

            pWnd->OnChildNotify( 0, WIDC_ACCEPT, 0 );
            bySEQ = 3;

            CString strTemp;
            strTemp.Format( "<WARNING!!!>자동로그인 CHARACTER INDEX: %d ", g_Console._nCharacter );
            g_WndMng.PutString( strTemp, NULL, 0xffff0000 );

            g_WndMng.PutString( "GOOD LUCK", NULL, 0xff0000ff );
        }
    }

}
Beispiel #3
0
void CWndMessageBox::OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags)
{
	if( nChar == VK_RETURN )
	{
		CWndLogin *pWndLogin = (CWndLogin *)g_WndMng.GetWndBase( APP_LOGIN );
		if( pWndLogin )
		{
			CWndEdit* pPassword = (CWndEdit*) pWndLogin->GetDlgItem( WIDC_PASSWORD );
			if( pPassword )
			{
				pPassword->SetString("");//>m_string = "";
				pPassword->PostMessage( WM_SETFOCUS );//SetFocus();
			}
			Destroy(); 
		}
	}
}
BOOL CWndCloseExistingConnection::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult ) 
{ 
	if( nID == WIDC_YES )
	{
		g_dpCertified.SendCloseExistingConnection( g_Neuz.m_szAccount, g_Neuz.m_szPassword );
		Sleep( 1000 );
		CWndLogin* pWndLogin	= (CWndLogin*)g_WndMng.GetWndBase( APP_LOGIN );
		if( pWndLogin )
			pWndLogin->GetDlgItem( WIDC_OK )->EnableWindow( TRUE );
		Destroy( TRUE );
	}
	else if( nID == WIDC_NO )
	{
//		g_dpCertified.Destroy( TRUE );
		CWndLogin* pWndLogin	= (CWndLogin*)g_WndMng.GetWndBase( APP_LOGIN );
		if( pWndLogin )
			pWndLogin->GetDlgItem( WIDC_OK )->EnableWindow( TRUE );
		Destroy( TRUE );
	}
	return CWndNeuz::OnChildNotify( message, nID, pLResult ); 
}