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