vc++小程序原文件

时间:2014-03-29 02:45:11
【文件属性】:
文件名称:vc++小程序原文件
文件大小:5.71MB
文件格式:RAR
更新时间:2014-03-29 02:45:11
vc++ 颜色矩形 输入颜色数值就可以改变矩形框颜色。 相关代码:// 颜色矩形.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "颜色矩形.h" #include "颜色矩形Dlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CMyApp BEGIN_MESSAGE_MAP(CMyApp, CWinApp) //{{AFX_MSG_MAP(CMyApp) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG ON_COMMAND(ID_HELP, CWinApp::OnHelp) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CMyApp construction CMyApp::CMyApp() { // TODO: add construction code here, // Place all significant initialization in InitInstance } ///////////////////////////////////////////////////////////////////////////// // The one and only CMyApp object CMyApp theApp; ///////////////////////////////////////////////////////////////////////////// // CMyApp initialization BOOL CMyApp::InitInstance() { AfxEnableControlContainer(); // Standard initialization // If you are not using these features and wish to reduce the size // of your final executable, you should remove from the following // the specific initialization routines you do not need. #ifdef _AFXDLL Enable3dControls(); // Call this when using MFC in a shared DLL #else Enable3dControlsStatic(); // Call this when linking to MFC statically #endif CMyDlg dlg; m_pMainWnd = &dlg; int nResponse = dlg.DoModal(); if (nResponse == IDOK) { // TODO: Place code here to handle when the dialog is // dismissed with OK } else if (nResponse == IDCANCEL) { // TODO: Place code here to handle when the dialog is // dismissed with Cancel } // Since the dialog has been closed, return FALSE so that we exit the // application, rather than start the application's message pump. return FALSE; }
【文件预览】:
颜色矩形
----颜色矩形.dsp(4KB)
----颜色矩形.vcproj.LILEI.Administrator.user(1KB)
----颜色矩形Dlg.cpp(5KB)
----StdAfx.cpp(210B)
----颜色矩形.rc(5KB)
----颜色矩形.ncb(3.7MB)
----颜色矩形Dlg.h(1KB)
----颜色矩形.dsw(541B)
----颜色矩形.vcproj(7KB)
----Debug()
--------颜色矩形.exe(88KB)
--------vc60.pdb(356KB)
--------颜色矩形.ilk(193KB)
--------vc80.pdb(676KB)
--------颜色矩形.exe.embed.manifest.res(724B)
--------vc60.idb(193KB)
--------颜色矩形Dlg.obj(156KB)
--------颜色矩形.exe.embed.manifest(660B)
--------颜色矩形.exe.intermediate.manifest(625B)
--------BuildLog.htm(10KB)
--------颜色矩形.obj(138KB)
--------颜色矩形.pch(13.06MB)
--------mt.dep(67B)
--------Desktop_2.ini(8B)
--------StdAfx.obj(328KB)
--------颜色矩形.pdb(3.09MB)
--------vc80.idb(683KB)
--------颜色矩形.res(3KB)
----ReadMe.txt(4KB)
----颜色矩形.clw(1KB)
----StdAfx.h(1KB)
----颜色矩形.h(1KB)
----颜色矩形.suo(9KB)
----Desktop_2.ini(8B)
----Resource.h(870B)
----颜色矩形.aps(35KB)
----颜色矩形.cpp(2KB)
----res()
--------Desktop_2.ini(8B)
--------颜色矩形.ico(1KB)
--------颜色矩形.rc2(400B)
----颜色矩形.opt(48KB)
----颜色矩形.plg(692B)
----颜色矩形.sln(888B)

网友评论

  • 很不错的小程序,适合模块化学习c++;