Rev 193 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
259 | daniel-mar | 1 | #include "common.h" |
2 | |||
3 | #include <windows.h> |
||
4 | |||
5 | void SetPlatformCursor(SPPluginRef pluginRef, int nCursorID) |
||
6 | { |
||
7 | ASErr e = kNoErr; |
||
8 | HCURSOR cursor; |
||
9 | SPAccessRef access; |
||
10 | SPPlatformAccessInfo spAccessInfo; |
||
11 | |||
12 | e = sSPAccess->GetPluginAccess(pluginRef, &access); |
||
13 | if( kNoErr == e) |
||
14 | e = sSPAccess->GetAccessInfo(access, &spAccessInfo); |
||
15 | if( kNoErr == e) |
||
16 | { |
||
17 | cursor = LoadCursor((HINSTANCE)spAccessInfo.defaultAccess, MAKEINTRESOURCE(nCursorID)); |
||
18 | if ( cursor ) |
||
19 | SetCursor(cursor); |
||
20 | } |
||
21 | } |