• 大小: 489KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-31
  • 语言: C/C++
  • 标签: VC  自绘  OCR  

资源简介

vc++编写的界面源代码,全部自绘,功能及其强大,想学界面编程的一定要看 ,打包分享给大家,来下载一起学习吧

资源截图

代码片段和文件信息

// RTScrollBar1.cpp : 实现文件
//

#include “stdafx.h“
#include “RTScrollBar1.h“
#include “RTDraw.h“

// CRTScrollBar1

IMPLEMENT_DYNAMIC(CRTScrollBar1 CScrollBar)
CRTScrollBar1::CRTScrollBar1()
{
m_bMouseDown = FALSE;
m_bMouseDownArrowForback = FALSE;
m_bMouseDownArrowForwad = FALSE;
m_bDragging = FALSE;
m_nThumbStart = 0;
}

CRTScrollBar1::~CRTScrollBar1()
{
}

CBitmap* CRTScrollBar1::m_ScrollBarUpArrowBitmap[5] = {NULLNULLNULLNULLNULL};
CBitmap* CRTScrollBar1::m_ScrollBarLeftArrowBitmap[5] = {NULLNULLNULLNULLNULL};
CBitmap* CRTScrollBar1::m_ScrollBarDownArrowBitmap[5] = {NULLNULLNULLNULLNULL};
CBitmap* CRTScrollBar1::m_ScrollBarRightArrowBitmap[5] = {NULLNULLNULLNULLNULL};

UINT     CRTScrollBar1::m_ScrollBarUpArrowBitmapDrawMode[5] = {00000};
UINT     CRTScrollBar1::m_ScrollBarLeftArrowBitmapDrawMode[5] = {00000};
UINT     CRTScrollBar1::m_ScrollBarDownArrowBitmapDrawMode[5] = {00000};
UINT     CRTScrollBar1::m_ScrollBarRightArrowBitmapDrawMode[5] = {00000};

CBitmap* CRTScrollBar1::m_ScrollBarHorizontalBitmap[5] = {NULLNULLNULLNULLNULL};
CBitmap* CRTScrollBar1::m_ScrollBarVerticalBitmap[5] = {NULLNULLNULLNULLNULL};
UINT     CRTScrollBar1::m_ScrollBarHorizontalBitmapDrawMode[5] = {00000};
UINT     CRTScrollBar1::m_ScrollBarVerticalBitmapDrawMode[5] = {00000};
BOOL     CRTScrollBar1::m_IsEnableRTstyle = TRUE;

BEGIN_MESSAGE_MAP(CRTScrollBar1 CScrollBar)
ON_WM_ERASEBKGND()
ON_WM_LBUTTONUP()
ON_WM_LBUTTONDOWN()
ON_WM_MOUSEMOVE()
ON_WM_MOUSEWHEEL()
ON_WM_PAINT()
END_MESSAGE_MAP()



// CRTScrollBar1 消息处理程序
void CRTScrollBar1::DrawVertical(CDC* pDC)
{
CRect clientRect;
GetClientRect(&clientRect);
CMemDC memDC(pDC &clientRect);

BOOL IsWindowEnable = IsWindowEnabled();
//draw up arrow of scrollbar
CRect rtUpArrow(clientRect.leftclientRect.topclientRect.rightclientRect.top + clientRect.Width());

if(m_SizeArea == AreaTop)
{
CRTDraw::RTDrawBitmap(&memDC&rtUpArrowm_ScrollBarVerticalBitmap[BMP_BACK]m_ScrollBarVerticalBitmapDrawMode[BMP_BACK]);
rtUpArrow.OffsetRect(0clientRect.Width());
}
if(!IsWindowEnable)
CRTDraw::RTDrawBitmap(&memDC&rtUpArrowm_ScrollBarUpArrowBitmap[BMP_DISABLE]m_ScrollBarUpArrowBitmapDrawMode[BMP_DISABLE]);
else
{
if(m_bMouseDownArrowForback)
CRTDraw::RTDrawBitmap(&memDC&rtUpArrowm_ScrollBarUpArrowBitmap[BMP_DOWN]m_ScrollBarUpArrowBitmapDrawMode[BMP_DOWN]);
else
CRTDraw::RTDrawBitmap(&memDC&rtUpArrowm_ScrollBarUpArrowBitmap[BMP_NORMAL]m_ScrollBarUpArrowBitmapDrawMode[BMP_NORMAL]);
}

//draw right arrow
CRect rtDownArrow(clientRect.leftclientRect.bottom - clientRect.Width()clientRect.rightclientRect.bottom);

if(m_SizeArea == AreaBottom)
{
CRTDraw::RTDrawBitmap(&memDC&rtDownArrowm_ScrollBarVerticalBitmap[BMP_BACK]m_ScrollBarVerticalBitmapDrawMode[BMP_BACK]);
rtUpArrow.OffsetRect(00-clientRect.Width());
}
if(!IsWindowEnable)
C

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

     文件         51  2003-12-26 22:34  WebGet0.9Beta\FileDown\Completed\fff\type.ini

     文件         48  2004-03-12 17:36  WebGet0.9Beta\FileDown\Completed\fff\vssver.scc

     文件         51  2003-12-31 20:17  WebGet0.9Beta\FileDown\Completed\MP3\type.ini

     文件         48  2004-03-12 17:36  WebGet0.9Beta\FileDown\Completed\MP3\vssver.scc

     文件         47  2003-12-25 19:36  WebGet0.9Beta\FileDown\Completed\type.ini

     文件         48  2004-03-12 17:36  WebGet0.9Beta\FileDown\Completed\vssver.scc

     文件         58  2003-12-26 22:39  WebGet0.9Beta\FileDown\Recycled\dfdfdf\type.ini

     文件         48  2004-03-12 17:36  WebGet0.9Beta\FileDown\Recycled\dfdfdf\vssver.scc

     文件         53  2003-12-29 22:51  WebGet0.9Beta\FileDown\Recycled\fdfds\type.ini

     文件         48  2004-03-12 17:36  WebGet0.9Beta\FileDown\Recycled\fdfds\vssver.scc

     文件         47  2003-12-26 16:12  WebGet0.9Beta\FileDown\Recycled\type.ini

     文件         48  2004-03-12 17:36  WebGet0.9Beta\FileDown\Recycled\vssver.scc

     文件         70  2003-12-26 22:44  WebGet0.9Beta\FileDown\Recycled\下载中\ffgfdg\type.ini

     文件         48  2004-03-12 17:36  WebGet0.9Beta\FileDown\Recycled\下载中\ffgfdg\vssver.scc

     文件         63  2003-12-25 19:45  WebGet0.9Beta\FileDown\Recycled\下载中\type.ini

     文件         48  2004-03-12 17:36  WebGet0.9Beta\FileDown\Recycled\下载中\vssver.scc

     文件         68  2003-12-26 22:46  WebGet0.9Beta\FileDown\Recycled\已下载\dfdf\type.ini

     文件         48  2004-03-12 17:36  WebGet0.9Beta\FileDown\Recycled\已下载\dfdf\vssver.scc

     文件         67  2003-12-28 20:31  WebGet0.9Beta\FileDown\Recycled\已下载\MP3\type.ini

     文件         48  2004-03-12 17:36  WebGet0.9Beta\FileDown\Recycled\已下载\MP3\vssver.scc

     文件         54  2003-12-28 20:51  WebGet0.9Beta\FileDown\Recycled\已下载\type.ini

     文件         48  2004-03-12 17:36  WebGet0.9Beta\FileDown\Recycled\已下载\vssver.scc

     文件         47  2003-12-25 19:33  WebGet0.9Beta\FileDown\type.ini

     文件         47  2003-12-25 19:33  WebGet0.9Beta\FileDown\UnComplete\type.ini

     文件         48  2004-03-12 17:36  WebGet0.9Beta\FileDown\UnComplete\vssver.scc

     文件         48  2004-03-12 17:36  WebGet0.9Beta\FileDown\vssver.scc

     文件       4310  2003-12-02 18:07  WebGet0.9Beta\Skin\Riant\ActiveCaption.bmp

     文件       1398  2003-11-30 20:39  WebGet0.9Beta\Skin\Riant\exit_down.bmp

     文件       1194  2002-03-26 10:45  WebGet0.9Beta\Skin\Riant\exit_foc.bmp

     文件       1194  2002-03-26 10:45  WebGet0.9Beta\Skin\Riant\exit_nor.bmp

............此处省略168个文件信息

评论

共有 条评论