資源簡介
基于MFC的RGB調色器,比較簡單的。實現起來還是不錯的。

代碼片段和文件信息
//?RGB.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“RGB.h“
#include?“RGBDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CRGBApp
BEGIN_MESSAGE_MAP(CRGBApp?CWinApp)
//{{AFX_MSG_MAP(CRGBApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CRGBApp?construction
CRGBApp::CRGBApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CRGBApp?object
CRGBApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CRGBApp?initialization
BOOL?CRGBApp::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
CRGBDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????106537??2014-08-25?15:06??RGB\Debug\RGB.exe
?????文件?????197696??2014-08-25?15:06??RGB\Debug\RGB.ilk
?????文件??????14046??2014-08-25?15:06??RGB\Debug\RGB.obj
?????文件????5621392??2014-08-25?09:25??RGB\Debug\RGB.pch
?????文件?????386048??2014-08-25?15:06??RGB\Debug\RGB.pdb
?????文件???????2732??2014-08-25?14:54??RGB\Debug\RGB.res
?????文件??????28455??2014-08-25?15:06??RGB\Debug\RGBDlg.obj
?????文件?????105442??2014-08-25?09:25??RGB\Debug\StdAfx.obj
?????文件?????214016??2014-08-25?15:06??RGB\Debug\vc60.idb
?????文件?????372736??2014-08-25?15:06??RGB\Debug\vc60.pdb
?????文件???????3525??2014-08-25?09:19??RGB\ReadMe.txt
?????文件???????1078??2014-08-25?09:19??RGB\res\RGB.ico
?????文件????????395??2014-08-25?09:19??RGB\res\RGB.rc2
?????文件????????773??2014-08-25?09:25??RGB\resource.h
?????文件??????35600??2014-08-25?14:54??RGB\RGB.APS
?????文件???????1254??2014-08-25?15:06??RGB\RGB.clw
?????文件???????2021??2014-08-25?10:12??RGB\RGB.cpp
?????文件???????4105??2014-08-25?09:19??RGB\RGB.dsp
?????文件????????531??2014-08-25?09:19??RGB\RGB.dsw
?????文件???????1291??2014-08-25?09:19??RGB\RGB.h
?????文件??????50176??2014-08-25?15:06??RGB\RGB.ncb
?????文件??????48640??2014-08-25?15:06??RGB\RGB.opt
?????文件????????984??2014-08-25?15:06??RGB\RGB.plg
?????文件???????5667??2014-08-25?14:54??RGB\RGB.rc
?????文件???????5556??2014-08-25?15:06??RGB\RGBDlg.cpp
?????文件???????1591??2014-08-25?15:06??RGB\RGBDlg.h
?????文件????????205??2014-08-25?09:19??RGB\StdAfx.cpp
?????文件???????1054??2014-08-25?09:19??RGB\StdAfx.h
?????目錄??????????0??2014-08-25?15:06??RGB\Debug
?????目錄??????????0??2014-08-25?09:19??RGB\res
............此處省略4個文件信息
- 上一篇:C語言編寫的象棋源碼范例
- 下一篇:C++開發漂亮的軟件界面
評論
共有 條評論