Mercurial > dwindows
comparison os2/dw.c @ 418:4be57ee7e006
Fix a crash in dw_window_pointer when the window handle is HWND_DESKTOP.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 15 May 2003 04:03:03 +0000 |
parents | a4197ddfc50d |
children | 4fe2df53ec9f |
comparison
equal
deleted
inserted
replaced
417:4ae67c291a8a | 418:4be57ee7e006 |
---|---|
3654 * handle: Handle to widget for which to change. | 3654 * handle: Handle to widget for which to change. |
3655 * cursortype: ID of the pointer you want. | 3655 * cursortype: ID of the pointer you want. |
3656 */ | 3656 */ |
3657 void API dw_window_pointer(HWND handle, int pointertype) | 3657 void API dw_window_pointer(HWND handle, int pointertype) |
3658 { | 3658 { |
3659 dw_window_set_data(handle, "_dw_pointer", | 3659 if(handle == HWND_DESKTOP) |
3660 pointertype < 65535 ? | 3660 WinSetPointer(handle, WinQuerySysPointer(HWND_DESKTOP,pointertype, FALSE)); |
3661 (void *)WinQuerySysPointer(HWND_DESKTOP,pointertype, FALSE) | 3661 else |
3662 : (void *)pointertype); | 3662 dw_window_set_data(handle, "_dw_pointer", |
3663 pointertype < 65535 ? | |
3664 (void *)WinQuerySysPointer(HWND_DESKTOP,pointertype, FALSE) | |
3665 : (void *)pointertype); | |
3663 } | 3666 } |
3664 | 3667 |
3665 /* | 3668 /* |
3666 * Create a new Window Frame. | 3669 * Create a new Window Frame. |
3667 * Parameters: | 3670 * Parameters: |