Котыль
CODE:int pos_size_button0[2][4];
string text_button0[2];
int flag_button0[2];
pos_size_button0[0][0]=69; pos_size_button0[0][1]=180; pos_size_button0[0][2]=100; pos_size_button0[0][3]=20;
pos_size_button0[1][0]=69; pos_size_button0[1][1]=229; pos_size_button0[1][2]=100; pos_size_button0[1][3]=20;
text_button0[0]="вывести"; text_button0[1]="убрать";
//////////
createdialog(0, BUTTON, #pos_size_button0[0][0], #text_button0[0], #flag_button0[0]);
//////////
showdialog(0, "Диалог", 558, 234, 250, 300, 1, 1);
//////////
external(INT, "InvalidateRect", "InvalidateRect", "user32.dll");
win aw=window("Диалог");//Получаем указатель на наше окно
loop()
{
if (flag_button0[0]==1)
{
flag_button0[0]=0;
visualwindow(aw, 0, 0, 0, 100, 100, 5, 5 , 100, -1);//Включаем вывод на нашем окне
}
if (flag_button0[1]==1)
{
flag_button0[1]=0;
disablevisualwindow(0);
sleep(10);
InvalidateRect(formatwi(aw), 0, 1);
}
sleep(100);//Убрать после теста
} |