a99  V32.6
allegro Windows Hauptprogramm
 Alle Klassen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
aprogr.cpp
gehe zur Dokumentation dieser Datei
1 // aProgressCtrl.cpp : Fortschrittsbalken mit Groessenaenderung
2 //
3 // Copyright 2011 Universitätsbibliothek Braunschweig, more see bottom
4 
5 #include "stdafx.h"
6 #include "ca99.h"
7 #include "aProgr.h"
8 
9 #ifdef _DEBUG
10 #define new DEBUG_NEW
11 #undef THIS_FILE
12 static char THIS_FILE[] = __FILE__;
13 #endif
14 
15 /////////////////////////////////////////////////////////////////////////////
16 // CaProgressCtrl
17 
19 {
20  B=0;
21 }
22 
24 {
25 }
26 
27 
28 BEGIN_MESSAGE_MAP(CaProgressCtrl, CProgressCtrl)
29  //{{AFX_MSG_MAP(CaProgressCtrl)
30  ON_WM_CHAR()
31  ON_WM_KEYDOWN()
32  //}}AFX_MSG_MAP
33 END_MESSAGE_MAP()
34 
35 /////////////////////////////////////////////////////////////////////////////
36 // CaProgressCtrl message handlers
37 
38 
39 void CaProgressCtrl::movewin(int cx,int cy)
40 {
41 extern int wihi, wiwi;
42 int wh=wihi,ww=wiwi;
43 if(!B)
44 {
45  WINDOWPLACEMENT pl;
46  GetWindowPlacement(&pl);
47  L=pl.rcNormalPosition.left;
48  R=pl.rcNormalPosition.right;
49  T=pl.rcNormalPosition.top;
50  B=pl.rcNormalPosition.bottom;
51 // sprintf(Aerror,"eL=%d,eR=%d,eT=%d,eB=%d",L,R,T,B); MessageBox(Aerror);
52 }
53  MoveWindow(L*cx/ww,T*cy/wihi,((R-L)*cx)/ww,((B-T)*cy)/wihi);
54 
55 }
56 
57 /*
58  Copyright 2011 Universitätsbibliothek Braunschweig
59 
60  Licensed under the Apache License, Version 2.0 (the "License");
61  you may not use this file except in compliance with the License.
62  You may obtain a copy of the License at
63 
64  http://www.apache.org/licenses/LICENSE-2.0
65 
66  Unless required by applicable law or agreed to in writing, software
67  distributed under the License is distributed on an "AS IS" BASIS,
68  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
69  See the License for the specific language governing permissions and
70  limitations under the License.
71 */
72 
73