当前位置: 首页>>代码示例>>C++>>正文


C++ CCANMonitorApp::bSetData方法代码示例

本文整理汇总了C++中CCANMonitorApp::bSetData方法的典型用法代码示例。如果您正苦于以下问题:C++ CCANMonitorApp::bSetData方法的具体用法?C++ CCANMonitorApp::bSetData怎么用?C++ CCANMonitorApp::bSetData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CCANMonitorApp的用法示例。


在下文中一共展示了CCANMonitorApp::bSetData方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: vGetWinStatus

/*******************************************************************************
  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
}
开发者ID:Fetze,项目名称:busmaster,代码行数:35,代码来源:MDIChildBase.cpp

示例2: vGetWinStatus

/******************************************************************************
 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
}
开发者ID:DavidPfander,项目名称:busmaster,代码行数:39,代码来源:MessageInterpretation.cpp


注:本文中的CCANMonitorApp::bSetData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。