I want to add a toolbar onto the layer. I implemented as follows:
CCDirector *pDirector = CCDirector::sharedDirector();
ToolBarCreate( hWnd );
ToolBarAddButtons( 2);//Add two button after succeeding in creating a toolbar
HWND CCMyLayer::ToolBarCreate(HWND hWnd)
hTool = CreateWindowEx(
WS_CHILD | WS_VISIBLE |
CCS_ADJUSTABLE | CCS_NORESIZE,
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.