亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? chscwiz.cpp

?? Windows上的MUD客戶端程序
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
/*----------------------------------------------------------------------------
                        _                              _ _       
        /\             | |                            | (_)      
       /  \   _ __   __| |_ __ ___  _ __ ___   ___  __| |_  __ _ 
      / /\ \ | '_ \ / _` | '__/ _ \| '_ ` _ \ / _ \/ _` | |/ _` |
     / ____ \| | | | (_| | | | (_) | | | | | |  __/ (_| | | (_| |
    /_/    \_\_| |_|\__,_|_|  \___/|_| |_| |_|\___|\__,_|_|\__,_|

    The contents of this file are subject to the Andromedia Public
	License Version 1.0 (the "License"); you may not use this file
	except in compliance with the License. You may obtain a copy of
	the License at http://www.andromedia.com/APL/

    Software distributed under the License is distributed on an
	"AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
	implied. See the License for the specific language governing
	rights and limitations under the License.

    The Original Code is Pueblo client code, released November 4, 1998.

    The Initial Developer of the Original Code is Andromedia Incorporated.
	Portions created by Andromedia are Copyright (C) 1998 Andromedia
	Incorporated.  All Rights Reserved.

	Andromedia Incorporated                         415.365.6700
	818 Mission Street - 2nd Floor                  415.365.6701 fax
	San Francisco, CA 94103

    Contributor(s):
	--------------------------------------------------------------------------
	   Chaco team:  Dan Greening, Glenn Crocker, Jim Doubek,
	                Coyote Lussier, Pritham Shetty.

					Wrote and designed original codebase.

------------------------------------------------------------------------------

	Contains the implementation of the ChShortcutWizard class, which is
	a Wizard for creating a desktop shortcut file.

----------------------------------------------------------------------------*/

// $Header: /home/cvs/chaco/modules/client/msw/ChWorld/ChSCWiz.cpp,v 2.14 1996/09/12 19:10:02 pritham Exp $

#if defined( CH_MSW )

#include "headers.h"
#include <sys/stat.h>
#include <ddeml.h>

#include <ChCore.h>

#include "ChSCWiz.h"


/*----------------------------------------------------------------------------
	ChShortcutWizard class
----------------------------------------------------------------------------*/

IMPLEMENT_DYNAMIC( ChShortcutWizard, ChWizard )

ChShortcutWizard::ChShortcutWizard( CWnd* pParentWnd ) :
					ChWizard( 
#if defined( CH_PUEBLO_PLUGIN )
					(chparam)AfxGetInstanceHandle(), 
#else
					(chparam)ChWorldDLL.hModule, 
#endif
						IDS_SHORTCUT_WIZARD,
								pParentWnd ),
					m_boolUseCurrWorld( false ),
					m_boolEnableCurrWorld( false )
{
	AddPages();
}


ChShortcutWizard::~ChShortcutWizard()
{
}


chint32 ChShortcutWizard::OnBack()
{
	chint32		lReturn = 0;

	if (m_boolUseCurrWorld &&
		(GetActivePageID() == IDD_SHORTCUT_WIZ_USERNAME))
	{
											// Skip the server page
		lReturn = IDD_SHORTCUT_WIZ_NAME;
	}

	return lReturn;
}


chint32 ChShortcutWizard::OnNext()
{
	chint32		lReturn = 0;

	if (m_boolUseCurrWorld &&
		(GetActivePageID() == IDD_SHORTCUT_WIZ_NAME))
	{
											// Skip the server page
		lReturn = IDD_SHORTCUT_WIZ_USERNAME;
	}

	return lReturn;
}


BEGIN_MESSAGE_MAP( ChShortcutWizard, ChWizard )
	//{{AFX_MSG_MAP(ChShortcutWizard)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/*----------------------------------------------------------------------------
	ChShortcutWizard public methods
----------------------------------------------------------------------------*/


/*----------------------------------------------------------------------------
	ChShortcutWizard protected methods
----------------------------------------------------------------------------*/

void ChShortcutWizard::AddPages()
{
	this->AddPage( &m_namePage );
	this->AddPage( &m_serverPage );
	this->AddPage( &m_usernamePage );
	this->AddPage( &m_optionsPage );
	this->AddPage( &m_finishPage );
}


/*----------------------------------------------------------------------------
	ChShortcutWizName class
----------------------------------------------------------------------------*/

IMPLEMENT_DYNCREATE( ChShortcutWizName, ChWizardPage )

ChShortcutWizName::ChShortcutWizName() :
			ChWizardPage( ChShortcutWizName::IDD ),
			m_pWiz( 0 )
{
	//{{AFX_DATA_INIT(ChShortcutWizName)
	m_strName = _T("");
	m_boolCurrWorld = FALSE;
	//}}AFX_DATA_INIT
}


ChShortcutWizName::~ChShortcutWizName()
{
}


bool ChShortcutWizName::OnInitPage()
{
	bool	boolSetFocus = ChWizardPage::OnInitPage();

	m_pWiz = (ChShortcutWizard*)GetParent();
	m_boolCurrWorld = m_pWiz->UseCurrWorld();

	m_checkCurrWorld.EnableWindow( m_pWiz->EnableUseCurrWorld() );

	m_editName.LimitText( constNameLimit );

	UpdateData( false );

	return boolSetFocus;
}


bool ChShortcutWizName::OnNext()
{
	bool		boolValid = true;
	string		strMessage;

	UpdateData();

	boolValid = !m_strName.IsEmpty();

	if (!boolValid)
	{
		LOADSTRING( IDS_SHORTCUT_INVALID_NAME, strMessage );
		MessageBox( strMessage, 0, MB_OK | MB_ICONEXCLAMATION );
	}
	else
	{										// Update parent

		m_pWiz->SetUseCurrWorld( m_boolCurrWorld );
	}

	return boolValid;
}


const string& ChShortcutWizName::GetFilename()
{
	GetMangledFilename( m_strFilename );

	return m_strFilename;
}


void ChShortcutWizName::DoDataExchange( CDataExchange* pDX )
{
	ChWizardPage::DoDataExchange( pDX );

	//{{AFX_DATA_MAP(ChShortcutWizName)
	DDX_Control(pDX, IDC_CHECK_CURR_WORLD, m_checkCurrWorld);
	DDX_Control(pDX, IDC_SHORTCUT_NAME, m_editName);
	DDX_Text(pDX, IDC_SHORTCUT_NAME, m_strName);
	DDX_Check(pDX, IDC_CHECK_CURR_WORLD, m_boolCurrWorld);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP( ChShortcutWizName, ChWizardPage )
	//{{AFX_MSG_MAP(ChShortcutWizName)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/*----------------------------------------------------------------------------
	ChShortcutWizName protected methods
----------------------------------------------------------------------------*/

void ChShortcutWizName::GetMangledFilename( string& strFilename )
{
	string			strExtension;
	struct _stat	statInfo;
	string			strFilePath;
	int				iTry = 1;
	string			strTestName;

	LOADSTRING( IDS_SHORTCUT_EXTENSION, strExtension );

	strFilename = GetName();
	strFilename = strFilename.Left( 30 );
											/* Strip out characters in the name
												that we don't want to allow.
												This includes illegal filename
												characters. */
	StripChars( strFilename, "<>:\"/\\|." );

	switch( ChUtil::GetSystemType() )
	{
		case CH_SYS_WIN32S:
		case CH_SYS_WIN3X:
		{									/* On older versions of Windows, we
												also need to strip out more
												characters and truncate to 8
												chars long */
			StripChars( strFilename, " ?*+&" );
			strFilename = strFilename.Left( 8 );
			break;
		}

		default:
		{									// Don't need to do anything
			break;
		}
	}

	if (strFilename.IsEmpty())
	{
		strFilename = "ShtCut";
	}
	else if (isdigit( strFilename[0] ))
	{
		strFilename = "S" + strFilename;

		switch( ChUtil::GetSystemType() )
		{
			case CH_SYS_WIN32S:
			case CH_SYS_WIN3X:
			{									/* On older versions of Windows, we
													also need to strip out more
													characters and truncate to 8
													chars long */
				strFilename = strFilename.Left( 8 );
				break;
			}

			default:
			{									// Don't need to do anything
				break;
			}
		}
	}


	do
	{
		strTestName = strFilename;

		if (1 == iTry)
		{
			strTestName += "." + strExtension;
		}
		else
		{
			char	buffer[10];

			sprintf( buffer, "%d", iTry );

			switch( ChUtil::GetSystemType() )
			{
				case CH_SYS_WIN32S:
				case CH_SYS_WIN3X:
				{
					int		iLen;

					iLen = strTestName.GetLength() + strlen( buffer );
					if (iLen > 8)
					{
						int		iNewLen = 8 - strlen( buffer );

						strTestName = strTestName.Left( iNewLen );
					}
					strTestName += buffer;
					break;
				}

				default:
				{
					strTestName += " ";
					strTestName += buffer;
					break;
				}
			}

			strTestName += "." + strExtension;
		}

		strFilePath = GetPath() + "\\" + strTestName;

		iTry++;

	} while (_stat( strFilePath, &statInfo ) == 0);

	strFilename = strTestName;
}


void ChShortcutWizName::StripChars( string& strData, const string& strChars )
{
	int		iIndex;

	while (-1 != (iIndex = strData.FindOneOf( strChars )))
	{
		strData = strData.Left( iIndex ) + strData.Mid( iIndex + 1 );
	}
}


/*----------------------------------------------------------------------------
	ChShortcutWizName message handlers
----------------------------------------------------------------------------*/


/*----------------------------------------------------------------------------
	ChShortcutWizServer class
----------------------------------------------------------------------------*/

IMPLEMENT_DYNCREATE( ChShortcutWizServer, ChWizardPage )

ChShortcutWizServer::ChShortcutWizServer() :
			ChWizardPage( ChShortcutWizServer::IDD ),
			m_type( undefinedType )
{
	//{{AFX_DATA_INIT(ChShortcutWizServer)
	m_strType = _T("");
	m_strHost = _T("");
	m_iPort = 0;
	//}}AFX_DATA_INIT
}


ChShortcutWizServer::~ChShortcutWizServer()
{
}


bool ChShortcutWizServer::OnInitPage()
{
	bool	boolSetFocus = ChWizardPage::OnInitPage();

	ChWorldType::FillTypeList( &m_comboTypes );

	m_editHost.LimitText( constHostLimit );
	m_editPort.LimitText( constPortLimit );
											// Make sure the data is up-to-date
	UpdateData( false );

	return boolSetFocus;
}


bool ChShortcutWizServer::OnNext()
{
	bool		boolValid = true;
	string		strMessage;
	string		strCaption;

	UpdateData();

	boolValid = !m_strHost.IsEmpty() &&
				(0 != m_iPort) &&
				(m_type != undefinedType);

	if (!boolValid)
	{
		LOADSTRING( IDS_SHORTCUT_INVALID_SERVER_CAPTION, strCaption );
	}

	if (m_strHost.IsEmpty())
	{
		LOADSTRING( IDS_SHORTCUT_INVALID_SERVER_HOST, strMessage );
		MessageBox( strMessage, strCaption, MB_OK | MB_ICONEXCLAMATION );
	}
	else if (0 == m_iPort)
	{
		LOADSTRING( IDS_SHORTCUT_INVALID_SERVER_PORT, strMessage );
		MessageBox( strMessage, strCaption, MB_OK | MB_ICONEXCLAMATION );
	}
	else if (m_type == undefinedType)
	{
		LOADSTRING( IDS_SHORTCUT_INVALID_SERVER_TYPE, strMessage );
		MessageBox( strMessage, strCaption, MB_OK | MB_ICONEXCLAMATION );
	}

	return boolValid;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美电影院| 91精品国产高清一区二区三区蜜臀| 精品少妇一区二区三区视频免付费 | 中文字幕一区二区5566日韩| 国产高清久久久久| 国产喷白浆一区二区三区| 成人综合激情网| 亚洲黄色录像片| 欧美视频三区在线播放| 日本女人一区二区三区| 久久综合中文字幕| 国产精品18久久久久久久久| 一区在线播放视频| 在线观看不卡一区| 秋霞午夜av一区二区三区| 精品国产一区二区精华| 懂色av一区二区夜夜嗨| 亚洲视频狠狠干| 欧美精品一二三| 国产在线视频一区二区三区| 中文字幕一区二区三区在线观看 | 日本vs亚洲vs韩国一区三区二区| 制服丝袜激情欧洲亚洲| 狠狠色狠狠色综合系列| 国产欧美日韩麻豆91| 色综合欧美在线视频区| 免费在线视频一区| 欧美经典三级视频一区二区三区| 色先锋aa成人| 狠狠色丁香久久婷婷综合丁香| 中文字幕一区二区三区不卡| 欧美人伦禁忌dvd放荡欲情| 国产一区二区看久久| 亚洲欧美一区二区久久| 日韩精品一区二区三区在线播放| 成人一道本在线| 婷婷开心激情综合| 亚洲国产成人在线| 日韩免费电影网站| 日本韩国一区二区| 国产一区二区毛片| 首页国产欧美久久| 亚洲乱码中文字幕综合| 精品卡一卡二卡三卡四在线| 欧美最猛黑人xxxxx猛交| 国产麻豆精品theporn| 天天影视色香欲综合网老头| 国产精品网站在线观看| 精品区一区二区| 欧美亚洲国产bt| 成人avav在线| 韩国一区二区三区| 美女诱惑一区二区| 亚洲综合在线五月| 国产精品无遮挡| 久久精品亚洲麻豆av一区二区| 91精品免费在线| 欧美在线小视频| 99久久久免费精品国产一区二区| 国产乱码精品一区二区三区忘忧草| 亚洲一区二区三区精品在线| 中文字幕日韩一区二区| www国产精品av| 欧美成人精精品一区二区频| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 成人教育av在线| 国产二区国产一区在线观看| 久久精品理论片| 奇米四色…亚洲| 日韩av网站在线观看| 日日夜夜一区二区| 亚洲h在线观看| 亚洲国产精品一区二区www| 亚洲一级不卡视频| 一区二区三区精品久久久| 亚洲日本青草视频在线怡红院| 国产欧美日韩综合精品一区二区| 久久亚洲一区二区三区四区| 精品久久一区二区| 精品av综合导航| 久久天堂av综合合色蜜桃网 | 欧美成人综合网站| 日韩欧美在线123| 69精品人人人人| 欧美一二三区在线观看| 精品久久久影院| 久久网这里都是精品| 久久综合99re88久久爱| 国产欧美日韩另类视频免费观看| 国产视频不卡一区| 中文字幕欧美国产| ...xxx性欧美| 亚洲国产精品一区二区尤物区| 日韩在线a电影| 久久99最新地址| 国产suv精品一区二区6| av在线一区二区| 在线观看日韩毛片| 日韩视频免费观看高清在线视频| 久久这里只有精品首页| 《视频一区视频二区| 日韩精品亚洲一区| 国产成人日日夜夜| 一本色道久久综合亚洲aⅴ蜜桃| 欧美在线观看一二区| 欧美一二三在线| 国产精品久久久久一区| 天天综合网 天天综合色| 激情综合色播五月| 99久久er热在这里只有精品15| 欧美三级电影网| 久久久综合精品| 一区二区在线电影| 麻豆精品精品国产自在97香蕉| 懂色av中文一区二区三区| 欧美日韩国产综合一区二区三区 | 一区二区免费在线| 蜜臀久久99精品久久久久久9 | 国产aⅴ综合色| 91激情五月电影| 欧美精品一区在线观看| 亚洲视频一二三| 久久99精品久久久久久| 97精品国产露脸对白| 精品久久久久久综合日本欧美| 国产精品国产三级国产普通话蜜臀| 亚洲电影在线免费观看| 国产不卡免费视频| 91精品国产综合久久久久久漫画| 国产精品欧美极品| 奇米影视一区二区三区小说| 91亚洲午夜精品久久久久久| 欧美大白屁股肥臀xxxxxx| 亚洲精品欧美综合四区| 国产在线精品一区二区夜色 | 欧美美女黄视频| 国产精品视频看| 美日韩一区二区三区| 91视频一区二区| 亚洲精品在线三区| 亚洲r级在线视频| 色香蕉成人二区免费| 日本一区二区免费在线观看视频| 免费的成人av| 欧美三级视频在线| 亚洲婷婷综合久久一本伊一区| 韩国女主播成人在线观看| 91精品国产美女浴室洗澡无遮挡| 亚洲精品视频在线看| 成人国产电影网| 国产色综合久久| 九色综合国产一区二区三区| 欧美丰满嫩嫩电影| 亚洲国产cao| 欧美午夜一区二区| 亚洲综合色视频| 日本韩国一区二区三区视频| 亚洲日韩欧美一区二区在线| av电影在线观看一区| 欧美激情一区二区三区不卡 | 国产丝袜美腿一区二区三区| 激情文学综合丁香| 欧美大片在线观看一区二区| 麻豆精品视频在线观看视频| 日韩欧美成人午夜| 久久国产精品99久久人人澡| 日韩午夜电影av| 精品一区二区国语对白| 久久久91精品国产一区二区精品| 久久精品久久精品| 久久影视一区二区| 国产精品乡下勾搭老头1| 精品sm捆绑视频| 国产一区二区精品久久99| 久久久一区二区| 成人激情av网| 亚洲精品ww久久久久久p站| 在线免费av一区| 亚洲成人av一区二区三区| 欧美裸体bbwbbwbbw| 蜜臀精品一区二区三区在线观看| 精品嫩草影院久久| 国产自产高清不卡| 国产精品国产精品国产专区不片 | 一区精品在线播放| 91国模大尺度私拍在线视频| 香蕉影视欧美成人| 日韩免费一区二区三区在线播放| 国产在线看一区| 亚洲视频在线一区观看| 在线视频观看一区| 日本午夜精品视频在线观看| 久久尤物电影视频在线观看| av亚洲精华国产精华精华| 亚洲另类一区二区| 日韩欧美成人一区二区| 不卡一区中文字幕| 天堂久久久久va久久久久| 2020国产精品久久精品美国| av毛片久久久久**hd|