Click here to Skip to main content
15,886,720 members
Articles / Mobile Apps / Windows Mobile

A Selection Bar for the PocketPC 2002

Rate me:
Please Sign up or sign in to vote.
4.67/5 (13 votes)
12 Mar 2003CPOL2 min read 127K   285   27  
An implementation of the selection bars found on PocketPC 2002 applications.
// 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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Frotcom International
Portugal Portugal
I work on R&D for Frotcom International, a company that develops web-based fleet management solutions.

Comments and Discussions