Kod:
#define combobox_Boyut 13
bool combobox(char * label, int x, int y, bool * Check, LPDIRECT3DDEVICE9 pDev)
{
DrawString(label, x + 7 + 3, y, D3DCOLOR_ARGB(255, 255, 000, 000), YAZI_SOL, pDev);
DrawBox(x, y, 80, combobox_Boyut, D3DCOLOR_ARGB(255, 0, 0, 0), pDev);
DrawBorder(x, y, 80, combobox_Boyut, D3DCOLOR_ARGB(255, 255, 255, 255), pDev);
if (*Check) // Eğer checkbox aktifse olan görüntü
{
DrawBox(x, y, 80, 40, D3DCOLOR_ARGB(255, 0, 0, 0), pDev);
DrawBorder(x, y, 80, 40, D3DCOLOR_ARGB(255, 0, 0, 0), pDev);
}
DrawString(label, x + 7 + 3, 15, D3DCOLOR_ARGB(255, 255, 000, 000), YAZI_SOL, pDev);
if (MouseClick(x, y, combobox_Boyut, combobox_Boyut, pDev)) // Eğer checkboxu eklediğimiz yerde mouse tıklama işlevi çalışmışsa
{
*Check = !*Check;
return true;
}
return false;
}
yardım alarak anca bu kadar yaptım ben bunu daha nasıl benzetebilir ve yapabilirim.