?? siteset.cpp
字號:
// SiteSet.cpp : implementation file
//
#include "stdafx.h"
#include "image.h"
#include "SiteSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSiteSet dialog
CSiteSet::CSiteSet(CWnd* pParent /*=NULL*/)
: CDialog(CSiteSet::IDD, pParent)
{
//{{AFX_DATA_INIT(CSiteSet)
m_max_thread = 0;
m_strDirectory = _T("");
m_strProxy = _T("");
m_bProxy = FALSE;
m_image_size = 10;
m_unlikelevel = 2;
//}}AFX_DATA_INIT
//m_pLocalSet=localset;
}
void CSiteSet::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSiteSet)
DDX_Text(pDX, IDC_EDIT3, m_max_thread);
DDX_Text(pDX, IDC_EDIT2, m_strDirectory);
DDX_Text(pDX, IDC_EDIT8, m_strProxy);
DDX_Check(pDX, IDC_CHECK1, m_bProxy);
DDX_Text(pDX, IDC_EDIT1, m_image_size);
DDX_Text(pDX, IDC_EDIT4, m_unlikelevel);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSiteSet, CDialog)
//{{AFX_MSG_MAP(CSiteSet)
ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSiteSet message handlers
void CSiteSet::OnOK()
{
// TODO: Add extra validation here
//Update();
//m_pLocalSet->bProxy=m_bProxy;
//m_pLocalSet->max_thread=m_max_thread;
//m_pLocalSet->strDirectory=m_strDirectory;
//m_pLocalSet->strProxy=m_strProxy;
CDialog::OnOK();
}
void CSiteSet::OnButton1()
{
// TODO: Add your control notification handler code here
BROWSEINFO bBinfo;
memset(&bBinfo,0,sizeof(BROWSEINFO));
bBinfo.hwndOwner=this->m_hWnd;
char strTmp[255];
bBinfo.lpszTitle="請選擇安裝目錄";
bBinfo.ulFlags=BIF_RETURNONLYFSDIRS;
LPITEMIDLIST lpDlist;
lpDlist=SHBrowseForFolder(&bBinfo);
if(lpDlist!=NULL)
{
SHGetPathFromIDList(lpDlist,strTmp);
m_strDirectory=strTmp;
m_strDirectory+="\\";
}
UpdateData(FALSE);
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -