support modal/non-modal dialog

This commit is contained in:
idea4good
2019-05-24 15:16:03 +08:00
parent 3a96d143c5
commit 8a77ba553d
9 changed files with 13 additions and 16 deletions

View File

@@ -477,7 +477,7 @@ bool c_wnd::on_touch(int x, int y, TOUCH_ACTION action)
if (GL_ATTR_VISIBLE == (child->m_style & GL_ATTR_VISIBLE))
{
child->get_wnd_rect(rect);
if (TRUE == rect.PtInRect(x, y) || child->m_style & GL_ATTR_PRIORITY)
if (TRUE == rect.PtInRect(x, y) || child->m_style & GL_ATTR_MODAL)
{
if (TRUE == child->is_focus_wnd())
{