コード例 #1
0
ファイル: MDIChildBase.cpp プロジェクト: Fetze/busmaster
/*******************************************************************************
  Function Name  : vGetWinStatus
  Input(s)       : -
  Output         : -
  Functionality  : This function will update window postion from configuration
                   module. This function will use m_eWindowIdentity member to
                   denote window type.
  Member of      : CMDIChildBase
  Author(s)      : Raja N
  Date Created   : 18.4.2005
  Modifications  : 
*******************************************************************************/
void CMDIChildBase::vGetWinStatus()
{
#if 0
    // Create pointer to member so that configuraiton module will fill data
    WINDOWPLACEMENT * pDetails = &m_sWindowPlacement;
    // Get data from the configuration module
    theApp.bGetData(m_eWindowIdentity, (void**)&pDetails);
    // Add this flag as this is required to restore minimised window postion
    // also. Refer WINDOWPLACEMENT Structure help from MSDN
    m_sWindowPlacement.flags |= WPF_SETMINPOSITION;
    // Check for initial condition
    if( m_sWindowPlacement.rcNormalPosition.bottom == -1 ||
        m_sWindowPlacement.rcNormalPosition.top == -1 ||
        m_sWindowPlacement.rcNormalPosition.left == -1 ||
        m_sWindowPlacement.rcNormalPosition.right == -1 )
    {
        // Get Propotionate Initial value from Config Module
        theApp.bGetDefaultValue( m_eWindowIdentity, m_sWindowPlacement );
        // Update Config Module to update Window position value
        theApp.bSetData( m_eWindowIdentity, (void*)&m_sWindowPlacement);
    }
#endif
}
コード例 #2
0
/******************************************************************************
 Function Name  : vGetWinStatus
 Input(s)       : sWinCurrStatus - A reference to (system defined)
                  WINDOWPLACEMENT structure to contain previous display
                  status of this window to be retrieved from the registry
 Output         : -
 Functionality  : This function is called to get the display status of window
                  stored
 Member of      : CMessageInterpretation
 Friend of      :    -
 Author(s)      : Raja N
 Date Created   : 05.04.2004
 Modifications  : Raja N on 18.04.2005, Modified to refer new window placement
                  identity - CRH0030
******************************************************************************/
void CMessageInterpretation::vGetWinStatus()
{
#if 0
    // Get window postion details from the configuration file
    WINDOWPLACEMENT* pDetails = &m_sWinCurrStatus;
    // Get data from the configuration module
    theApp.bGetData(MSGINTERP_WND_PLACEMENT, (void**)&pDetails);
    // Add this flag as this is required to restore minimised window postion
    // also. Refer WINDOWPLACEMENT Structure help from MSDN
    m_sWinCurrStatus.flags |= WPF_SETMINPOSITION;

    // Check for initial condition
    if( m_sWinCurrStatus.rcNormalPosition.bottom == -1 ||
            m_sWinCurrStatus.rcNormalPosition.top == -1 ||
            m_sWinCurrStatus.rcNormalPosition.left == -1 ||
            m_sWinCurrStatus.rcNormalPosition.right == -1 )
    {
        // Get Propotionate Initial value from Config Module
        theApp.bGetDefaultValue( MSGINTERP_WND_PLACEMENT, m_sWinCurrStatus );
        // Update Config Module to update Window position value
        theApp.bSetData( MSGINTERP_WND_PLACEMENT, (void*)&m_sWinCurrStatus);
    }
#endif
}