Mercurial > dwindows
comparison os2/dw.c @ 530:27533e1ccaf5
More pointer cleanup on OS/2.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 23 Mar 2004 20:30:12 +0000 |
parents | 82a203664aa9 |
children | 79696a852401 |
comparison
equal
deleted
inserted
replaced
529:82a203664aa9 | 530:27533e1ccaf5 |
---|---|
3850 * handle: Handle to widget for which to change. | 3850 * handle: Handle to widget for which to change. |
3851 * cursortype: ID of the pointer you want. | 3851 * cursortype: ID of the pointer you want. |
3852 */ | 3852 */ |
3853 void API dw_window_set_pointer(HWND handle, int pointertype) | 3853 void API dw_window_set_pointer(HWND handle, int pointertype) |
3854 { | 3854 { |
3855 if(handle == HWND_DESKTOP) | 3855 HPOINTER pointer = pointertype < 65535 ? |
3856 WinSetPointer(handle, WinQuerySysPointer(HWND_DESKTOP,pointertype, FALSE)); | 3856 WinQuerySysPointer(HWND_DESKTOP, pointertype, FALSE) |
3857 else | 3857 : (HPOINTER)pointertype; |
3858 dw_window_set_data(handle, "_dw_pointer", | 3858 |
3859 pointertype < 65535 ? | 3859 WinSetPointer(HWND_DESKTOP, pointer); |
3860 (void *)WinQuerySysPointer(HWND_DESKTOP,pointertype, FALSE) | 3860 |
3861 : (void *)pointertype); | 3861 if(handle != HWND_DESKTOP) |
3862 dw_window_set_data(handle, "_dw_pointer", (void *)pointer); | |
3862 } | 3863 } |
3863 | 3864 |
3864 /* | 3865 /* |
3865 * Create a new Window Frame. | 3866 * Create a new Window Frame. |
3866 * Parameters: | 3867 * Parameters: |