⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch01.htm

📁 这是一本关于VC++自学教程的书籍 对于初学者以及编程有一定基础的人均有帮助
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>

<HEAD>
	<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript">

<!--

function popUp(pPage) {
 var fullURL = document.location;
 var textURL = fullURL.toString();
 var URLlen = textURL.length;
 var lenMinusPage = textURL.lastIndexOf("/");
 lenMinusPage += 1;
 var fullPath = textURL.substring(0,lenMinusPage);
 popUpWin = window.open('','popWin','resizable=yes,scrollbars=no,width=525,height=394');
 figDoc= popUpWin.document;
 zhtm= '<HTML><HEAD><TITLE>' + pPage + '</TITLE>';
 zhtm += '</head>';
 zhtm += '<BODY bgcolor="#FFFFFF">
<!-- Spidersoft WebZIP Ad Banner Insert -->
<TABLE width=100% border="0" cellpadding="0" cellspacing="0">
<TR>
<TD>
<ILAYER id=ad1 visibility=hidden height=60></ILAYER>
<NOLAYER>
<IFRAME SRC="http://www.spidersoft.com/ads/bwz468_60.htm" width="100%" height="60" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></IFRAME>
</NOLAYER>
</TD>
</TR>
</TABLE>
<!-- End of Spidersoft WebZIP Ad Banner Insert-->
';
 zhtm += '<IMG SRC="' + fullPath + pPage + '">';
 zhtm += '<P><B>' + pPage + '</B>';
 zhtm += '
<layer src="http://www.spidersoft.com/ads/bwz468_60.htm" visibility=hidden id=a1 width=600 onload="moveToAbsolute(ad1.pageX,ad1.pageY); a1.clip.height=60;visibility='show';"></layer>
</BODY></HTML>';
 window.popUpWin.document.write(zhtm);
 window.popUpWin.document.close();
 // Johnny Jackson 4/28/98
 }

//-->
                                                                
</SCRIPT>
<link rel="stylesheet" href="../../../../includes/stylesheets/ebooks.css">

	<META NAME="GENERATOR" Content="Symantec Visual Page Mac 1.1.1">
	<TITLE>Teach Yourself Visual C++ 6 in 21 Days -- Ch 1 -- The Visual C++ Development Environment--Building Your First Visual C++ Application</TITLE>
</HEAD>

<BODY TEXT="#000000" BGCOLOR="#FFFFFF">

<H1 ALIGN="CENTER"><IMG SRC="../button/sams.gif" WIDTH="171" HEIGHT="66" ALIGN="BOTTOM"
BORDER="0"><BR>
Teach Yourself Visual C++ 6 in 21 Days</H1>
<CENTER>
<P><A HREF="../fm/fm.htm"><IMG SRC="../button/previous.gif" WIDTH="128" HEIGHT="28"
ALIGN="BOTTOM" ALT="Previous chapter" BORDER="0"></A><A HREF="../ch02/ch02.htm"><IMG
SRC="../button/next.gif" WIDTH="128" HEIGHT="28" ALIGN="BOTTOM" ALT="Next chapter"
BORDER="0"></A><A HREF="../index.htm"><IMG SRC="../button/contents.gif" WIDTH="128"
HEIGHT="28" ALIGN="BOTTOM" ALT="Contents" BORDER="0"></A> 
<HR>

</CENTER>
<H1 ALIGN="CENTER">- 1 -<BR>
The Visual C++ Development Environment--Building Your First Visual C++ Application</H1>
<H1></H1>

<UL>
	<LI><A HREF="#Heading1">The Visual C++ Development Environment</A>
	<UL>
		<LI><A HREF="#Heading2">The Output Pane</A>
		<LI><A HREF="#Heading3">The Editor Area</A>
		<LI><A HREF="#Heading4">Menu Bars</A>
		<LI><A HREF="#Heading5">Rearranging the Developer Studio Environment</A>
	</UL>
	<LI><A HREF="#Heading6">Starting Your First Project</A>
	<UL>
		<LI><A HREF="#Heading7">Creating the Project Workspace</A>
		<LI><A HREF="#Heading8">Using the Application Wizard to Create the Application Shell</A>
	</UL>
	<LI><A HREF="#Heading9">Designing Your Application Window</A>
	<LI><A HREF="#Heading10">Adding Code to Your Application</A>
	<LI><A HREF="#Heading11">Finishing Touches</A>
	<UL>
		<LI><A HREF="#Heading12">Creating the Dialog Box Icon</A>
		<LI><A HREF="#Heading13">Adding Maximize and Minimize Buttons</A>
	</UL>
	<LI><A HREF="#Heading14">Summary</A>
	<LI><A HREF="#Heading15">Q&amp;A</A>
	<LI><A HREF="#Heading16">Workshop</A>
	<UL>
		<LI><A HREF="#Heading17">Quiz</A>
		<LI><A HREF="#Heading18">Exercise</A>
	</UL>
</UL>

<P>
<HR SIZE="4">
<BR>
Welcome to <I>Sams</I> <I>Teach Yourself Visual C++ 6 in 21 Days</I>. Over the next
three weeks, you will learn how to build a wide variety of applications with Microsoft's
Visual C++. What's even better is that you will learn how to create these types of
applications by actually building them yourself. As you read this book, you will
be gaining actual programming experience using Visual C++. So let's get started!</P>
<P>Today, your focus will be on learning about the Visual C++ development environment
and some of the tools that it provides for building applications. Although Visual
C++ provides more tools than you would probably use in any one application development
effort--even more than you could possibly learn to use in a single day--I limit the
focus to the primary tools that you will use throughout this book, as well as in
just about every application you build with Visual C++. Today, you'll learn about
the following:</P>

<UL>
	<LI>The primary areas of the Visual C++ development environment
	<P>
	<LI>The Application Wizard--how you can use it to build the basic infrastructure
	for your applications
	<P>
	<LI>The Dialog Painter--how you can use it to paint dialog windows, much in the same
	way that you can build windows with Visual Basic, PowerBuilder, or Delphi
	<P>
	<LI>The Class Wizard--how you can use it to attach functionality to your application
	windows
</UL>

<H2><A NAME="Heading1"></A>The Visual C++ Development Environment</H2>
<P>Before you begin your quick tour around the Visual C++ development environment,
you should start Visual C++ on your computer so that you can see firsthand how each
of the areas are arranged and how you can change and alter that arrangement yourself.</P>
<P>After Developer Studio (the Microsoft Visual development environment) starts,
you see a window that looks like Figure 1.1. Each of the areas has a specific purpose
in the Developer Studio environment. You can rearrange these areas to customize the
Developer Studio environment so that it suits your particular development needs.</P>
<H3>The Workspace</H3>
<P>When you start Visual C++ for the first time, an area on the left side of Developer
Studio looks like it is taking up a lot of real estate and providing little to show
for it. This area is known as the workspace, and it is your key to navigating the
various pieces and parts of your development projects. The workspace allows you to
view the parts of your application in three different ways:</P>

<UL>
	<LI>Class View allows you to navigate and manipulate your source code on a C++ class
	level.
	<P>
	<LI>Resource View allows you to find and edit each of the various resources in your
	application, including dialog window designs, icons, and menus.
	<P>
	<LI>File View allows you to view and navigate all the files that make up your appli-cation.
</UL>

<P><A HREF="javascript

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -