a99  V32.6
allegro Windows Hauptprogramm
 Alle Klassen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
wkv.h
gehe zur Dokumentation dieser Datei
1 // wkv.h : Window f. Kurz- und ViewListen
2 
3 // Copyright 2011 Universitätsbibliothek Braunschweig, more see bottom
4 
5 #if !defined(AFX_WKV_H__E0584841_7A41_11D1_A2B9_0080C885B6AB__INCLUDED_)
6 #define AFX_WKV_H__E0584841_7A41_11D1_A2B9_0080C885B6AB__INCLUDED_
7 
8 #if _MSC_VER >= 1000
9 #pragma once
10 #endif // _MSC_VER >= 1000
11 // wkv.h : header file
12 //
13 
14 #include "aListBox.h"
15 
16 /////////////////////////////////////////////////////////////////////////////
17 // Wkv dialog
18 
19 class Wkv : public CDialog
20 {
21 // Construction
22 public:
23  Wkv(CWnd* pParent = 0); // standard constructor
24 int DoModal(FILE *a, FILE *b, FILE *c, int i, int j, int n=0,FILE *rsF=0, ABASE *Base=0, char *srt=0);
25 int GetLine(CHAR *, int);
26 void SetPos(int sp=0);
27 
28 int FillList(int n); // sichtbaren Teil der Liste fuellen
29 int Srch(char *s,int po,int ud); // from position po, ud=0/1 = down/up
30 int resT; // type of result set: 0=offline 1=online
31 int docT; // typ: 0=.ALG, 1=.ADT
32 
33 // Dialog Data
34  //{{AFX_DATA(Wkv)
35  enum { IDD = IDD_WKV }; // see IDD_WKV in a99.rc
37  CButton m_sf;
38  CButton m_sb;
39  CButton m_list;
61  //}}AFX_DATA
62 
63 
64 // Overrides
65  // ClassWizard generated virtual function overrides
66  //{{AFX_VIRTUAL(Wkv)
67  public:
68  virtual int DoModal();
69  protected:
70  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
71  //}}AFX_VIRTUAL
72 
73  private:
74  ABASE *Bank;
75  int size; // number of records
76  int cp; // position of display (# of 1st rec in listbox)
77  int cp0; // number at start
78  FILE *docF; // data file
79  FILE *newF; // new records file (temporary)
80  FILE *recF; // either docF or newF for actual reading
81  FILE *tabF; // table file (9 byte per rec)
82  FILE *resF; // result set numbers file (filter)
83  int foco; // 0: normal 1:focus was on m_pos edit field
84  int shft; // shift: position for display
85 
86  int direct; // display every selected title right away
87 
88  char sr[3000]; // re set name
89  CHAR kd[180]; // line of text for display
90  CHAR kr[270]; // for filllist()
91 
92  void Size(void); // adjust size of listbox window
93 
94  int nli; // number of lines per box
95 
96  // Implementation
97 protected:
98  HICON m_hIcon;
99 
100  // Generated message map functions
101  //{{AFX_MSG(Wkv)
102  afx_msg void OnSetfocusBrief();
103  afx_msg void OnDblclkBrief();
104  afx_msg void OnForward();
105  afx_msg void OnBackward();
106  afx_msg void OnKillfocusPosit();
107  afx_msg void OnOK();
108  afx_msg void OnDestroy();
109  virtual BOOL OnInitDialog();
110  afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
111  afx_msg void OnSetfocusPosit();
112  virtual void OnCancel();
113  afx_msg void OnSelchWkv();
114  afx_msg void OnButtonL();
115  afx_msg void OnButtonR();
116  afx_msg void OnButtonDel();
117  afx_msg void OnDirect();
118  afx_msg void OnButton4();
119  afx_msg void OnSortbn();
120  afx_msg void OnTop();
121  afx_msg void OnBot();
122  afx_msg void OnBh();
123  afx_msg void OnAD();
124  afx_msg void SORT(int md=0);
125  afx_msg void OnResort();
126  afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
127  afx_msg void OnRem();
128  afx_msg void OnList();
129  afx_msg void OnSb();
130  afx_msg void OnSf();
131  afx_msg void OnSize(UINT nType, int cx, int cy);
132  //}}AFX_MSG
133  afx_msg LRESULT OnGoodbye(WPARAM wParam, LPARAM lParam);
134  DECLARE_MESSAGE_MAP()
135 };
136 
137 //{{AFX_INSERT_LOCATION}}
138 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
139 
140 #endif // !defined(AFX_WKV...
141 
142 
143 /*
144  Copyright 2011 Universitätsbibliothek Braunschweig
145 
146  Licensed under the Apache License, Version 2.0 (the "License");
147  you may not use this file except in compliance with the License.
148  You may obtain a copy of the License at
149 
150  http://www.apache.org/licenses/LICENSE-2.0
151 
152  Unless required by applicable law or agreed to in writing, software
153  distributed under the License is distributed on an "AS IS" BASIS,
154  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
155  See the License for the specific language governing permissions and
156  limitations under the License.
157 */
158 
159