Skip to content

Commit

Permalink
FIX: issue #2787 (DISABLED and ALL-OVER together)
Browse files Browse the repository at this point in the history
  • Loading branch information
qtxie committed Jun 15, 2017
1 parent 81b42bf commit d2cade5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 7 additions & 4 deletions modules/view/backends/windows/events.reds
Original file line number Diff line number Diff line change
Expand Up @@ -1180,13 +1180,16 @@ process: func [

evt?: all [hover-saved <> null hover-saved <> new]

if evt? [
if all [evt? IsWindowEnabled hover-saved] [
msg/hWnd: hover-saved
make-event msg EVT_FLAG_AWAY EVT_OVER
]
if any [
evt?
(get-face-flags new) and FACET_FLAGS_ALL_OVER <> 0
if all [
IsWindowEnabled new
any [
evt?
(get-face-flags new) and FACET_FLAGS_ALL_OVER <> 0
]
][
msg/hWnd: new
make-event msg 0 EVT_OVER
Expand Down
4 changes: 4 additions & 0 deletions modules/view/backends/windows/win32.reds
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,10 @@ XFORM!: alias struct! [
bEnable [logic!]
return: [logic!]
]
IsWindowEnabled: "IsWindowEnabled" [
hWnd [handle!]
return: [logic!]
]
InvalidateRect: "InvalidateRect" [
hWnd [handle!]
lpRect [RECT_STRUCT]
Expand Down

0 comments on commit d2cade5

Please sign in to comment.