|
From: <par...@us...> - 2003-03-20 22:56:46
|
Update of /cvsroot/decaldev/source/DenAgent
In directory sc8-pr-cvs1:/tmp/cvs-serv9745
Modified Files:
OptionsDlg.cpp
Log Message:
cleaned up the options
Index: OptionsDlg.cpp
===================================================================
RCS file: /cvsroot/decaldev/source/DenAgent/OptionsDlg.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** OptionsDlg.cpp 11 Feb 2003 22:20:09 -0000 1.12
--- OptionsDlg.cpp 20 Mar 2003 22:56:32 -0000 1.13
***************
*** 105,114 ****
DWORD dwRadarDraw = 1;
key.QueryValue( dwRadarDraw, "BarRadarDraw" );
! ::SendMessage( GetDlgItem( IDC_RADARNO )->m_hWnd, BM_SETCHECK, !dwRadarDraw, 0 );
::SendMessage( GetDlgItem( IDC_RADARYES )->m_hWnd, BM_SETCHECK, dwRadarDraw, 0 );
DWORD dwTimestamp = 0;
key.QueryValue( dwTimestamp, "Timestamp" );
! ::SendMessage( GetDlgItem( IDC_TIMESTAMPOFF )->m_hWnd, BM_SETCHECK, !dwTimestamp, 0 );
::SendMessage( GetDlgItem( IDC_TIMESTAMPON )->m_hWnd, BM_SETCHECK, dwTimestamp, 0 );
--- 105,114 ----
DWORD dwRadarDraw = 1;
key.QueryValue( dwRadarDraw, "BarRadarDraw" );
! //::SendMessage( GetDlgItem( IDC_RADARNO )->m_hWnd, BM_SETCHECK, !dwRadarDraw, 0 );
::SendMessage( GetDlgItem( IDC_RADARYES )->m_hWnd, BM_SETCHECK, dwRadarDraw, 0 );
DWORD dwTimestamp = 0;
key.QueryValue( dwTimestamp, "Timestamp" );
! //::SendMessage( GetDlgItem( IDC_TIMESTAMPOFF )->m_hWnd, BM_SETCHECK, !dwTimestamp, 0 );
::SendMessage( GetDlgItem( IDC_TIMESTAMPON )->m_hWnd, BM_SETCHECK, dwTimestamp, 0 );
***************
*** 131,142 ****
if(key.QueryValue(dwAlphaBlendMode, "AlphaBlendMode")==ERROR_SUCCESS)
! {
if(dwAlphaBlendMode==0x2)
::SendMessage(GetDlgItem(IDC_BLENDINGGDIPLUS)->m_hWnd, BM_SETCHECK, 1, 0);
! else
! ::SendMessage(GetDlgItem(IDC_BLENDINGSOFTWARE)->m_hWnd, BM_SETCHECK, 1, 0);
! }
! else
! ::SendMessage(GetDlgItem(IDC_BLENDINGSOFTWARE)->m_hWnd, BM_SETCHECK, 1, 0);
--- 131,143 ----
if(key.QueryValue(dwAlphaBlendMode, "AlphaBlendMode")==ERROR_SUCCESS)
! // para - dialog clean up
! //{
if(dwAlphaBlendMode==0x2)
::SendMessage(GetDlgItem(IDC_BLENDINGGDIPLUS)->m_hWnd, BM_SETCHECK, 1, 0);
! //else
! // ::SendMessage(GetDlgItem(IDC_BLENDINGSOFTWARE)->m_hWnd, BM_SETCHECK, 1, 0);
! //}
! //else
! // ::SendMessage(GetDlgItem(IDC_BLENDINGSOFTWARE)->m_hWnd, BM_SETCHECK, 1, 0);
***************
*** 144,155 ****
if( key.QueryValue( dwViewMode, "ViewMode" )== ERROR_SUCCESS )
! {
if( dwViewMode == 1 )
::SendMessage( GetDlgItem( IDC_VIEWMULTI )->m_hWnd, BM_SETCHECK, 1, 0 );
! else
! ::SendMessage( GetDlgItem( IDC_VIEWSINGLE )->m_hWnd, BM_SETCHECK, 1, 0 );
! }
! else
! ::SendMessage( GetDlgItem( IDC_VIEWSINGLE )->m_hWnd, BM_SETCHECK, 1, 0 );
key.Close();
--- 145,157 ----
if( key.QueryValue( dwViewMode, "ViewMode" )== ERROR_SUCCESS )
! // para - dialog clean up
! //{
if( dwViewMode == 1 )
::SendMessage( GetDlgItem( IDC_VIEWMULTI )->m_hWnd, BM_SETCHECK, 1, 0 );
! //else
! // ::SendMessage( GetDlgItem( IDC_VIEWSINGLE )->m_hWnd, BM_SETCHECK, 1, 0 );
! //}
! //else
! // ::SendMessage( GetDlgItem( IDC_VIEWSINGLE )->m_hWnd, BM_SETCHECK, 1, 0 );
key.Close();
***************
*** 255,262 ****
! if( ::SendMessage( GetDlgItem( IDC_VIEWSINGLE )->m_hWnd, BM_GETCHECK, 0, 0 ) )
! key.SetValue( (DWORD) 0, "ViewMode" );
! else
key.SetValue( (DWORD) 1, "ViewMode" );
// Set the font info
--- 257,265 ----
! // para - dropped viewsingle, switched around
! if( ::SendMessage( GetDlgItem( IDC_VIEWMULTI )->m_hWnd, BM_GETCHECK, 0, 0 ) )
key.SetValue( (DWORD) 1, "ViewMode" );
+ else
+ key.SetValue( (DWORD) 0, "ViewMode" );
// Set the font info
|