Skip to content

Fix DragDropVisuals warnings that are treated as errors - #334

Open
Ratin Gao (RatinCN) wants to merge 1 commit into
microsoft:mainfrom
RatinCN:Fix_DragDropVisuals_Warning
Open

Fix DragDropVisuals warnings that are treated as errors#334
Ratin Gao (RatinCN) wants to merge 1 commit into
microsoft:mainfrom
RatinCN:Fix_DragDropVisuals_Warning

Conversation

@RatinCN

Copy link
Copy Markdown

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

After this fix, the build success:
After

@zhuman Zachary Northrup (zhuman) left a comment

Copy link
Copy Markdown

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
Copy Markdown
Author

Chris Guzak (@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
Copy Markdown
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
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes, committed.

@RatinCN
Ratin Gao (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