if (Item1)
{
int ColorPickerX = 400;
int ColorPickerY = item2;
ColorPicker_Init(pDevice, 256, 256);
DrawColorPicker(ColorPickerX, ColorPickerY, pDevice);
POINT MousePosition;
GetCursorPos(&MousePosition);
ScreenToClient(GetForegroundWindow(), &MousePosition);
if (GetAsyncKeyState(VK_LBUTTON) && MouseIsOver(ColorPickerX, ColorPickerY, ColorPickerWidth, ColorPickerHeight))
{
PickedColor = GetPickedColor(MousePosition.x - ColorPickerX, MousePosition.y - ColorPickerY);
}
DrawRect(350, item2, 20, 20, PickedColor, pDevice);
}else
{
buraya ne yazsam kapanır
}
knk elseden sonra offun kodlandıgı yere ne yazsam colorpicker kapanır
{
int ColorPickerX = 400;
int ColorPickerY = item2;
ColorPicker_Init(pDevice, 256, 256);
DrawColorPicker(ColorPickerX, ColorPickerY, pDevice);
POINT MousePosition;
GetCursorPos(&MousePosition);
ScreenToClient(GetForegroundWindow(), &MousePosition);
if (GetAsyncKeyState(VK_LBUTTON) && MouseIsOver(ColorPickerX, ColorPickerY, ColorPickerWidth, ColorPickerHeight))
{
PickedColor = GetPickedColor(MousePosition.x - ColorPickerX, MousePosition.y - ColorPickerY);
}
DrawRect(350, item2, 20, 20, PickedColor, pDevice);
}else
{
buraya ne yazsam kapanır
}
knk elseden sonra offun kodlandıgı yere ne yazsam colorpicker kapanır