⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 geooutworkspace.cpp

📁 类似flashget下载工具代码 本来想在完善了上传的
💻 CPP
字号:
// GeoOutWorkSpace.cpp : implementation file
//

#include "stdafx.h"
#include "MyInsaneBT.h"
#include "GeoOutWorkSpace.h"

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

/////////////////////////////////////////////////////////////////////////////
// CGeoOutWorkSpace

CGeoOutWorkSpace::CGeoOutWorkSpace()
{
}

CGeoOutWorkSpace::~CGeoOutWorkSpace()
{
}


BEGIN_MESSAGE_MAP(CGeoOutWorkSpace, CBCGPDockingControlBar)
	//{{AFX_MSG_MAP(CGeoOutWorkSpace)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		ON_WM_CREATE()
		ON_WM_SIZE()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CGeoOutWorkSpace message handlers
	 
int CGeoOutWorkSpace::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
       
    if(CBCGPDockingControlBar::OnCreate(lpCreateStruct) == -1)
		return -1;

    CRect rectDummy;
	rectDummy.SetRectEmpty ();
    
	const DWORD dwViewStyle =	WS_CHILD | WS_VISIBLE | TVS_HASLINES | 
								TVS_LINESATROOT | TVS_HASBUTTONS;
	

    if(!m_wndTree2.Create (dwViewStyle, rectDummy, this, 3))
	{  
	   TRACE0("Failed to create tree tab window\n");
	   return -1;
	}
    
    	 
    HBITMAP hbm = (HBITMAP)::LoadImage(AfxGetInstanceHandle(),
		MAKEINTRESOURCE(IDB_BITMAP_MESSAGE),
		IMAGE_BITMAP,
		0,0, 
		LR_CREATEDIBSECTION);
	
	CBitmap pBitmap;
	pBitmap.Attach(hbm);

	

	 m_images.Create(16, 17, ILC_COLOR8|ILC_MASK, 11, 4);
	 m_images.SetBkColor(::GetSysColor(COLOR_WINDOW)); 
	 m_images.Add(&pBitmap,(COLORREF)RGB(255,0,255));

	m_wndTree2.SetImageList(&m_images,TVSIL_NORMAL);
	m_wndTree2.InsertItem(_T("详细信息"),0,0);
	//m_wndTree2.InsertItem(_T("包含文件"),1,1);
	//m_wndTree2.InsertItem(_T("peer信息"),2,2);
	m_wndTree2.InsertItem(_T("下载日志"),1,1);


	return 0;
}
void CGeoOutWorkSpace::OnSize(UINT nType, int cx, int cy)
{
    CBCGPDockingControlBar::OnSize(nType, cx, cy);

    m_wndTree2.SetWindowPos (NULL,
			0,0,cx, cy,
			SWP_NOMOVE|SWP_NOZORDER | SWP_NOACTIVATE);
 


}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -