/*
 * $Id: DlgMainTabSidePanel.h 19524 2010-05-20 10:09:21Z dgkang $
 * 
 * this file is part of easyMule
 * Copyright (C)2002-2008 VeryCD Dev Team ( strEmail.Format("%s@%s", "emuledev", "verycd.com") / http: * www.easymule.org )
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
#pragma once

// CDlgMainTabSidePanel 对话框
#include "Resource.h"
#include "afxwin.h"
#include "SearchButton.h"
//#include "SpeedMeter.h"
#include "SearchBarCtrl.h"

class CDlgMainTabSidePanel : public CDialog
{
	DECLARE_DYNAMIC(CDlgMainTabSidePanel)
	//DECLARE_ANCHOR_MAP()	//Added by thilon on 2007.02.03, for Resize

public:
	CDlgMainTabSidePanel(CWnd* pParent = NULL);   // 标准构造函数
	virtual ~CDlgMainTabSidePanel();

// 对话框数据
	enum { IDD = IDD_MAINTAB_SIDEPANEL };
public:
	CSearchBarCtrl m_SearchBarCtrl;
	CSearchButton m_SearchButton;

public:
	int		GetDesireWidth();
	void	Resize();
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()

public:
	//afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	LRESULT	OnEraseBkgndEx(WPARAM wParam, LPARAM lParam);
	virtual BOOL OnInitDialog();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	
protected:
	virtual void OnCancel();

protected:
	

//	afx_msg void OnBnClickedSearchbutton();
protected:
	virtual void OnOK();
public:
	afx_msg void OnPaint();
protected:
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
};
