Skip to content

Conversation

@RatinCN
Copy link

@RatinCN RatinCN commented Feb 29, 2024

There are warnings reported in newer Visual Studio and treated as errors in compile-time:
Before

After this fix, the build success:
After

Copy link

@zhuman zhuman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fixes!

@RatinCN
Copy link
Author

RatinCN commented Sep 10, 2024

@ChrisGuzak Okay to move on?

RECT rc;
GetWindowRect(hwndStatic, &rc);
const UINT dxdy = min(rc.right - rc.left, rc.bottom - rc.top); // make it square
LONG dxdy = min(rc.right - rc.left, rc.bottom - rc.top); // make it square
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems you can keep const, but the type change looks good.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, committed.

@RatinCN RatinCN force-pushed the Fix_DragDropVisuals_Warning branch from 4adc71e to bc52da4 Compare December 2, 2025 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants