Skip to content

Commit

Permalink
Updated CDocker
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidNash2024 committed Apr 25, 2024
1 parent 5798655 commit 06ef8b7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/wxx_docking.h
Original file line number Diff line number Diff line change
Expand Up @@ -1568,6 +1568,10 @@ namespace Win32xx
assert(pDockTarget);
assert(pDockDrag);

// Hint window requires Win2000 or higher.
if (GetWinVersion() < 2500)
return;

// Retrieve the hint rect.
CRect rcHint;
if (dockSide & 0xF)
Expand All @@ -1579,8 +1583,8 @@ namespace Win32xx
else
return;

// Create the dock hint window if required and Win2000 or higher.
if (!IsWindow() && (GetWinVersion() >= 2500))
// Create the dock hint window if required.
if (!IsWindow())
Create();

// Adjust hint shape for container in container docking using a region.
Expand Down

0 comments on commit 06ef8b7

Please sign in to comment.