home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: Graphics
/
Graphics.zip
/
os2apipm.zip
/
OS2API
/
OS2-PMCU.ADS
< prev
next >
Wrap
Text File
|
1996-08-10
|
3KB
|
64 lines
-- ╔═══════════════════════════════════════════════════════════════════╗
-- ║ D E S I G N E N G I N E R I N G ║D║S║ ║
-- ║ S O F T W A R E ╚═╩═╝ ║
-- ║ ║
-- ║ Package Os2.PM ║
-- ║ ║
-- ║ Author : Leonid Dulman 1995 ║
-- ║ ║
-- ║ GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS ║
-- ║ ║
-- ║ PM Cursor manager ║
-- ║ ║
-- ╚═══════════════════════════════════════════════════════════════════╝
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings; use Interfaces.C.Strings;
package Os2.PMcu is
pragma Preelaborate (PMcu);
-- Cursor manager common subsection
--
function WinDestroyCursor(hwn :HWND )return BOOL32;
pragma Import(c,WinDestroyCursor, Link_name=>"_WinDestroyCursor");
function WinShowCursor(hwn :HWND ;
fShow:BOOL32 )return BOOL32;
pragma Import(c,WinShowCursor, Link_name=>"_WinShowCursor");
function WinCreateCursor(hwn :HWND ;
x :LONG ;
y :LONG ;
cx :LONG ;
cy :LONG ;
fs :ULONG ;
prclClip:PRECTL )return BOOL32;
pragma Import(c,WinCreateCursor, Link_name=>"_WinCreateCursor");
-- WinCreateCursor( ) flags
CURSOR_SOLID :constant Long:=16#0000#;
CURSOR_HALFTONE :constant Long:=16#0001#;
CURSOR_FRAME :constant Long:=16#0002#;
CURSOR_FLASH :constant Long:=16#0004#;
CURSOR_SETPOS :constant Long:=16#8000#;
type CURSORINFO is record -- csri
hwn :HWND ;
x :LONG ;
y :LONG ;
cx :LONG ;
cy :LONG ;
fs :ULONG ;
rclClip :RECTL ;
end record; -- CURSORINFO;
type PCURSORINFO is access all CURSORINFO;
function WinQueryCursorInfo(hwndDesktop:HWND ;
pCursorInf :PCURSORINFO )return BOOL32;
pragma Import(c,WinQueryCursorInfo, Link_name=>"_WinQueryCursorInfo");
end os2.pmcu;