Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

float布局下的一个bug #174

Open
yubaihe opened this issue Dec 12, 2023 · 0 comments
Open

float布局下的一个bug #174

yubaihe opened this issue Dec 12, 2023 · 0 comments

Comments

@yubaihe
Copy link

yubaihe commented Dec 12, 2023

如果把布局做成这样,然后改变Label的宽度布局就会有问题,改变宽度的代码:
int iWidth = m_PaintManager.FindControl(L"instatllprogress_progress")->GetFixedWidth();
m_PaintManager.FindControl(L"instatllprogress_progress")->SetFixedWidth((int)(iWidth + 10));

修改方案参考附件截图,因为m_rcItem就是float后的真实坐标,重复计算就出问题了
QQ截图20231212135149

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

No branches or pull requests

1 participant