資源簡介
獲取屏幕上鼠標所在點處的顏色組成!并且可以自己設置顏色值
代碼片段和文件信息
//?Color.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Color.h“
#include?“ColorDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CColorApp
BEGIN_MESSAGE_MAP(CColorApp?CWinApp)
//{{AFX_MSG_MAP(CColorApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CColorApp?construction
CColorApp::CColorApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CColorApp?object
CColorApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CColorApp?initialization
BOOL?CColorApp::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
CColorDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????38236??2008-10-22?11:35??Color\Color.aps
?????文件???????1502??2007-08-03?20:48??Color\Color.clw
?????文件???????2049??2007-07-07?22:14??Color\Color.cpp
?????文件???????4062??2007-07-08?00:09??Color\Color.dsp
?????文件????????533??2007-07-07?22:14??Color\Color.dsw
?????文件???????1313??2007-07-07?22:14??Color\Color.h
?????文件???14240768??2008-10-22?18:16??Color\Color.ncb
?????文件??????48640??2007-08-03?20:51??Color\Color.opt
?????文件???????1514??2007-08-03?20:51??Color\Color.plg
?????文件???????5850??2008-10-22?11:35??Color\Color.rc
?????文件????????874??2008-10-22?11:25??Color\Color.sln
????..A..H.?????10752??2008-10-22?18:16??Color\Color.suo
?????文件???????7209??2008-10-22?11:25??Color\Color.vcproj
?????文件???????1407??2008-10-22?18:16??Color\Color.vcproj.KEVIN.袁潔.user
?????文件???????7255??2008-10-22?11:25??Color\ColorDlg.cpp
?????文件???????2020??2007-07-10?14:23??Color\ColorDlg.h
?????文件???????3561??2007-07-07?22:14??Color\ReadMe.txt
?????文件???????1051??2007-07-10?14:23??Color\Resource.h
?????文件????????207??2007-07-07?22:14??Color\StdAfx.cpp
?????文件???????1054??2007-07-07?22:14??Color\StdAfx.h
?????文件???????1078??2007-07-07?22:14??Color\res\Color.ico
?????文件????????397??2007-07-07?22:14??Color\res\Color.rc2
?????文件??????11680??2008-10-22?11:37??Color\Release\BuildLog.htm
?????文件?????303104??2008-10-22?11:37??Color\Release\Color.exe
?????文件????????145??2008-10-22?11:37??Color\Release\Color.exe.intermediate.manifest
?????文件??????14928??2008-10-22?11:37??Color\Release\Color.obj
?????文件???14286848??2008-10-22?11:37??Color\Release\Color.pch
?????文件??????12908??2008-10-22?11:37??Color\Release\Color.res
?????文件??????58861??2008-10-22?11:37??Color\Release\ColorDlg.obj
?????文件?????????67??2008-10-22?11:37??Color\Release\mt.dep
............此處省略27個文件信息
評論
共有 條評論