国外下载的Win32++类库(纯C++代码封装的windows SDK),附源码

上传者: aasmfox | 上传时间: 2019-12-21 19:22:27 | 文件大小: 3.2MB | 文件类型: rar
使用C++代码封装的win32操作类, 与MFC相似,对于学习SDK与C++是巨好的参考 Tutorials Menu of tutorials Tutorial 1: The Simplest Window Tutorial 2: Using Classes and Inheritance Tutorial 3: Using Messages to Create a Scribble Window Tutorial 4: Repainting the Window Tutorial 5: Wrapping a Frame around our Scribble Window Tutorial 6: Customising Window Creation Tutorial 7: Customising the Toolbar Tutorial 8: Loading and Saving Files Tutorial 9: Printing Tutorial 10: Finishing Touches Tutorial 1: The Simplest Window The following code uses Win32++ to create a window. This is all the code you need (in combination with Win32++) to create and display a simple window. Note that in order to add the Win32++ code to our program, we use an #include statement as shown below. #include "../Win32++/Wincore.h" INT WINAPI WinMain(HINSTANCE, HINSTANCE, LPTSTR, int) { //Start Win32++ CWinApp MyApp; //Create a CWnd object CWnd MyWindow; //Create (and display) the window MyWindow.Create(); //Run the application return MyApp.Run(); } This program has four key steps: Start Win32++. We do this here by creating a CWinApp object called MyApp. Create a CWnd object called MyWindow. Create a default window by calling the Create function. Start the message loop, by calling the Run function. If you compile and run this program, you'll find that the application doesn't end when the window is closed. This is behaviour is normal. An illustration of how to use messages to control the windows behaviour (including closing the application) will be left until tutorial 3.

文件下载

资源详情

[{"title":"( 98 个子文件 3.2MB ) 国外下载的Win32++类库(纯C++代码封装的windows SDK),附源码","children":[{"title":"DialogDemo","children":[{"title":"Readme.txt <span style='color:#111;'> 710B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"DialogDemoApp.h <span style='color:#111;'> 583B </span>","children":null,"spread":false},{"title":"MyDialog.cpp <span style='color:#111;'> 3.10KB </span>","children":null,"spread":false},{"title":"Hyperlink.h <span style='color:#111;'> 728B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"Win32++.manifest <span style='color:#111;'> 673B </span>","children":null,"spread":false},{"title":"Dialog.ico <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false}],"spread":true},{"title":"stdafx.h <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"DialogDemo_RELEASE.dev <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false},{"title":"Resource.rc <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false},{"title":"DialogDemo_DEBUG.dev <span style='color:#111;'> 2.95KB </span>","children":null,"spread":false},{"title":"MyDialog.h <span style='color:#111;'> 847B </span>","children":null,"spread":false},{"title":"MyButton.cpp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 479B </span>","children":null,"spread":false},{"title":"Hyperlink.cpp <span style='color:#111;'> 2.61KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 268B </span>","children":null,"spread":false},{"title":"MyButton.h <span style='color:#111;'> 298B </span>","children":null,"spread":false},{"title":"DialogDemoApp.cpp <span style='color:#111;'> 460B </span>","children":null,"spread":false}],"spread":false},{"title":"ProjectFiles","children":[{"title":"DialogDemo.dsw <span style='color:#111;'> 545B </span>","children":null,"spread":false},{"title":"DialogDemo_2008.vcproj <span style='color:#111;'> 5.70KB </span>","children":null,"spread":false},{"title":"DialogDemo_2010.vcxproj.filters <span style='color:#111;'> 2.41KB </span>","children":null,"spread":false},{"title":"DialogDemo_2005.vcproj <span style='color:#111;'> 5.83KB </span>","children":null,"spread":false},{"title":"DialogDemo.plg <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"DialogDemo_2005.sln <span style='color:#111;'> 894B </span>","children":null,"spread":false},{"title":"DialogDemo.bpf <span style='color:#111;'> 171B </span>","children":null,"spread":false},{"title":"DialogDemo_2003.vcproj <span style='color:#111;'> 4.56KB </span>","children":null,"spread":false},{"title":"DialogDemo_2010.sln <span style='color:#111;'> 901B </span>","children":null,"spread":false},{"title":"DialogDemo.cbp <span style='color:#111;'> 6.08KB </span>","children":null,"spread":false},{"title":"DialogDemo_2003.sln <span style='color:#111;'> 914B </span>","children":null,"spread":false},{"title":"DialogDemo.ncb <span style='color:#111;'> 81.00KB </span>","children":null,"spread":false},{"title":"DialogDemo.bdsproj <span style='color:#111;'> 20.13KB </span>","children":null,"spread":false},{"title":"DialogDemo.opt <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"DialogDemo_2010.vcxproj <span style='color:#111;'> 6.26KB </span>","children":null,"spread":false},{"title":"DialogDemo_2008.sln <span style='color:#111;'> 895B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"StdAfx.obj <span style='color:#111;'> 30.24KB </span>","children":null,"spread":false},{"title":"DialogDemo.ilk <span style='color:#111;'> 522.77KB </span>","children":null,"spread":false},{"title":"Hyperlink.obj <span style='color:#111;'> 223.96KB </span>","children":null,"spread":false},{"title":"DialogDemo.pch <span style='color:#111;'> 9.40MB </span>","children":null,"spread":false},{"title":"MyButton.obj <span style='color:#111;'> 35.96KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 329.00KB </span>","children":null,"spread":false},{"title":"DialogDemo.exe <span style='color:#111;'> 336.07KB </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 38.37KB </span>","children":null,"spread":false},{"title":"DialogDemoApp.obj <span style='color:#111;'> 150.74KB </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 324.00KB </span>","children":null,"spread":false},{"title":"MyDialog.obj <span style='color:#111;'> 262.79KB </span>","children":null,"spread":false},{"title":"DialogDemo.pdb <span style='color:#111;'> 777.00KB </span>","children":null,"spread":false},{"title":"Resource.res <span style='color:#111;'> 3.95KB </span>","children":null,"spread":false}],"spread":false},{"title":"DialogDemo.dsp <span style='color:#111;'> 5.10KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Win32++","children":[{"title":"new projects","children":[{"title":"NewProject_RELEASE.dev <span style='color:#111;'> 973B </span>","children":null,"spread":false},{"title":"NewProject_2003.vcproj <span style='color:#111;'> 3.49KB </span>","children":null,"spread":false},{"title":"NewProject_2005.vcproj <span style='color:#111;'> 4.42KB </span>","children":null,"spread":false},{"title":"NewProject.cbp <span style='color:#111;'> 5.86KB </span>","children":null,"spread":false},{"title":"NewProject_DEBUG.dev <span style='color:#111;'> 992B </span>","children":null,"spread":false},{"title":"NewProject_2008.vcproj <span style='color:#111;'> 4.26KB </span>","children":null,"spread":false},{"title":"NewProject_2010.vcxproj <span style='color:#111;'> 5.10KB </span>","children":null,"spread":false},{"title":"NewProject.dsp <span style='color:#111;'> 4.06KB </span>","children":null,"spread":false},{"title":"Dev-C++","children":[{"title":"Release","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"tools","children":[{"title":"Compile VS2008 Express.bat <span style='color:#111;'> 19.58KB </span>","children":null,"spread":false},{"title":"Compile CodeBlocks.bat <span style='color:#111;'> 27.60KB </span>","children":null,"spread":false},{"title":"Compile VS2005 Express.bat <span style='color:#111;'> 20.53KB </span>","children":null,"spread":false},{"title":"Compile All.bat <span style='color:#111;'> 148B </span>","children":null,"spread":false},{"title":"Compile VS2010 Express.bat <span style='color:#111;'> 20.25KB </span>","children":null,"spread":false},{"title":"Clean.bat <span style='color:#111;'> 4.12KB </span>","children":null,"spread":false},{"title":"Compile VS2008.bat <span style='color:#111;'> 19.20KB </span>","children":null,"spread":false},{"title":"Compile VS2010.bat <span style='color:#111;'> 19.41KB </span>","children":null,"spread":false},{"title":"AllProjects_2005.sln <span style='color:#111;'> 11.90KB </span>","children":null,"spread":false},{"title":"AllProjects.dsw <span style='color:#111;'> 8.35KB </span>","children":null,"spread":false},{"title":"CleanTutorials.bat <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"Compile VS2005.bat <span style='color:#111;'> 19.34KB </span>","children":null,"spread":false},{"title":"AllProjects_2003.sln <span style='color:#111;'> 14.04KB </span>","children":null,"spread":false},{"title":"AllProjects_2008.sln <span style='color:#111;'> 13.23KB </span>","children":null,"spread":false}],"spread":false},{"title":"About these folders.txt <span style='color:#111;'> 809B </span>","children":null,"spread":false},{"title":"include","children":[{"title":"default_resource.rc <span style='color:#111;'> 8.29KB </span>","children":null,"spread":false},{"title":"copyright.txt <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"wceframe.h <span style='color:#111;'> 10.54KB </span>","children":null,"spread":false},{"title":"wcestddef.h <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"wincore.h <span style='color:#111;'> 82.69KB </span>","children":null,"spread":false},{"title":"mdi.h <span style='color:#111;'> 19.42KB </span>","children":null,"spread":false},{"title":"propertysheet.h <span style='color:#111;'> 25.22KB </span>","children":null,"spread":false},{"title":"changes.txt <span style='color:#111;'> 33.09KB </span>","children":null,"spread":false},{"title":"classes.txt <span style='color:#111;'> 5.72KB </span>","children":null,"spread":false},{"title":"dialog.h <span style='color:#111;'> 14.51KB </span>","children":null,"spread":false},{"title":"socket.h <span style='color:#111;'> 14.62KB </span>","children":null,"spread":false},{"title":"toolbar.h <span style='color:#111;'> 33.97KB </span>","children":null,"spread":false},{"title":"frame.h <span style='color:#111;'> 96.13KB </span>","children":null,"spread":false},{"title":"info.txt <span style='color:#111;'> 9.01KB </span>","children":null,"spread":false},{"title":"ribbon.h <span style='color:#111;'> 16.02KB </span>","children":null,"spread":false},{"title":"statusbar.h <span style='color:#111;'> 7.61KB </span>","children":null,"spread":false},{"title":"webbrowser.h <span style='color:#111;'> 19.86KB </span>","children":null,"spread":false},{"title":"listview.h <span style='color:#111;'> 25.49KB </span>","children":null,"spread":false},{"title":"tab.h <span style='color:#111;'> 41.09KB </span>","children":null,"spread":false},{"title":"rebar.h <span style='color:#111;'> 19.54KB </span>","children":null,"spread":false},{"title":"default_resource.h <span style='color:#111;'> 3.49KB </span>","children":null,"spread":false},{"title":"release notes.txt <span style='color:#111;'> 4.19KB </span>","children":null,"spread":false},{"title":"stdcontrols.h <span style='color:#111;'> 26.86KB </span>","children":null,"spread":false},{"title":"treeview.h <span style='color:#111;'> 17.73KB </span>","children":null,"spread":false},{"title":"gdi.h <span style='color:#111;'> 69.30KB </span>","children":null,"spread":false},{"title":"docking.h <span style='color:#111;'> 121.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"output","children":null,"spread":false},{"title":"help","children":[{"title":"Win32++.chm <span style='color:#111;'> 234.85KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • chenxiang205 :
    不错,很有用!!
    2018-02-11
  • dzm_neu :
    下载学习一下,谢谢分享!
    2017-11-05
  • a525087259 :
    下载了,感觉挺好好,学得明了,果然是大神。
    2016-01-02
  • yiyangsyf :
    非常好的东西。不过可以在win32官方下载地址下到
    2015-11-09
  • 走向程序员 :
    很好的资料,谢谢分享
    2015-04-09

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明