• 大小: 25KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-20
  • 语言: 其他
  • 标签: 屏幕取色  

资源简介

打开软件,将光标放置在要取色的点处,按下键盘A键就可得到改点的RGB值和HSV值

资源截图

代码片段和文件信息

// MyHSV.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “MyHSV.h“
#include “MyHSVDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMyHSVApp

BEGIN_MESSAGE_MAP(CMyHSVApp CWinApp)
//{{AFX_MSG_MAP(CMyHSVApp)
// 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()

/////////////////////////////////////////////////////////////////////////////
// CMyHSVApp construction

CMyHSVApp::CMyHSVApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CMyHSVApp object

CMyHSVApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CMyHSVApp initialization

BOOL CMyHSVApp::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

CMyHSVDlg 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;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      36860  2011-04-09 16:26  MyHSV\MyHSV.aps

     文件       2045  2011-04-09 16:41  MyHSV\MyHSV.clw

     文件       2049  2011-04-09 15:52  MyHSV\MyHSV.cpp

     文件       4141  2011-04-09 15:52  MyHSV\MyHSV.dsp

     文件        535  2011-04-09 15:52  MyHSV\MyHSV.dsw

     文件       1313  2011-04-09 15:52  MyHSV\MyHSV.h

     文件      41984  2011-04-09 19:06  MyHSV\MyHSV.ncb

     文件      48640  2011-04-09 19:06  MyHSV\MyHSV.opt

     文件        244  2011-04-09 19:06  MyHSV\MyHSV.plg

     文件       6838  2011-04-09 16:26  MyHSV\MyHSV.rc

     文件       4763  2011-04-09 16:27  MyHSV\MyHSVDlg.cpp

     文件       1578  2011-04-09 16:28  MyHSV\MyHSVDlg.h

     文件       3561  2011-04-09 15:52  MyHSV\ReadMe.txt

     文件       1078  2011-04-09 15:52  MyHSV\res\MyHSV.ico

     文件        397  2011-04-09 15:52  MyHSV\res\MyHSV.rc2

     文件       1235  2011-04-09 16:26  MyHSV\resource.h

     文件        207  2011-04-09 15:52  MyHSV\StdAfx.cpp

     文件       1054  2011-04-09 15:52  MyHSV\StdAfx.h

     目录          0  2011-11-17 15:56  MyHSV\res

     目录          0  2011-11-17 15:56  MyHSV

----------- ---------  ---------- -----  ----

               158522                    20


评论

共有 条评论