摘要: CPropertySheet 的选项卡中显示文本是通常取自的对话框模板资源中每个 CPropertyPage 标题。 还有一些其他方法, 可被用来选择对于每一页标题
阅读全文
摘要: MFC应用程序框架的启动,首先定义一个全局的CWinAPP,其为应用程序的一个连接纽带,把各部分都连接起来。接下来调用_tWinMain(),其实质是一个Win32的API宏调用;在那里面,它调用了AfxWinMain(),在这里进行应用程序框架的初始化工作
阅读全文
摘要: 该文重点讲述了Windows处理事件、消息的具体过程和步骤。尤其是在系系处理鼠标键盘事件的过程上做了详解。通过这篇文章,你将对Windows的消息处理机制有一个较全面的了解。
阅读全文
摘要: Windows Sockets在头文件winsock.h中定义了所有的错误码,它们包括以“WSA”打头的Windows Sockets实现返回的错误码和Berkeley Sockets定义的错误码全集。定义Berkeley Sockets错误码是为了确保原有软件的可移植性。
阅读全文
摘要: 在VC编程中,操作文件的方法主要有两种:利用API函数和MFC的CFile类。微软在其中封装了文件的一般操作,下面我就介绍一下如何利用这两种方法实现文件操作。
阅读全文
摘要: CTime does not have a base class.
A CTime object represents an absolute time and date. The CTime class incorporates the ANSI time_t data type and its associated run-time functions, including the ability to convert to and from a Gregorian date and 24-hour time.
CTime values are based on coordinated universal time (UTC), which is equivalent to Greenwich mean time (GMT). The local time zone is controlled by the TZ environment variable.
阅读全文