/[H6]/h6-udlånssystemDlg.cpp
ViewVC logotype

Diff of /h6-udlånssystemDlg.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1 by torben, Wed Aug 30 06:32:35 2006 UTC revision 9 by torben, Wed Aug 30 21:57:57 2006 UTC
# Line 4  Line 4 
4  #include "stdafx.h"  #include "stdafx.h"
5  #include "h6-udlånssystem.h"  #include "h6-udlånssystem.h"
6  #include "h6-udlånssystemDlg.h"  #include "h6-udlånssystemDlg.h"
7    #include ".\h6-udlånssystemdlg.h"
8    
9    #include "commonstorage.h"
10    #include "databaselayer.h"
11    
12  #ifdef _DEBUG  #ifdef _DEBUG
13  #define new DEBUG_NEW  #define new DEBUG_NEW
# Line 54  Ch6udlnssystemDlg::Ch6udlnssystemDlg(CWn Line 58  Ch6udlnssystemDlg::Ch6udlnssystemDlg(CWn
58  void Ch6udlnssystemDlg::DoDataExchange(CDataExchange* pDX)  void Ch6udlnssystemDlg::DoDataExchange(CDataExchange* pDX)
59  {  {
60          CDialog::DoDataExchange(pDX);          CDialog::DoDataExchange(pDX);
61            DDX_Control(pDX, IDC_TAB, m_tabs);
62  }  }
63    
64  BEGIN_MESSAGE_MAP(Ch6udlnssystemDlg, CDialog)  BEGIN_MESSAGE_MAP(Ch6udlnssystemDlg, CDialog)
# Line 61  BEGIN_MESSAGE_MAP(Ch6udlnssystemDlg, CDi Line 66  BEGIN_MESSAGE_MAP(Ch6udlnssystemDlg, CDi
66          ON_WM_PAINT()          ON_WM_PAINT()
67          ON_WM_QUERYDRAGICON()          ON_WM_QUERYDRAGICON()
68          //}}AFX_MSG_MAP          //}}AFX_MSG_MAP
69            ON_COMMAND(ID_HELP_ABOUT, OnHelpAbout)
70            ON_COMMAND(ID_FILE_EXIT, OnFileExit)
71  END_MESSAGE_MAP()  END_MESSAGE_MAP()
72    
73    
# Line 93  BOOL Ch6udlnssystemDlg::OnInitDialog() Line 100  BOOL Ch6udlnssystemDlg::OnInitDialog()
100          SetIcon(m_hIcon, TRUE);                 // Set big icon          SetIcon(m_hIcon, TRUE);                 // Set big icon
101          SetIcon(m_hIcon, FALSE);                // Set small icon          SetIcon(m_hIcon, FALSE);                // Set small icon
102    
103            m_tabs.InsertItem(0,"Search");
104            m_tabs.InsertItem(1,"Result");
105            m_tabs.InsertItem(2,"Administration");
106            m_tabs.Init();
107            m_tabs.SetCurSel(0);
108    
109    
110            DatabaseLayer *dbl = new DatabaseLayer;
111            CommonStorage::Instance()->setDBLayer(dbl);
112    
113    
114          // TODO: Add extra initialization here          // TODO: Add extra initialization here
115                    
116          return TRUE;  // return TRUE  unless you set the focus to a control          return TRUE;  // return TRUE  unless you set the focus to a control
# Line 146  HCURSOR Ch6udlnssystemDlg::OnQueryDragIc Line 164  HCURSOR Ch6udlnssystemDlg::OnQueryDragIc
164  {  {
165          return static_cast<HCURSOR>(m_hIcon);          return static_cast<HCURSOR>(m_hIcon);
166  }  }
167    
168    void Ch6udlnssystemDlg::OnHelpAbout()
169    {
170            MessageBox("DA6H :: Udlånssystem\r\nLavet af:\r\nKevin, Hedin & Torben");
171    }
172    
173    void Ch6udlnssystemDlg::OnFileExit()
174    {
175            // TODO: Add your command handler code here
176            OnOK();
177    }

Legend:
Removed from v.1  
changed lines
  Added in v.9

  ViewVC Help
Powered by ViewVC 1.1.20