|
// CeToolBar.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "CeToolBar.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCeToolBar
CCeToolBar::CCeToolBar()
{
}
CCeToolBar::~CCeToolBar()
{
}
BEGIN_MESSAGE_MAP(CCeToolBar, CToolBar)
//{{AFX_MSG_MAP(CCeToolBar)
ON_WM_LBUTTONDOWN()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCeToolBar message handlers
//
void CCeToolBar::OnLButtonDown(UINT nFlags, CPoint point)
{
// only start dragging if clicked in "void" space
if (m_pDockBar != NULL && OnToolHitTest(pt, NULL) == -1)
{
// start the drag
ASSERT(m_pDockContext != NULL);
ClientToScreen(&point);
m_pDockContext->StartDrag(point);
}
else
{
Default();
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I work on R&D for Frotcom International, a company that develops web-based fleet management solutions.