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

创建控件的bug #8

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

watertoeast
Copy link

利用嵌套xml创建自定义控件会崩溃。
http://www.cnblogs.com/Alberl/p/3381820.html的代码可恢复bug现场。

watertoeast and others added 9 commits November 8, 2015 19:16
2、修正CButtonUI无法根据文本自动计算长度的bug;
3、在caption中添加Edit空间,点击edit空间无法获取焦点。参考网上文章《duilib-- 改进窗口拖动 --使整个窗口能拖动》进行修正。
2、修正CButtonUI无法根据文本自动计算长度的bug;
3、在caption中添加Edit控件,点击edit控件无法获取焦点。参考网上文章《duilib-- 改进窗口拖动 --使整个窗口能拖动》进行修正。
…k* pCallback, CPaintManagerUI* pManager, CControlUI* pParent)倒数第三行,pManager允许为NULL,但代码没有判断其是否为NULL。当pManager为NULL时会导致崩溃。修改如下:

if(pManager->GetCurStylesName().IsEmpty() && pManager->GetStylesCount() > 0)
→
if(NULL!=pManager && pManager->GetCurStylesName().IsEmpty() && pManager->GetStylesCount() > 0)
2、修正CPaintManagerUI::TranslateAccelerator函数的逻辑错误。
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.

2 participants