DuiLib WndShadow添加阴影效果的问题

在最新版本的Duilib中,使用CWndShadow添加窗口阴影会无效,需要修改CWndShadow类中MakeShadow函数中的一下内容方能生效:

// Get the region of parent window,
	HRGN hParentRgn = CreateRectRgn(0, 0, rcParent->right - rcParent->left, rcParent->bottom - rcParent->top);
	GetWindowRgn(hParent, hParentRgn);

 

还发现了一种可能会导致CWndShadow的阴影无效,这个有可能是包含CWndShadow头文件包含的问题,找准该头文件是否包含的不正确。补充:包含的头文件中没有正确的包含到DuiLib的头文件从而使CWndShaw无效;

posted @ 2017-03-20 14:59  卖杏花的陆游  阅读(2869)  评论(0编辑  收藏  举报