摘要: 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.
閱讀全文