void CFWL_NoteLoop::GenerateCommondEvent(FX_DWORD dwCommand) { CFWL_EvtMenuCommand ev; ev.m_iCommand = dwCommand; IFWL_NoteThread* pThread = m_pForm->GetOwnerThread(); if (!pThread) return; IFWL_NoteDriver* pDriver = pThread->GetNoteDriver(); if (!pDriver) return; pDriver->SendNote(&ev); }
FWL_ERR FWL_SetFullScreen(IFWL_Widget* pWidget, FX_BOOL bFullScreen) { if (!pWidget) return FWL_ERR_Succeeded; IFWL_NoteThread* pNoteTread = pWidget->GetOwnerThread(); if (!pNoteTread) return FWL_ERR_Succeeded; CFWL_NoteDriver* pNoteDriver = static_cast<CFWL_NoteDriver*>(pNoteTread->GetNoteDriver()); if (!pNoteTread) return FWL_ERR_Succeeded; pNoteDriver->NotifyFullScreenMode(pWidget, bFullScreen); return FWL_GetAdapterWidgetMgr()->SetFullScreen(pWidget, bFullScreen); }