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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? ch15.htm

?? 用vc開(kāi)發(fā)activex
?? HTM
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
All properties, and any property pages you defined in your control. General properties
are the base set of properties assigned to all controls on the dialog. All properties
are stock properties you defined in the control. To change a property value, click
the tab containing the name of the property you want to change, and then set the
value for the property. <B><BR>
<BR>
</B><A HREF="Art/15/15fig06.jpg"><B>FIG. 15.6</B></A> <I><BR>
Use the Control Properties dialog to set the properties for the control.</I></P>
<P>The easiest way to access the properties and methods of the control in code is
to create member variables that coincide with the control. To create the member variables,
follow these steps:

<OL>
	<LI>Select <U>V</U>iew, Class<U>W</U>izard to display the MFC ClassWizard dialog.
	<P>
	<LI>Select the Member Variables tab.
	<P>
	<LI>Make sure the Dialog class appears in the Class <U>n</U>ame text box.
	<P>
	<LI>In the Control <U>I</U>Ds list box, select the ID for the control.
	<P>
	<LI>Click the <U>A</U>dd Variable button to add the member variable. The Add Member
	Variable dialog appears.
	<P>
	<LI>In the Member variable <U>n</U>ame text box, enter a name for the member variable.
	A good naming standard is to enter the control name prefaced with <TT>m_</TT><I>.</I>
	<P>
	<LI>Make sure the <U>C</U>ategory combo box still contains &quot;<TT>Control</TT>,&quot;
	and click the OK button. The other choices are for the control's exposed properties.
	<P>
	<LI>Click the OK button on the MFC ClassWizard dialog to accept the member variable.
	ClassWizard defines the member variable in the dialog class and adds a Dialog Data
	Exchange (<TT>DDX_Control</TT>) call to the dialog's implementation of the <TT>DoDataExchange</TT>
	function.
</OL>

<P>Now that the member variable is created, setting and retrieving properties and
executing methods is fairly simple. Manipulating the properties requires using the
functions in the wrapper class designed to do so. These functions are added to the
wrapper class by ClassWizard. In the <TT>MFCControl</TT> control, the functions to
use for setting properties include <TT>SetBackColor</TT>, <TT>SetAlignment</TT>,
and <TT>SetCaptionProp</TT>. The functions for retrieving properties include <TT>GetReadyState</TT>,
<TT>GetBackColor</TT>, <TT>GetAlignment</TT>, and <TT>GetCaptionProp</TT>. To use
these prop- erty functions, you use the following syntax:</P>
<P><FONT COLOR="#0066FF"><TT>Variable = WrapperClassVariable.Function (Parameter1,...ParameterN).</TT></FONT></P>
<P><TT>Variable</TT><I> </I>is used to hold a return value from the function; this
will not be used if there is no return. <TT>WrapperClassVariable</TT><I> </I>is the
wrapper class variable ClassWizard defined in the dialog header file. <TT>Function</TT><I>
</I>is the name of the function being used to retrieve or set the property, and <TT>Parameter1,...ParameterN</TT><I>
</I>represents parameters that need to be passed to the function.</P>
<P>Executing a method is basically the same as calling a property function. To execute
a method, use the following syntax:</P>
<P><FONT COLOR="#0066FF"><TT>Variable = WrapperClassVariable.MethodName(Parameter1,...ParameterN)</TT></FONT></P>
<P><TT>Variable</TT> is used to hold a return value if the method returns a value.
Again, <TT>WrapperClassVariable</TT><I> </I>is the wrapper class variable ClassWizard
defined in the dialog header file. <TT>MethodName</TT> is the name of the method
you want to execute, and <TT>Parameter1,...ParameterN</TT><I> </I>represent parameters
that need to be passed to the method.</P>
<P>Okay, now for coding the events. If you have ever created event handlers for a
button, radio button, or any other standard control in a dialog, you already know
how to set up event handling for your custom control; the setup is the same. You
use the Message Maps tab of the ClassWizard to create an <I>event sink map, </I>which
is basically an outline, or map, of event handlers maintained by ClassWizard. When
your control fires an event, the event handler that is mapped to that event is executed.</P>
<P>To create an event handler for an event, use the following steps:

<OL>
	<LI>Select <U>V</U>iew, Class<U>W</U>izard to open the MFC ClassWizard dialog.
	<P>
	<LI>Select the Message Maps tab if it is not the current tab.
	<P>
	<LI>Make sure the Dialog class appears in the Class <U>n</U>ame text box.
	<P>
	<LI>Select your control from the Object <U>I</U>Ds list box. The Messa_ges list box
	now shows the events for the control (see fig. 15.7).
	<P><A HREF="Art/15/15fig07.jpg"><B>FIG. 15.7</B></A> <BR>
	<I>Messages list box shows the events for the control selected in the Object </I><CITE>I</CITE><I>Ds
	list box.</I></P>
	<LI>In the Messa_ges list box, select the event you want to add code for.
	<P>
	<LI>Click the <U>A</U>dd Function button to bring up the Add Member Function dialog.
	The Member function <U>n</U>ame text box contains a suggested name for the handler
	function. You can change the name if you like. Click the OK button when finished.
	If you look at the Member <U>f</U>unctions list box, you will see the new event handler
	function listed. The uppercase &quot;E&quot; in the gray box signifies that this
	is an event handler.
	<P>
	<LI>To add code to the handler, click the <U>E</U>dit Code button, which will dump
	you into the event handler function for that event. Add your code for the event here.
</OL>

<P>More information about adding controls to Visual C++ applications can be found
in the Visual C++ help files and Microsoft's Knowledge Base (<A HREF="http://www.microsoft.com/kb"><B>http://www.microsoft.com/kb</B></A>).
<H3><A NAME="Heading6"></A>HTML and Web Browsers</H3>
<P>Using your control in an HTML (Hypertext Markup Language) page consists of basically
three actions: placing the control in the HTML, downloading the control to the user,
and installing the control on the user's machine.</P>
<P>If all your Internet users are using the Microsoft Internet Explorer, the task
of inserting an ActiveX control in an HTML document is fairly simple. If your users
are using Netscape Navigator, or both, inserting a control requires a little more
work.</P>
<P>The Microsoft Internet Explorer requires the use of the <TT>&lt;OBJECT&gt;</TT>
HTML tag, which Netscape has not yet adopted. This tag is composed of several attributes,
the most important being <TT>ID</TT>, <TT>CLASSID</TT>, <TT>CODEBASE</TT>, <TT>PARAM
NAME</TT>, and <TT>VALUE</TT>. Listing 15.1 shows the HTML code that might be used
with the <TT>MFCControl</TT> control.
<H3><A NAME="Heading7"></A>Listing 15.1 SAMPLEIE.HTM--Using an ActiveX Control in
HTML Code</H3>
<P><FONT COLOR="#0066FF"><TT>&lt;HTML&gt;<BR>
&lt;HEAD&gt;<BR>
&lt;TITLE&gt;Sample Page&lt;/TITLE&gt;<BR>
&lt;/HEAD&gt;<BR>
&lt;BODY&gt; <BR>
&lt;OBJECT <BR>
ID=&quot;MFCControlWin1&quot; <BR>
WIDTH=100 <BR>
HEIGHT=51<BR>
CLASSID=&quot;CLSID:A1198546-2E75-11D0-BD82-000000000000&quot;<BR>
CODEBASE=&quot;http://www.somesite.com/somedirectory/ MFCControl.ocx&quot;&gt;#Version=1,0,0,1&quot;&gt;<BR>
&lt;PARAM NAME=&quot;Alignment&quot; VALUE=&quot;1&quot;&gt;<BR>
&lt;PARAM NAME=&quot;CaptionProp&quot; VALUE=&quot;Sample&quot;&gt;<BR>
&lt;/OBJECT&gt; <BR>
&lt;/BODY&gt; <BR>
&lt;/HTML&gt;<BR>
</TT></FONT></P>

<P>The <TT>ID</TT> attribute gives the control a name, providing a way for the HTML
code to access the control.</P>

<P>The <TT>CLASSID</TT> attribute, which is the unique UUID assigned to the control,
tells Microsoft Internet Explorer which object to load. The UUID for your control
can be found in the ODL (Object Description Library) file for your ActiveX control.
Be sure to locate the UUID for the specific control you are using by looking for
the class information comment for the control. For example, to locate the UUID for
the <TT>MFCControlWin</TT> control used above, you would look for the following:</P>

<P><FONT COLOR="#0066FF"><TT>// Class information for CMFCControlWinCtrl<BR>
[ uuid(A1198546-2E75-11D0-BD82-000000000000),<BR>
helpstring(&quot;MFCControlWin Control&quot;), control ]</TT></FONT></P>

<P>Open the ODL file with Notepad or something similar, copy the UUID from there,
and paste it in the HTML document. <BR>
<BR>
<IMG SRC="bar.gif" WIDTH="480" HEIGHT="6" ALIGN="BOTTOM" BORDER="0"></P>


<BLOCKQUOTE>
	<P><B>NOTE:</B> Even if you have only one control in your OCX file, this file contains
	many UUIDs. Be sure to locate the proper UUID using the method above. Also, your
	UUID will not be the same as the one in the example.

</BLOCKQUOTE>

<P><IMG SRC="bar.gif" WIDTH="480" HEIGHT="6" ALIGN="BOTTOM" BORDER="0"><BR>
<BR>
If the current version is not on the user's machine, the <TT>CODEBASE</TT> attribute
tells Microsoft Internet Explorer where to find the control to download. Once the
current version is loaded on a user's machine, the HTML document uses the control
from the user's machine, allowing the document to load faster. Keep in mind that
if your control was built with the Microsoft Foundation Classes, the MFC DLLs have
to be loaded on the user's machine. This adds to the size and complexity of the download.
The bigger the download, the longer the user has to wait to load the control. If
your control is built using the BaseCtl, the <TT>CODEBASE</TT> statement refers to
the control only. If you created your control with MFC, you need to use a new technology
from Microsoft called Cabinet files (CAB files for short). These files allow you
to compress a group of files into one file (the CAB file), download the file to the
user's PC, and install the files on the user's PC. The CAB file contains an INF file,
which controls the installation. Check out Microsoft's Web site (<A HREF="http://www.microsoft.com/"><B>http://www.microsoft.com/</B></A>)
and the ActiveX SDK documentation for more information on CAB files. <BR>
<BR>
<IMG SRC="bar.gif" WIDTH="480" HEIGHT="6" ALIGN="BOTTOM" BORDER="0"></P>


<BLOCKQUOTE>
	<P><B>NOTE:</B> Even if you created your control without the Microsoft Foundation
	Classes, you can still use a CAB file to compress your control and save transfer
	time.

</BLOCKQUOTE>

<P><IMG SRC="bar.gif" WIDTH="480" HEIGHT="6" ALIGN="BOTTOM" BORDER="0"><BR>
<BR>
The <TT>&lt;PARAM&gt;</TT> tag is used inside the <TT>&lt;OBJECT&gt;</TT> tag to
set the initial property values of the control. The <TT>&lt;PARAM&gt;</TT> tag has
two attributes: <TT>NAME</TT> and <TT>VALUE</TT>. The <TT>NAME</TT> is the name of
the property, and the <TT>VALUE</TT> is the property value.</P>
<P>Netscape Navigator users will need to purchase a plug-in from NCompass Labs called
ScriptActive. This plug-in allows Navigator to run HTML documents that contain ActiveX
controls. The information to be used by this add-in is contained in an <TT>&lt;EMBED&gt;</TT>
tag because Navigator does not recognize the <TT>&lt;OBJECT&gt;</TT> tag. If your
Web page will be read using Netscape Navigator and Microsoft Internet Explorer, which
is most likely the case, nest the <TT>&lt;EMBED&gt;</TT> tag within the <TT>&lt;OBJECT&gt;</TT>
tag. Microsoft Internet Explorer will fail if the <TT>&lt;EMBED&gt;</TT> tag is outside
the <TT>&lt;OBJECT&gt;</TT> tag. ScriptActive comes with the HTML Conversion Utility,
which creates a Netscape HTML file from a Microsoft Internet Explorer HTML file,
making the developer's life easier. Create your page with ActiveX Control Pad and
use the utility to automatically create a page compatible to both browsers. The HTML
document (see Listing 15.2) is an example of a document converted by the HTML Conversion
Utility. Visit the NCompass Labs Web site (<A HREF="http://www.ncompasslabs.com/"><B>http://www.ncompasslabs.com/</B></A><B>
</B>)for more information.
<H3><A NAME="Heading8"></A>Listing 15.2 SAMPLENN.HTM--Converted HTML Document</H3>
<P><FONT COLOR="#0066FF"><TT>&lt;HTML&gt;<BR>
&lt;HEAD&gt;<BR>
&lt;TITLE&gt;Sample Page&lt;/TITLE&gt;<BR>
&lt;/HEAD&gt;<BR>
&lt;BODY&gt; <BR>
&lt;OBJECT <BR>
ID=&quot;MFCControlWin1&quot; <BR>
WIDTH=100 <BR>
HEIGHT=51<BR>
CLASSID=&quot;CLSID:A1198546-2E75-11D0-BD82-000000000000&quot;<BR>
CODEBASE=&quot;http://www.somesite.com/somedirectory/ <BR>
MFCControl.ocx#Version=1,0,0,1&quot;&gt;<BR>
&lt;PARAM NAME=&quot;Alignment&quot; VALUE=&quot;1&quot;&gt;<BR>
&lt;PARAM NAME=&quot;CaptionProp&quot; VALUE=&quot;Sample&quot;&gt;<BR>
&lt;EMBED <BR>
NAME=&quot;MFCControlWin1&quot; <BR>
WIDTH=100 <BR>
HEIGHT=51<BR>
CLASSID=&quot;CLSID:A1198546-2E75-11D0-BD82-000000000000&quot;<BR>
CODEBASE=&quot;http://www.somesite.com/somedirectory/MFCControl.ocx#Version=1,0,0,1&quot;<BR>
TYPE=&quot;application/oleobject&quot; <BR>
PARAM_Alignment=&quot;1&quot;<BR>
PARAM_CaptionProp=&quot;Sample&quot; <BR>
&gt;&lt;/OBJECT&gt; <BR>
&lt;/BODY&gt; <BR>
&lt;/HTML&gt;<BR>
</TT></FONT></P>

<P>Another powerful attribute is <TT>SCRIPT</TT>. This attribute allows a developer
to add code directly to an HTML document. Currently, two scripting languages are
available: JavaScript and Visual Basic Script (often referred to as VBScript), which
imitate Java and Visual Basic, respectively. Check out Netscape's Web site (<A HREF="http://home.netscape.com/"><B>http://home.netscape.com/</B></A>)
for JavaScript syntax and information and Microsoft's Web site (<A HREF="http://www.microsoft.com/"><B>http://www.microsoft.com/</B></A>)
for VBScript syntax and information. <A HREF="ch16.htm">Chapter 16</A> explains scripting
in a little more detail. <BR>
<BR>
<IMG SRC="bar.gif" WIDTH="480" HEIGHT="6" ALIGN="BOTTOM" BORDER="0"></P>


<BLOCKQUOTE>
	<P><B>NOTE:</B> Unless you have certified your control, make sure that the Safety
	Level is not set to High in Microsoft Internet Explorer. If it is set to High and
	your control is not certified, it will not run your scripts. To check or change this
	setting, select <U>V</U>iew, <U>O</U>ptions from the Explorer menu. Select the Security
	tab, and then click the Safety Level button to display the Safety Level dialog. Most
	users, especially developers, choose Medium because it gives you the option to load
	or not load something. Certification and other security issues are covered in <A
	HREF="ch16.htm">Chapter 16</A>.

</BLOCKQUOTE>

<P><IMG SRC="bar.gif" WIDTH="480" HEIGHT="6" ALIGN="BOTTOM" BORDER="0">
<H3><A NAME="Heading9"></A>ActiveX Control Pad</H3>
<P>The number of Web Authoring tools is growing rapidly; very little manual coding
of HTML is done anymore. The ActiveX SDK includes a handy little tool called the
ActiveX Control Pad, which aids in managing ActiveX controls in Web pages. It allows

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区不卡视频| 国产一区二区三区视频在线播放| 欧美日韩一区二区电影| 美国精品在线观看| 国产欧美日韩麻豆91| 欧美亚洲国产一区二区三区| 久久99久久久久久久久久久| 国产欧美精品一区| 欧美午夜精品久久久久久超碰| 蜜桃一区二区三区四区| 中文字幕一区二区三区不卡| 欧美一区二区三区播放老司机| 成人一区二区视频| 日韩精品一二三四| 亚洲欧美一区二区三区久本道91| 这里只有精品视频在线观看| 成人av一区二区三区| 全国精品久久少妇| 亚洲黄色片在线观看| 久久久综合网站| 911精品国产一区二区在线| 丁香婷婷综合色啪| 免费成人结看片| 亚洲精品日日夜夜| 久久丝袜美腿综合| 欧美亚洲国产bt| 国产成人在线网站| 日韩福利视频导航| 亚洲日韩欧美一区二区在线| 日韩亚洲欧美成人一区| 九九视频精品免费| 一区二区激情视频| 国产精品美女久久久久久| 欧美一区二区三级| 在线中文字幕不卡| 成人av在线一区二区| 国产成人在线色| 国产在线视视频有精品| 日韩中文字幕亚洲一区二区va在线| 中文字幕一区二区在线观看| 久久久久久久久一| 精品国产人成亚洲区| 欧美精品 日韩| 欧美网站一区二区| 欧美亚洲禁片免费| 色婷婷久久99综合精品jk白丝| 国产v日产∨综合v精品视频| 国产一区二区91| 国产综合一区二区| 激情文学综合丁香| 美腿丝袜一区二区三区| 日本视频在线一区| 日韩精品国产欧美| 日日夜夜精品视频天天综合网| 性做久久久久久免费观看| 亚洲毛片av在线| 亚洲欧美偷拍三级| 夜夜嗨av一区二区三区网页| 亚洲免费视频中文字幕| 亚洲精品中文在线| 一区二区三区四区av| 亚洲最新在线观看| 亚洲国产综合色| 午夜不卡av免费| 日本视频中文字幕一区二区三区| 免费看日韩a级影片| 国内欧美视频一区二区 | 国产精品888| 狠狠色丁香婷婷综合久久片| 国产美女主播视频一区| 九九久久精品视频| 国产成人在线观看| 国产一区二区按摩在线观看| 国产成人免费视频一区| av在线一区二区三区| 91麻豆国产福利在线观看| 91在线porny国产在线看| 日本精品裸体写真集在线观看| 91精品91久久久中77777| 欧美精品久久久久久久久老牛影院| 欧美另类久久久品| 精品国产乱码久久久久久图片 | 国产一区二区福利| 波多野洁衣一区| 91高清视频免费看| 91精品综合久久久久久| 精品免费国产一区二区三区四区| 国产亚洲短视频| 亚洲一区二区在线观看视频| 免费观看在线综合色| a在线播放不卡| 欧美顶级少妇做爰| 久久久高清一区二区三区| 亚洲免费观看高清完整版在线观看熊| 久久国产婷婷国产香蕉| 色又黄又爽网站www久久| 蜜臂av日日欢夜夜爽一区| 日韩精品专区在线影院重磅| 欧美成人欧美edvon| 成人app网站| 91精品麻豆日日躁夜夜躁| 色综合天天天天做夜夜夜夜做| 欧美一区二区三区四区五区 | 欧美亚洲图片小说| 亚洲天堂精品在线观看| 国产成a人亚洲| 精品国产91九色蝌蚪| 日本视频在线一区| 欧美久久婷婷综合色| 日韩精品福利网| 欧美精品 日韩| 久久电影国产免费久久电影| 777午夜精品视频在线播放| 天天色 色综合| 欧美久久久久中文字幕| 亚洲图片自拍偷拍| 欧美一区二区三区白人| 免费久久精品视频| 久久久一区二区三区捆绑**| 国内久久精品视频| 国产精品青草久久| 成人a级免费电影| 欧美激情在线看| 色8久久精品久久久久久蜜| 亚洲乱码中文字幕综合| 欧美精品v国产精品v日韩精品| 亚洲va韩国va欧美va| 精品久久久久久久久久久久久久久 | 91精品国产全国免费观看| 天堂蜜桃91精品| 欧美岛国在线观看| 豆国产96在线|亚洲| 日韩毛片高清在线播放| 欧美日韩午夜影院| 毛片一区二区三区| 国产精品久久久久久久久免费相片| www.性欧美| 亚洲精品老司机| 日韩一区二区电影| 国产精品自在欧美一区| 亚洲麻豆国产自偷在线| 欧美日本一区二区三区| 国产麻豆成人传媒免费观看| 欧美国产1区2区| 精品视频999| 韩国av一区二区三区四区| 精品国内二区三区| 国产裸体歌舞团一区二区| 中文字幕成人网| 欧美精品日韩综合在线| 激情六月婷婷综合| 亚洲精品免费在线| 日韩欧美国产一区二区三区| 不卡视频一二三四| 亚洲午夜免费电影| 国产网红主播福利一区二区| 91丨porny丨最新| 亚洲影院免费观看| 久久久亚洲午夜电影| 色系网站成人免费| 国产久卡久卡久卡久卡视频精品| 亚洲欧洲日韩在线| 26uuuu精品一区二区| 99在线视频精品| 亚洲国产成人tv| 久久久精品蜜桃| 88在线观看91蜜桃国自产| 国产成人免费在线| 午夜一区二区三区在线观看| 欧美国产97人人爽人人喊| 欧美日韩一区成人| 97se亚洲国产综合自在线观| 香蕉av福利精品导航| 日本一二三四高清不卡| 欧美日韩高清在线| 粉嫩av一区二区三区粉嫩| 天堂av在线一区| 国产精品国产三级国产普通话99| 91精品国产综合久久久久久漫画| av高清不卡在线| 看片网站欧美日韩| 国产精品视频一区二区三区不卡| 欧美日韩亚洲综合在线| 粉嫩蜜臀av国产精品网站| 亚洲va国产va欧美va观看| 国产精品久久久久久户外露出| 日韩一区二区视频| 日本丰满少妇一区二区三区| 国产一区二区三区免费看| 亚洲午夜精品17c| 中日韩av电影| 日韩三级在线免费观看| 成人aaaa免费全部观看| 久久国产精品露脸对白| 亚洲成人免费视频| 亚洲视频一区二区免费在线观看| 久久夜色精品国产欧美乱极品| 欧美性大战久久久| 99久久99久久精品国产片果冻| 国产一区二区三区精品欧美日韩一区二区三区|