https://msdn.microsoft.com/en-us/library/windows/desktop/ff381399%28v=vs.85%29.aspx
作者共發了7篇帖子。
![]() |
|
![]() |
Welcome to the series Learn to Program for Windows in C++. The aim of this series is to teach you how to write a Windows program in C++.
In the first module, you'll learn step-by-step how to create and show a window. Later modules will introduce the Component Object Model (COM), graphics and text, and user input. For this series, it is assumed that you have a good working knowledge of C++ programming. No previous experience with Windows programming is assumed. (If you are new to C++, you can find learning material at the Visual C++ Developer Center.) 【翻譯】 歡迎閱讀 《學習用C++編寫Windows窗口程序》系列教程。這套教程的目的是為了講解如何用C++編寫一個Windows窗口程序。 首先,你將一步一步地學習怎樣創建並顯示一個窗口,然後學習COM(組件對象模型),圖形繪製以及處理文本和用戶的輸入。 學習這個系列教程之前,你需要已經掌握C++的基礎知識,但不需要有任何先前的Windows窗口程序編寫經驗。如果你完全是一個C++的新手,那麼你可以在VC++開發中心(應該也是微軟官方的一個網站)找到C++的學習資料。 |
![]() |
C++基礎知識學習資料:
https://msdn.microsoft.com/en-us/vstudio/hh386302 右邊的C++ programming basics(C++編程基礎)欄目: ![]() |
![]() |
【編寫Windows窗口程序的開發環境布置】
https://msdn.microsoft.com/en-us/library/windows/desktop/ff381402%28v=vs.85%29.aspx 可以直接下載Windows SDK安裝,然後用記事本或者其他文本編輯器編寫程序,最後在控制台中用命令編譯程序。這是最原始的開發方式。 不過文章裡面推薦使用免費的集成開發環境:Visual C++ Express(速成版) |
![]() |
微軟官方上的教程比國內的書上講得詳細多了。比如我看了很多國內的設計Windows窗口程序的書,沒有一本書提到如何啟用XP風格的控制項,以及如何使用ListControl的Tile(平鋪)視圖。
|
![]() |
【不用MFC,怎樣編寫窗口基類 class Window ——也就是如何把窗口API封裝成一個C++類的教程】
https://msdn.microsoft.com/en-us/library/windows/desktop/ff381400%28v=vs.85%29.aspx |
![]() |