subject_21413.htm
来自「一些关于vc的问答」· HTM 代码 · 共 24 行
HTM
24 行
<p>
序号:21413 发表者:苦闷人 发表日期:2002-11-17 11:11:59
<br>主题:关于几个类的含义
<br>内容:CAsyncSocket是个什么类,Async这几个字母经常看到,是什么意思,还有CRebar是什么类.
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:Norton AntiVirus 回复日期:2002-11-17 12:34:21
<br>内容:A CAsyncSocket object represents a Windows Socket — an endpoint of network communication. Class CAsyncSocket encapsulates theWindows Sockets API, providing an object-oriented abstraction for programmers who want to use Windows Sockets in conjunction with MFC.<BR><BR>This class is based on the assumption that you understand network communications. You are responsible for handling blocking, byte-order differences, and conversions between Unicode and multibyte character set (MBCS) strings. If you want a more convenient interface that manages these issues for you, see class CSocket.<BR><BR>To use a CAsyncSocket object, call its constructor, then call the Create function to create the underlying socket handle (type SOCKET), except on accepted sockets. For a server socket call the Listen member function, and for a client socket call the Connect member function. The server socket should call the Accept function upon receiving a connection request. Use the remaining CAsyncSocket functions to carry out communications between sockets. Upon completion, destroy the CAsyncSocket object if it was created on the heap; the destructor automatically calls the Close function. The SOCKET data type is described in the articleWindows Sockets: Background in Visual C++ Programmer's Guide. <BR><BR>For more information, seeWindows Sockets: Using Class CAsyncSocket and related articles in Visual C++ Programmer's Guide, as well asOverview of Windows Sockets 2 andWindows Sockets Programming Considerations in the Win32 SDK documentation.<BR><BR>#include <afxsock.h><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>A CReBar object is a control bar that provides layout, persistence, and state information for rebar controls.<BR><BR>A rebar object can contain a variety of child windows, usually other controls, including edit boxes, toolbars, and list boxes. A rebar object can display its child windows over a specified bitmap. Your application can automatically resize the rebar, or the user can manually resize the rebar by clicking or dragging its gripper bar. <BR><BR><BR><BR>Rebar Control<BR><BR>A rebar object behaves similarly to a toolbar object. A rebar uses the click-and-drag mechanism to resize its bands. A rebar control can contain one or more bands, with each band having any combination of a gripper bar, a bitmap, a text label, and a child window. However, bands cannot contain more than one child window.<BR><BR>CReBar uses the CReBarCtrl class to provide its implementation. You can access the rebar control through GetReBarCtrl to take advantage of the control's customization options. For more information about rebar controls, see CReBarCtrl. For more information about using rebar controls, seeUsing CReBarCtrl in the Visual C++ Programmer's Guide.<BR><BR>Warning Rebar and rebar control objects do not support MFC control bar docking. If CRebar::EnableDocking is called, your application will assert.<BR><BR>#include <afxext.h><BR><BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:苦闷人 回复日期:2002-11-17 13:07:48
<br>内容:我也可以查到英文的,我想知道汉语意思。
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:未出手的飞刀 回复日期:2002-11-17 15:24:38
<br>内容:<BR>CAsyncSocket:使用异步工作机制的Socket类
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?