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 #48

Closed
zhizhi-dev opened this issue Mar 9, 2017 · 5 comments
Closed

边框阴影bug #48

zhizhi-dev opened this issue Mar 9, 2017 · 5 comments

Comments

@zhizhi-dev
Copy link

以隐藏方式创建窗口,当显示窗口时会导致阴影无效。
qq 20170309201455

@zhizhi-dev
Copy link
Author

return WindowImplBase::Create(
	nullptr,
	TITLE_NAME,
	UI_WNDSTYLE_FRAME &~WS_MAXIMIZEBOX &~WS_VISIBLE,
	WS_EX_WINDOWEDGE | WS_EX_TOOLWINDOW,
	0, 0, 0, 0);

@zhizhi-dev
Copy link
Author

::SetWindowPos(
	m_hWnd, 
	NULL, 
	point.x, 
	point.y, 
	-1, 
	-1, 
	SWP_NOSIZE | SWP_NOZORDER | SWP_SHOWWINDOW);

窗口显示的代码,没有使用 Showwindow来做

@zhizhi-dev
Copy link
Author

使用Showwindow正常,我想找个bug是阴影窗口在处理 窗口显示的消息时只处理 WM_SHOWWINDOW 没有处理 WM_WINDOWPOSCHANGED 消息中附带 显示窗口的情况

@zhizhi-dev
Copy link
Author

代码 UIShadow.cpp 126 行在处理WM_WINDOWPOSCHANGED消息时应该加入判断 WINDOWPOS 的flags代码,如果flags标志中有 SWP_SHOWWINDOW或者SWP_HIDEWIDNOW时设置自己的m_status

@qdtroy
Copy link
Owner

qdtroy commented Apr 10, 2017

已经修复

@qdtroy qdtroy closed this as completed Apr 10, 2017
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

2 participants