Как сделать не активной кнопку
CODE:int STATUS=1;
int pos_size_button0[4][4];
string text_button0[4];
int flag_button0[4];
pos_size_button0[0][0]=11; pos_size_button0[0][1]=32; pos_size_button0[0][2]=168; pos_size_button0[0][3]=20;
pos_size_button0[1][0]=11; pos_size_button0[1][1]=7; pos_size_button0[1][2]=167; pos_size_button0[1][3]=20;
pos_size_button0[2][0]=12; pos_size_button0[2][1]=59; pos_size_button0[2][2]=168; pos_size_button0[2][3]=20;
pos_size_button0[3][0]=12; pos_size_button0[3][1]=90; pos_size_button0[3][2]=169; pos_size_button0[3][3]=48;
text_button0[0]="Активировать"; text_button0[1]="Деактивировать"; text_button0[2]="Узнать статус"; text_button0[3]="Подопытная мышь";
//////////
createdialog(0, BUTTON, #pos_size_button0[0][0], #text_button0[0], #flag_button0[0]);
//////////
showdialog(0, "Диалог", 258, 234, 197, 180, 1, 1);
//////////
external(INT, "EnableWindow", "EnableWindow", "user32.dll");
loop()
{
if (flag_button0[1]>0)
{
flag_button0[1]=0;
EnableWindow(formatwi(window ("Подопытная мышь", "Button", -1, -1, 169, 48, -1)), 0);
STATUS=0;
}
if (flag_button0[0]>0)
{
flag_button0[0]=0;
EnableWindow(formatwi(window ("Подопытная мышь", "Button", -1, -1, 169, 48, -1)), 1);
STATUS=1;
}
if (flag_button0[2]>0)
{
flag_button0[2]=0;
if (STATUS==1)messagebox ("активна");
if (STATUS==0)messagebox ("не активна");
}
sleep(10);//Убрать после теста
}