Цитата:
Создать статик на диалоге и менять его текст.
CODE:
#define WS_VISIBLE 268435456
#define WS_CHILD 1073741824
external(INT, "CreateWindow", "CreateWindowExA", "User32.dll");
external(INT, "SetWindowText", "SetWindowTextA", "User32.dll");
int static0;
int x=0;
createdialog(0);
showdialog(0, "Диалог",300, 300, 300, 100, 1, 1);
loop()
{
SetWindowText(static0, "X = "+format(x));
sleep(300);
x++;
}
function getmessage(0, WM_CREATE)
{
static0=CreateWindow(0, "STATIC", "", WS_CHILD | WS_VISIBLE , 15, 20, 250, 30, gethwnd(0), 0, 0, 0);
}
#define WS_CHILD 1073741824
external(INT, "CreateWindow", "CreateWindowExA", "User32.dll");
external(INT, "SetWindowText", "SetWindowTextA", "User32.dll");
int static0;
int x=0;
createdialog(0);
showdialog(0, "Диалог",300, 300, 300, 100, 1, 1);
loop()
{
SetWindowText(static0, "X = "+format(x));
sleep(300);
x++;
}
function getmessage(0, WM_CREATE)
{
static0=CreateWindow(0, "STATIC", "", WS_CHILD | WS_VISIBLE , 15, 20, 250, 30, gethwnd(0), 0, 0, 0);
}