Code: Select all
Gui, Add, Edit, w300 h100 ReadOnly hwndhEdit
hCursor_NO := DllCall("LoadCursor","UInt",NULL,"Int",32648,"UInt") ; IDC_NO
DllCall("SetClassLong", "Uint", hEdit, "int", -12, "int", hCursor_NO)
Gui, Show
Return
GuiClose:
ExitApp
Note: This function has been superseded by the SetClassLongPtr function. To write code that is compatible with both 32-bit and 64-bit versions of Windows, use SetClassLongPtr.
Code: Select all
ULONG_PTR WINAPI SetClassLongPtr(
_In_ HWND hWnd,
_In_ int nIndex,
_In_ LONG_PTR dwNewLong
);
Code: Select all
DllCall("SetClassLongPtr", "Ptr", hEdit, "int", -12, "Ptr", hCursor_NO)
Thanks.