void CUIThread::vUpdateWinStatusFromCfg(UINT /*unParam*/, LONG lParam) { if (m_podTraceWinObj != NULL) { WINDOWPLACEMENT* pWndCo_ords = (WINDOWPLACEMENT*)lParam; vUpdateWndCo_Ords(*pWndCo_ords, (BOOL)lParam); } }
/******************************************************************************* Function Name : OnShowWindow Input(s) : bShow - Show or Hide command Output : nStatus - Status of the window Functionality : This event handler will set window postion in case of "show window" and will save window position in case of "hide window" Member of : CMDIChildBase Author(s) : Raja N Date Created : 18.4.2005 Modifications : *******************************************************************************/ void CMDIChildBase::OnShowWindow(BOOL bShow, UINT nStatus) { CMDIChildWnd::OnShowWindow(bShow, nStatus); // If it is show window set appropriate window postion if (bShow == TRUE ) { // Set window placement got from configuration module SetWindowPlacement(&m_sWindowPlacement); } else { // Save window postion vUpdateWndCo_Ords(); } }
/****************************************************************************** Function Name : OnShowWindow Description : Input(s) : BOOL bShow, UINT nStatus Output : - Functionality : Notified the parent window about the display status of dialog by posting a message. Member of : CMessageInterpretation Author(s) : Ratnadip Choudhury Date Created : 16.02.2004 Modifications : Raja N on 05/04/2004, Added code to save window position and removed resize of controls ******************************************************************************/ void CMessageInterpretation::OnShowWindow(BOOL bShow, UINT nStatus) { CDialog::OnShowWindow(bShow, nStatus); ::PostMessage(m_hWndParent, WM_NOTIFICATION_FROM_OTHER, eWINID_MSG_INTERPRETATION, (LPARAM) bShow); if (bShow == TRUE) { // Set the window position SetWindowPlacement(&m_sWinCurrStatus); // Call NC paint to update title bar SendMessage(WM_NCPAINT, 1, 0); // Update Client Area Invalidate(); } else { // Hiding the window. Save the status before close vUpdateWndCo_Ords(); } }