Exemplo n.º 1
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(); 
		}
	}
}