a99  V32.6
allegro Windows Hauptprogramm
 Alle Klassen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
ca99.cpp
gehe zur Dokumentation dieser Datei
1 // ca99.cpp : Defines the class behaviors for the application.
2 // automatisch erstellt durch Visual C++, dann modifiziert
3 // Copyright 2011 Universitätsbibliothek Braunschweig, more see bottom
4 
5 #include "stdafx.h"
6 #include "ca99.h"
7 #include "a99.h"
8 
9 #ifdef _DEBUG
10 #define new DEBUG_NEW
11 #undef THIS_FILE
12 static char THIS_FILE[] = __FILE__;
13 #endif
14 
15 char *CmdLine;
16 
17 // #define WM_XECUTE WM_USER + 7 // external flex command
18 
20 
22 
23 /////////////////////////////////////////////////////////////////////////////
24 // Ca99App
25 
26 BEGIN_MESSAGE_MAP(Ca99App, CWinApp)
27 // ON_MESSAGE(WM_XECUTE, OnXec) // External Flex command
28  //{{AFX_MSG_MAP(Ca99App)
29  //ON_WM_CHAR()
30  //}}AFX_MSG_MAP
31  ON_COMMAND(ID_HELP, CWinApp::OnHelp)
32 END_MESSAGE_MAP()
33 
34 /////////////////////////////////////////////////////////////////////////////
35 // Ca99App construction
36 
38 {
39  // TODO: add construction code here,
40  // Place all significant initialization in InitInstance
41 
42 
43 if(!LoadAccelerators(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_ACCELERATOR1)))
44  ; // Messagca99("No Accelerators!");
45 }
46 
47 /////////////////////////////////////////////////////////////////////////////
48 // The one and only Ca99App object
49 
51 
52 //CDC pDC;
53 //BOOL PDC;
54 
55 /////////////////////////////////////////////////////////////////////////////
56 // Ca99App initialization
57 
59 {
60  // Standard initialization
61  // If you are not using these features and wish to reduce the size
62  // of your final executable, you should remove from the following
63  // the specific initialization routines you do not need.
64 
65 
66 #ifdef _AFXDLL
67  Enable3dControls(); // Call this when using MFC in a shared DLL
68 #else
69  Enable3dControlsStatic(); // Call this when linking to MFC statically
70 #endif
71 
72  CmdLine = m_lpCmdLine;
73  dlg = &DLG;
74 
75  extern int reD,grE,blU;
76 
77  reD=GetPrivateProfileInt("general","redb",220,CmdLine);
78  grE=GetPrivateProfileInt("general","greb",220,CmdLine);
79  blU=GetPrivateProfileInt("general","blub",220,CmdLine);
80 
81  SetDialogBkColor( RGB(reD, grE, blU), RGB(0, 0, 0) );
82 
83 // Ca99Dlg dlg;
84  m_pMainWnd = dlg;
85 // StB = new CStatusBar();
86 // StB->Create((CWnd*) &dlg, WS_CHILD | WS_VISIBLE | CBRS_BOTTOM);
87 
88 // Ca99Dlg(); // construct
89 
90 
91  // PDC=CreatePrinterDC(pDC);
92 
93  AfxInitRichEdit();
94 
95  int nResponse = dlg->DoModal(); // Hauptteil
96 
97  if (nResponse == IDOK)
98  {
99 
100  // TODO: Place code here to handle when the dialog is
101  // dismissed with OK
102  }
103  else if (nResponse == IDCANCEL)
104  {
105 
106  // TODO: Place code here to handle when the dialog is
107  // dismissed with Cancel
108  }
109 
110  // Since the dialog has been closed, return FALSE so that we exit the
111  // application, rather than start the application's message pump.
112  return FALSE;
113 }
114 
115 /*
116  Copyright 2011 Universitätsbibliothek Braunschweig
117 
118  Licensed under the Apache License, Version 2.0 (the "License");
119  you may not use this file except in compliance with the License.
120  You may obtain a copy of the License at
121 
122  http://www.apache.org/licenses/LICENSE-2.0
123 
124  Unless required by applicable law or agreed to in writing, software
125  distributed under the License is distributed on an "AS IS" BASIS,
126  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
127  See the License for the specific language governing permissions and
128  limitations under the License.
129 */
130