Hi guys , i have a little but difficult problem. I Press escape key on game window but not open SystemDialog .
I Have not syserr but my tracef on debug :
[Hidden Content]
[Hidden Content]
[Hidden Content]
My Event :
BOOL CWindow::RunPressEscapeKeyEvent()
{
TWindowContainer::reverse_iterator itor;
for (itor = m_pChildList.rbegin(); itor != m_pChildList.rend(); ++itor)
{
CWindow * pWindow = *itor;
if (pWindow->IsShow())
{
Tracenf("CloseWindow: %s", pWindow->GetName());
if (pWindow->RunPressEscapeKeyEvent())
return TRUE;
}
}
Tracenf("CloseWindow2: %s", this->GetName());
if (OnPressEscapeKey())
return TRUE;
Tracenf("CloseWindow3: %s", this->GetName());
return FALSE;
}
Thanks .