POINT mp; // Mouse point
DWORD tabby = D3DCOLOR_ARGB( 255, 0, 0, 0), tabb = D3DCOLOR_ARGB( 255, 0, 0, 0), tab = D3DCOLOR_ARGB( 255, 0, 0, 0);
GetCursorPos( &mp );
if( mp.y >= pMenu->y+1 && mp.y <= ((pMenu->y-2)+(pMenu->titleheight+1)) ){
if(mp.x >= pMenu->x && mp.x <= ((pMenu->x)+ (pMenu->totwidth /3))){
tabby = D3DCOLOR_ARGB( 255, 100, 100, 100);
if ( GetAsyncKeyState(VK_LBUTTON)){
tabnum = 1;
pMenu->noitems=0;
pMenu->cur = 0;
}
}else if(mp.x >= (pMenu->x+(pMenu->totwidth /3)) && mp.x <= ((pMenu->x)+ ((pMenu->totwidth /3)*2))){
tabb = D3DCOLOR_ARGB( 255, 100, 100,100);
if ( GetAsyncKeyState(VK_LBUTTON)){
tabnum = 2;
pMenu->noitems=0;
pMenu->cur = 0;
}
}else if(mp.x >= (pMenu->x+((pMenu->totwidth /3)*2)) && mp.x <= ((pMenu->x)+ ((pMenu->totwidth /3)*3))){
tab = D3DCOLOR_ARGB( 255, 100, 100,100);
if ( GetAsyncKeyState(VK_LBUTTON)){
tabnum = 3;
pMenu->noitems=0;
pMenu->cur = 0;
}
}
}