www.pudn.com > ShortCutEx.rar > BkWnd.h, change:2004-08-10,size:1972b


//BkWnd.h : Declaration of the CBkWnd 
 
//***************************************************************************// 
//                                                                           // 
//  This file was created using the CWindowImpl ATL Object Wizard            // 
//  By Erik Thompson  2000                                                  // 
//	Version 1.1                                                              // 
//  Email questions and comments to ErikT@RadBytes.com                       // 
//                                                                           // 
//***************************************************************************// 
 
#ifndef __BKWND_H_ 
#define __BKWND_H_ 
 
#include <commctrl.h> 
#include "CSCToolBar.h" 
 
///////////////////////////////////////////////////////////////////////////// 
// CBkWnd 
class CBkWnd : public CWindowImpl<CBkWnd> 
{ 
public: 
	CBkWnd(); 
	virtual ~CBkWnd(); 
 
public: 
	CCSCToolBar& GetToolBar() {return m_ToolBar;}; 
	 
	DECLARE_WND_CLASS(NULL) 
 
	BEGIN_MSG_MAP(CBkWnd) 
		MESSAGE_HANDLER(WM_CREATE, OnCreate) 
//		MESSAGE_HANDLER(WM_SIZE, OnSize) 
//		COMMAND_ID_HANDLER(BUTTON_ID,OnDelButtonClick) 
		CHAIN_MSG_MAP_MEMBER(m_ToolBar) 
//		MESSAGE_HANDLER(WM_PAINT, OnDraw) 
	END_MSG_MAP() 
 
// Handler prototypes: 
//  LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 
//  LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); 
//  LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled); 
	LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 
	LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 
//	LRESULT OnDraw(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 
 
	LRESULT OnDelButtonClick(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); 
 
public: 
	CCSCToolBar m_ToolBar; 
//	CDelButton	m_btnDelete; 
 
}; 
 
#endif //__BKWND_H_