home *** CD-ROM | disk | FTP | other *** search
- // DropwinDlg.cpp : implementation file
- //
-
- #include "stdafx.h"
- #include "VCDemo.h"
- #include "DropwinDlg.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CDropwinDlg dialog
-
-
- CDropwinDlg::CDropwinDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CDropwinDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CDropwinDlg)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
-
-
- void CDropwinDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CDropwinDlg)
- DDX_Control(pDX, IDC_SGCTRL1, m_ctrl);
- //}}AFX_DATA_MAP
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CDropwinDlg message handlers
-
- BOOL CDropwinDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
-
- // TODO: Add extra initialization here
- m_ctrl.DoSetCellString( 0, 1, "Button");
- m_ctrl.DoSetCellString( 0, 3, "Check box");
- m_ctrl.DoSetCellString( 0, 5, "Drop window(row select only)");
- m_ctrl.DoSetCellString( 0, 7, "Drop window");
- m_ctrl.DoSetCellString( 0, 9, "Drop window(data from page2)");
-
-
- m_ctrl.DoSetButtonCell( 2, 1, "press me", "You press here!");
- m_ctrl.DoSetCheckboxCell( 2, 3, "Check box");
- m_ctrl.DoSetDropGridCell( 2, 5, 0, 0, 5, 5, 0, 1, 0, 0, 0 );
- m_ctrl.DoSetDropGridCell( 2, 7, 0, 0, 5, 5, 0, 0, 0, 0, 0 );
- m_ctrl.DoSetDropGridCell( 2, 9, 0, 0, 5, 5, 1, 0, 0, 0, 0 );
-
- m_ctrl.DoAppendPage( "", 1 );
- m_ctrl.DoSetCurrentPage( 1 );
- m_ctrl.DoSetCellString( 0, 1, "data from");
- m_ctrl.DoSetCellString( 0, 2, "page 2");
- m_ctrl.DoSetCurrentPage( 0 );
-
- COleVariant var( "VCDEMO" );
- m_ctrl.DoSetMessageTitle( var );
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
-
-