a99  V32.6
allegro Windows Hauptprogramm
 Alle Klassen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
acleanup.cpp
gehe zur Dokumentation dieser Datei
1 // aCleanup.cpp : Besen-Hilfsfenster
2 //
3 // Copyright 2011 Universitätsbibliothek Braunschweig, more see bottom
4 
5 #include "stdafx.h"
6 #include "ca99.h"
7 #include "a99.h"
8 #include "aCleanup.h"
9 #include "program.h"
10 
11 #ifdef _DEBUG
12 #define new DEBUG_NEW
13 #undef THIS_FILE
14 static char THIS_FILE[] = __FILE__;
15 #endif
16 
17 /////////////////////////////////////////////////////////////////////////////
18 // aCleanup dialog
19 
20 
21 aCleanup::aCleanup(CWnd* pParent /*=NULL*/)
22  : CDialog(aCleanup::IDD, pParent)
23 {
24  //{{AFX_DATA_INIT(aCleanup)
25  //}}AFX_DATA_INIT
26 }
27 
28 
29 void aCleanup::DoDataExchange(CDataExchange* pDX)
30 {
32  //{{AFX_DATA_MAP(aCleanup)
33  DDX_Control(pDX, IDC_RSDEL, m_rsdel);
34  DDX_Control(pDX, IDC_DRSETS, m_drsets);
35  DDX_Control(pDX, IDC_DHIST, m_dhist);
36  DDX_Control(pDX, IDC_DBMK, m_dbmk);
37  DDX_Control(pDX, IDC_DALL, m_dall);
38 #ifndef ALCARTA
39  DDX_Control(pDX, IDC_DOFF, m_doff);
40 #endif
41  //}}AFX_DATA_MAP
42 }
43 
44 
46 {
48  return rc;
49 }
50 
51 BEGIN_MESSAGE_MAP(aCleanup, CDialog)
52  //{{AFX_MSG_MAP(aCleanup)
53  ON_WM_HELPINFO()
54  //}}AFX_MSG_MAP
55 END_MESSAGE_MAP()
56 
57 /////////////////////////////////////////////////////////////////////////////
58 // aCleanup message handlers
59 
60 void aCleanup::OnOK()
61 {
62 
63  rc= (m_dall.GetState()&1)*7
64  | (m_drsets.GetState()&1)*1
65  | (m_dhist.GetState()&1)*2
66  | (m_dbmk.GetState()&1)*4
67 #ifndef ALCARTA
68  | (m_doff.GetState()&1)*16
69 #endif
70  | (m_rsdel.GetState()&1)*8;
71 
72  CDialog::OnOK();
73 }
74 
76 {
78  SetWindowText(uif[236]);
79  m_rsdel.SetWindowText(uif[235]);
80  m_dall.SetWindowText(uif[234]);
81  m_dhist.SetWindowText(uif[232]);
82  m_dbmk.SetWindowText(uif[233]);
83  m_drsets.SetWindowText(uif[231]);
84 #ifndef ALCARTA
85  m_doff.SetWindowText(uif[237]);
86 #endif
87  rc=0;
88 
89  return TRUE; // return TRUE unless you set the focus to a control
90  // EXCEPTION: OCX Property Pages should return FALSE
91 }
92 
93 
94 BOOL aCleanup::OnHelpInfo(HELPINFO* pHelpInfo)
95 {
96  extern a99 *dlg; // main dialog
97  dlg->helpinfo("Besen","?");
98  SetFocus();
99 
100  return TRUE;
101 
102 }
103 
104 /*
105  Copyright 2011 Universitätsbibliothek Braunschweig
106 
107  Licensed under the Apache License, Version 2.0 (the "License");
108  you may not use this file except in compliance with the License.
109  You may obtain a copy of the License at
110 
111  http://www.apache.org/licenses/LICENSE-2.0
112 
113  Unless required by applicable law or agreed to in writing, software
114  distributed under the License is distributed on an "AS IS" BASIS,
115  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
116  See the License for the specific language governing permissions and
117  limitations under the License.
118 */
119