//=============================================== // ******On Touch****** //=============================================== int OnTouch(int box ,int event,int x,int y) { int posfactor; if( Boxes[box + 1][imagenumber] == 15 ) { posfactor = 1; SwapBoxes(box, posfactor); } if( Boxes[box - 1][imagenumber] == 15 ) { posfactor = -1; SwapBoxes(box, posfactor); } if( Boxes[box + 4][imagenumber] == 15 ) { posfactor = 4; SwapBoxes(box, posfactor); } if( Boxes[box - 4][imagenumber] == 15 ) { posfactor = -4; SwapBoxes(box, posfactor); } if (CheckBoxes()) { fonthandle = FontAdd("Arial12Bold - FontSmall"); texthandle[0] = TextAdd(120,300,"Solved :D",fonthandle); } return 0; }
void CCheckBoxList::OnCreate(const CRect& rcClient) { CheckBoxes(true); CListView::OnCreate(rcClient); }