MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / SetKeyboardCapture

Method SetKeyboardCapture

ogsr_engine/xrGame/ui/UIWindow.cpp:578–593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576}
577
578void CUIWindow::SetKeyboardCapture(CUIWindow* pChildWindow, bool capture_status)
579{
580 if (NULL != GetParent())
581 GetParent()->SetKeyboardCapture(this, capture_status);
582
583 if (capture_status)
584 {
585 //оповестить дочернее окно о потере фокуса клавиатуры
586 if (NULL != m_pKeyboardCapturer)
587 m_pKeyboardCapturer->SendMessage(this, WINDOW_KEYBOARD_CAPTURE_LOST);
588
589 m_pKeyboardCapturer = pChildWindow;
590 }
591 else
592 m_pKeyboardCapturer = NULL;
593}
594
595//обработка сообщений
596void CUIWindow::SendMessage(CUIWindow* pWnd, s16 msg, void* pData)

Callers 3

ShowListMethod · 0.80
OnMouseMethod · 0.80
KeyPressedMethod · 0.80

Calls 2

GetParentFunction · 0.85
SendMessageMethod · 0.45

Tested by

no test coverage detected