![]()  | 
![]()  | 
![]()  | 
![]()  | 
![]()  | 
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. | 
Forward a window event to the window with a given region ID
int PtForwardWindowEvent( 
        PhWindowEvent_t const *window_event );
ph
This function forwards the provided window event to the window manager, which forwards it to the window whose region ID is specified in the event.
int give_a_window_focus( PtWidget_t *widget )
{
  PhWindowEvent_t WE;
  if( !widget || !PtWidgetIsClassMember( widget, PtWindow ))
      return -1;
  memset( &WE, 0, sizeof (WE));
  WE.event_f = Ph_WM_FOCUS;
  WE.rid     = PtWidgetRid( widget );
  WE.event_state = Ph_WM_EVSTATE_FOCUS;
  return PtForwardWindowEvent( &WE );
}
Photon
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No | 
PhWindowEvent_t, PtForwardWindowTaskEvent()
PtWindowFocus(), PtWindowToBack(), PtWindowToFront() in the Photon Widget Reference
Window Management chapter of the Photon Programmer's Guide.
![]()  | 
![]()  | 
![]()  | 
![]()  |