CODE:
Честно говоря какая-то муть пошла. Там нужна какая-то ресур библиотека, которая преобразует целочисленные значения...Статья#define WS_CHILD 1073741824
#define WS_BORDER 8388608
#define WS_VISIBLE 268435456
external(INT, "CreateWindow", "CreateWindowExA", "User32.dll" );
external(INT, "GetWindowText", "GetWindowTextA", "User32.dll" );
external(INT, "SetWindowText", "SetWindowTextA", "User32.dll" );
external(INT, "SetFocus", "SetFocus", "User32.dll" );
external(INT, "LoadCursorA", "LoadCursorA", "User32.dll");
external(INT, "SetCursor", "SetCursor", "User32.dll" );
external(INT, "MAKEINTRESOURCEA", "MAKEINTRESOURCEA", "User32.dll" );
createdialog(0);
showdialog(0, "Äèàëîã",100, 100, 300, 300, 1, 1);
while(window ("Äèàëîã")==0)sleep(10);
win w=window ("Äèàëîã");
int edit1;
loop()
{
sleep(1);
}
function getmessage(0, WM_CREATE)
{
edit1 = CreateWindow(0, "EDIT", "65464", WS_CHILD | WS_BORDER | WS_VISIBLE, 100, 100, 100, 20, gethwnd(0), 0, 0, 0);
SetCursor(LoadCursorA(edit1, IDC_HELP));
//SetCursor(LoadCursor(NULL, IDC_WAIT));
}
#define WS_BORDER 8388608
#define WS_VISIBLE 268435456
external(INT, "CreateWindow", "CreateWindowExA", "User32.dll" );
external(INT, "GetWindowText", "GetWindowTextA", "User32.dll" );
external(INT, "SetWindowText", "SetWindowTextA", "User32.dll" );
external(INT, "SetFocus", "SetFocus", "User32.dll" );
external(INT, "LoadCursorA", "LoadCursorA", "User32.dll");
external(INT, "SetCursor", "SetCursor", "User32.dll" );
external(INT, "MAKEINTRESOURCEA", "MAKEINTRESOURCEA", "User32.dll" );
createdialog(0);
showdialog(0, "Äèàëîã",100, 100, 300, 300, 1, 1);
while(window ("Äèàëîã")==0)sleep(10);
win w=window ("Äèàëîã");
int edit1;
loop()
{
sleep(1);
}
function getmessage(0, WM_CREATE)
{
edit1 = CreateWindow(0, "EDIT", "65464", WS_CHILD | WS_BORDER | WS_VISIBLE, 100, 100, 100, 20, gethwnd(0), 0, 0, 0);
SetCursor(LoadCursorA(edit1, IDC_HELP));
//SetCursor(LoadCursor(NULL, IDC_WAIT));
}
Всё о курсорах
(Добавление)
А, вот проще, но там LoadCursor, я не знаю SetSysCur