How to accept messages from toolbar?

Hello

I want to add a toolbar onto the layer. I implemented as follows:

void CCMyLayer::CreateToolBar()
{
CCDirector *pDirector = CCDirector::sharedDirector();
HWND hWnd=pDirector->getOpenGLView()->getHWnd();
ToolBarCreate( hWnd );
ToolBarAddButtons( 2);//Add two button after succeeding in creating a toolbar
}

HWND CCMyLayer::ToolBarCreate(HWND hWnd)
{
HWND hTool;
InitCommonControls();
hTool = CreateWindowEx(
WS_EX_TOOLWINDOW,
TOOLBARCLASSNAME,
NULL,
WS_CHILD | WS_VISIBLE |
CCS_ADJUSTABLE | CCS_NORESIZE,
0,0,0,0,
hWnd,
NULL,
GetModuleHandle(NULL),
NULL);
return hTool;
}

I succeeded in adding the toolbar. The problem is that I did not know how to receive messages when clicking on the button.

Does anybody know how and where to receive the messages?

Thank you in advance.

Shen