-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGRP2Dlg.cpp
7643 lines (6438 loc) · 321 KB
/
GRP2Dlg.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//------------------------------------------------------------------------| GRP2Dlg.cpp //
// | GRP2, Graphik Dialog 2 (deutsch) //
// | von Dietmar Schrausser, (C) SCHRAUSSER 2011 //
//
#include "stdafx.h"
#include "GRP2.hpp"
#include "GRP2Dlg.hpp"
#include "GRP2info.hpp"
#include "GRP2param1.hpp"
#include "GRP2param2.hpp"
#include "GRP2param3.hpp"
#include "GRP2param4.hpp"
#include "GRP2param5.hpp"
#include "GRP2diagrm1.hpp"
#include "GRP2diagrm2.hpp"
#include "GRP2diagrm3.hpp"
#include "GRP2diagrm4.hpp"
#include "GRP2diagrm5.hpp"
#include "GRP2diagrm6.hpp"
#include "GRP2fn1.hpp"
#include "GRP2fn2.hpp"
#include "GRP2fn3.hpp"
#include "GRP2fn4.hpp"
#include "GRP2prg.hpp"
#include "GRP2koord.hpp"
#include "GRP2splash.hpp"
#include "D:\_EIGENEDATEIEN_\1_LAUFENDES\1_SYSTEM\3_C_PROGRAMME\__H_C++_\DATACONV.HPP"
#include "D:\_EIGENEDATEIEN_\1_LAUFENDES\1_SYSTEM\3_C_PROGRAMME\__H_C_\FN_PQ.H"
#include "D:\_EIGENEDATEIEN_\1_LAUFENDES\1_SYSTEM\3_C_PROGRAMME\__H_C_\FN_SORT.H"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
RECT coord;
BOOL sw_x, sw_y; //Achsen_Beschriftung_FunktionsWerte
BOOL sw_x_0, sw_y_0;
BOOL sw_xSw, sw_ySw; //Achsen_Beschriftung_SkalenWerte
BOOL sw_xSw_0,sw_ySw_0;
BOOL sw_xm, sw_ym; //Achsen_Beschriftung_MinMax
BOOL sw_xm_0, sw_ym_0;
BOOL sw_xA, sw_yA; //Achsen_
BOOL sw_xA_0, sw_yA_0;
BOOL sw_xV, sw_yV; //Achsen_Vektoren
BOOL sw_xV_0, sw_yV_0;
BOOL sw_xS, sw_yS; //Achsen_Skala
BOOL sw_xS_0, sw_yS_0;
BOOL sw_xK, sw_yK; //Achsen_Koordinaten
BOOL sw_xK_0, sw_yK_0;
BOOL sw_FK_0, sw_FK; //funktionskurve
BOOL sw_xy_0, sw_xy; //xy punkte
BOOL sw_xb, sw_yb; //achsen bezeichnungsschalter
BOOL sw_xb_0, sw_yb_0;
BOOL sw_emf; //emf schalter
BOOL sw_emf_in;
BOOL sw_inv; //inversfunktion f-1(x)
BOOL sw_mod_; //funktionsmodusschalter
BOOL modus_; //startmodusschalter
BOOL sw_csr; //cursorschalter
BOOL sw_v0; //vektorursprungspositionsschalter
BOOL sw_mkoord_A, sw_mkoord_V; //manueller Koordinateneingabe schalter
BOOL sw_splash;
BOOL sw_xbz, sw_ybz; //manueller achsenbezeichnungsschalter
BOOL sw_Fxy; //Funktionsmatrix Fxy Ansicht schalter
BOOL sw_Theta; //Theta Ansicht schalter
BOOL sw_Log; //Log Ansicht schalter
BOOL sw_status; //Statusleisten Ansichts schalter
int nlog=1; //logindex
BOOL sw_integral;//integralschalter
int int_n;//ordnung n
BOOL sw_differential;//differentialschalter
int diff_n;//ordnung n
BOOL sw_kgl;//mittelungsschalter
int kgl_i;//iterationen i
BOOL sw_fxy=0;//funktionsmatrix neu setzenschalter
int file_ind=1;//dateineusetzungsindex
BOOL sw_drw=1; //funktions-renderschalter
BOOL dynrnd; //Dynamisch Rendern
BOOL filestr; //Filestream Rendern
BOOL wnd_pos, log_, csr_, csr_0; //Programmeinstellungsschalter
short sw_sz=0; //size marker
short sw_bd=0; //mouseschaltermarker
short p_e_sw, p_e_sw_0; //p modus schalter
short p_p_sw, p_p_sw_0; //
short sw_pq, sw_pq_0;
short sw_Grdx, sw_Grdx_0; //Grid schalter
short sw_Grdy, sw_Grdy_0; //
// Funktionsvektoren (x),(y) von Funktionsmatrix (F)
double FVx_[33010], FVy_[33010]; //nicht in GRP2Dlg.hpp definieren, felddimensionierung heikel!!
int scrx, scry;
int posVx, posVy, posVx_0, posVy_0; //vektorkoordinatenausgabe positions shift
int posAXx, posAXy, posAXx_0, posAXy_0; //Achsenskalenwert positions shift
int posAYx, posAYy, posAYx_0, posAYy_0; //
int posBXx, posBXy, posBXx_0, posBXy_0; //Achsenbezeichnungs positions shift
int posBYx, posBYy, posBYx_0, posBYy_0; //
int posFXx, posFXy, posFXx_0, posFXy_0; //Funktionswert positions shift
int posFYx, posFYy, posFYx_0, posFYy_0; //
int posSCx, posSCx_0; //Skalenmarkierungs positions shift
int posSCy, posSCy_0; //
int posX, posX_0; //Diagramm x-shift
int posY, posY_0; //Diagramm y-shift
float frmX, frmX_0; //Diagramm x-form shift
float frmY, frmY_0; //Diagramm y-form shift
float n_;
float mv1y, mv1x;
float mv2y, mv2x;
float corx;
float corx0;
float cory;
float cory0;
float sc0x;
float sc0y;
float sc, sc_0, scy, scy_0; // skalierungs variablen
float tlg_x, tlg_x_0, tlg_y, tlg_y_0;//int skalendelta
float Vp_x, Ap_x, Vp_y, Ap_y;
float mVx, mAx, mVy, mAy; //manuelle koordinatenbestimmungs variablen
float mVx_0, mAx_0, mVy_0, mAy_0; //manuelle koordinatenbestimmungs variablen
float Ax_m,Ay_m;//,Vx_m,Vy_m
//Konfidenzintervalle
float CI_Pp, CI_Pp_0, ci_zp, ci_tp; //Fp
float CI_Pr, CI_Pr_0, ci_zr, ci_tr; //rxy
float CI_Pe, CI_Pe_0, ci_ze, ci_te, ci_ze_0; //Fe
BOOL Dx_,Dy_;
BOOL ds_x, ds_y, ds_xSw, ds_ySw, ds_xk, ds_yk; //dezimalstellen
BOOL ds_x_0, ds_y_0, ds_xSw_0, ds_ySw_0, ds_xk_0, ds_yk_0;//
BOOL tab_; //parametertabellenposition
BOOL tab_diag; //diagrammtabellenposition
BOOL tab_fn; //funktionstabellenposition
BOOL linB_Ax, linB_Ay, linB_Vx, linB_Vy, linB_Fn, linB_FnP; //linienbreite
BOOL linB_Ax_0, linB_Ay_0, linB_Vx_0, linB_Vy_0, linB_Fn_0, linB_FnP_0;//
BOOL linB_Grdx, linB_Grdy; //grid linienbreite
BOOL linB_Grdx_0, linB_Grdy_0;//
BOOL linB_r, linB_ri, linB_sr, linB_sri, linB_sR, linB_sRi, linB_sxy, linB_syx, linB_sgxy, linB_sgyx; //rxy linienbreite
BOOL linB_r_0, linB_ri_0, linB_sr_0, linB_sri_0, linB_sR_0, linB_sRi_0, linB_sxy_0, linB_syx_0,linB_sgxy_0, linB_sgyx_0; //
BOOL linB_am, linB_sd, linB_sgam, linB_sdg, linB_a3, linB_ag3, linB_sga3, linB_a4, linB_ag4, linB_sga4; //Fp linienbreite
BOOL linB_am_0, linB_sd_0, linB_sgam_0, linB_sdg_0, linB_a3_0, linB_ag3_0, linB_sga3_0, linB_a4_0, linB_ag4_0, linB_sga4_0; //
BOOL linB_e, linB_x, linB_x0, linB_x1, linB_s0, linB_s1; //Fe linienbreite
BOOL linB_e_0, linB_x_0, linB_x0_0, linB_x1_0, linB_s0_0, linB_s1_0; //
BOOL r_q, ri_q, syx_q, sxy_q, sgyx_q ,sgxy_q, sr_q, sri_q, sR_q,sRi_q; //Theta darstellungsschalter
BOOL r_q_0, ri_q_0, syx_q_0, sxy_q_0, sgyx_q_0,sgxy_q_0, sr_q_0, sri_q_0, sR_q_0,sRi_q_0; //
BOOL am_q, sd_q, sdg_q, sgam_q, a3_q,ag3_q, sa3g_q, a4_q, ag4_q,sa4g_q; //
BOOL am_q_0, sd_q_0, sdg_q_0, sgam_q_0, a3_q_0,ag3_q_0, sa3g_q_0, a4_q_0, ag4_q_0,sa4g_q_0;//
BOOL e_q, x_q, x0_q, x1_q, s0_q, s1_q; //
BOOL e_q_0, x_q_0, x0_q_0, x1_q_0, s0_q_0,s1_q_0;//
BOOL mod_Ax, mod_Ay; //Achsenmodus
BOOL mod_Ax_0, mod_Ay_0;//
BOOL mod_Vx, mod_Vy; //vektormodus
BOOL mod_Vx_0, mod_Vy_0;//
BOOL mod_Fn, mod_Fn_0; //Funktionskurvenmodus
BOOL mod_FnP, mod_FnP_0;//
BOOL mod_Grdx, mod_Grdy; //grid modus
BOOL mod_Grdx_0, mod_Grdy_0;//
BOOL mod_r, mod_ri, mod_sr, mod_sri, mod_sR, mod_sRi, mod_sxy, mod_syx, mod_sgxy, mod_sgyx; //rxy modus
BOOL mod_r_0, mod_ri_0, mod_sr_0, mod_sri_0, mod_sR_0, mod_sRi_0, mod_sxy_0, mod_syx_0,mod_sgxy_0, mod_sgyx_0; //
BOOL mod_am, mod_sd, mod_sgam, mod_sdg, mod_a3, mod_ag3, mod_sga3, mod_a4, mod_ag4, mod_sga4; //Fp modus
BOOL mod_am_0, mod_sd_0, mod_sgam_0, mod_sdg_0, mod_a3_0, mod_ag3_0, mod_sga3_0, mod_a4_0, mod_ag4_0, mod_sga4_0; //
BOOL mod_e, mod_x, mod_x0, mod_s0, mod_x1, mod_s1; //Fe modus
BOOL mod_e_0, mod_x_0, mod_x0_0, mod_s0_0, mod_x1_0, mod_s1_0; //
//int dt_xy; //xy punktgrösse
BOOL fb_hg, fb_hg_0; //hintergrundfarbe
BOOL fb_K, fb_K_0; //Kurvenfarbe
BOOL fb_P, fb_P_0; //Punktfarbe
BOOL fb_Ax, fb_Ay, fb_Ax_0, fb_Ay_0; //Achsenfarbe
BOOL fb_Vx, fb_Vy, fb_Vx_0, fb_Vy_0; //Vektorfarbe
BOOL fb_Grdx, fb_Grdy; //grid farbe
BOOL fb_Grdx_0, fb_Grdy_0;//
BOOL fb_r, fb_ri, fb_sr, fb_sri, fb_sR, fb_sRi, fb_sxy, fb_syx, fb_sgxy, fb_sgyx; //rxy farben
BOOL fb_r_0, fb_ri_0, fb_sr_0, fb_sri_0, fb_sR_0, fb_sRi_0, fb_sxy_0, fb_syx_0,fb_sgxy_0, fb_sgyx_0; //
BOOL fb_am, fb_sd, fb_sgam, fb_sdg, fb_a3, fb_ag3, fb_sga3, fb_a4, fb_ag4, fb_sga4; //Fp farben
BOOL fb_am_0, fb_sd_0, fb_sgam_0, fb_sdg_0, fb_a3_0, fb_ag3_0, fb_sga3_0, fb_a4_0, fb_ag4_0, fb_sga4_0; //
BOOL fb_e, fb_s0, fb_s1, fb_x0, fb_x1, fb_x; //Fe farben
BOOL fb_e_0, fb_s0_0, fb_s1_0, fb_x0_0, fb_x1_0, fb_x_0; //
//schrift
//funktion
CString fn_x_fon, fn_y_fon; //art
CString fn_x_fon_0, fn_y_fon_0;
BOOL fn_x_fb, fn_y_fb; //farbe
BOOL fn_x_fb_0, fn_y_fb_0;
BOOL fn_x_H, fn_x_W, fn_y_H, fn_y_W; //grösse
BOOL fn_x_H_0, fn_x_W_0, fn_y_H_0, fn_y_W_0;
//achsen
CString Ax_fon, Ay_fon; //art
CString Ax_fon_0, Ay_fon_0;
BOOL Ax_fb, Ay_fb; //farbe
BOOL Ax_fb_0, Ay_fb_0;
BOOL Ax_H, Ax_W, Ay_H, Ay_W; //grösse
BOOL Ax_H_0, Ax_W_0, Ay_H_0, Ay_W_0;
//vektoren
CString V_fon; //art
CString V_fon_0;
BOOL V_fb; //farbe
BOOL V_fb_0;
BOOL V_H, V_W; //grösse
BOOL V_H_0, V_W_0;
BOOL rxy_D, rxy_D_0; //Regressionsüberlappungsschalter
BOOL rxy_, ryx_, rxy_0, ryx_0; //Regressionslinienschalter
BOOL sxy_, syx_, sxy_0, syx_0; //Vorhersagefehlerlinienschalter
BOOL s1xy_, s1yx_, s1xy_0, s1yx_0; //Geschätzter Vorhersagefehlerlinienschalter
BOOL srxy_, sryx_, srxy_0, sryx_0; //Geschätzter Korrelationsfehlerlinienschalter
BOOL srx_, sry_, srx_0, sry_0; //Geschätzter Regressionsfehlerlinienschalter
BOOL a3_, a3_0; //a3 linienschalter
BOOL a4_, a4_0; //a4 linienschalter
BOOL ag3_, ag3_0; //a'3 linienschalter
BOOL ag4_, ag4_0; //a'4 linienschalter
BOOL am_ , am_0; //am linienschalter
BOOL sd_ , sd_0; //sd linienschalter
BOOL sdg_ , sdg_0; //sd' linienschalter
BOOL sga3_, sga3_0; //s'a3 linienschalter
BOOL sga4_ , sga4_0; //s'a4 linienschalter
BOOL sgam_, sgam_0; //s'am linienschalter
BOOL e_, e_0; //e linienschalter
BOOL xc_, xc_0; //x linienschalter
BOOL x0_, x0_0; //x linienschalter
BOOL x1_, x1_0; //x linienschalter
BOOL s0_, s0_0; //x linienschalter
BOOL s1_, s1_0; //x linienschalter
CString fil;
CString xBz, yBz, xBz_0, yBz_0; //manuelle achsenbezeichnung
CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
//{{AFX_DATA_INIT(CAboutDlg)
//}}AFX_DATA_INIT
}
void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutDlg)
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
//{{AFX_MSG_MAP(CAboutDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
CGRP2Dlg::CGRP2Dlg(CWnd* pParent )
: CDialog(CGRP2Dlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CGRP2Dlg)
//}}AFX_DATA_INIT
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
m_Csr1 = AfxGetApp()->LoadCursor(IDC_CURSOR1);
m_Csr2 = AfxGetApp()->LoadCursor(IDC_CURSOR2);
m_Csr3 = AfxGetApp()->LoadCursor(IDC_CURSOR3);
}
void CGRP2Dlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CGRP2Dlg)
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CGRP2Dlg, CDialog)
//{{AFX_MSG_MAP(CGRP2Dlg)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
ON_WM_SIZE()
ON_WM_MOUSEMOVE()
ON_WM_TIMER()
ON_COMMAND(ID_FUNKTIONSMATRIX_FFNEN, OnFunktionsmatrixFfnen)
ON_COMMAND(ID_FUNKTION_EMFSPEICHERN, OnFunktionEmfspeichern)
ON_WM_MOUSEWHEEL()
ON_WM_CLOSE()
ON_COMMAND(ID_MODUS_FP, OnModusFp)
ON_COMMAND(ID_MODUS_FX, OnModusFx)
ON_COMMAND(ID_MODUS_RXY, OnModusRxy)
ON_COMMAND(ID_FUNKTION_EMFFFNEN, OnFunktionEmfffnen)
ON_COMMAND(ID_MODUS_INV, OnModusInv)
ON_COMMAND(ID_EINSTELLUNGEN_Parameter, OnEINSTELLUNGENParameter)
ON_COMMAND(ID_INFO, OnInfo)
ON_COMMAND(ID_EINSTELLUNGEN_CURSOR_SCHWARZ, OnEinstellungenCursorSchwarz)
ON_COMMAND(ID_EINSTELLUNGEN_CURSOR_WEISS, OnEinstellungenCursorWeiss)
ON_COMMAND(ID_EINSTELLUNGEN_Diagramm, OnEINSTELLUNGENDiagramm)
ON_COMMAND(ID_EINSTELLUNGEN_Funktion, OnEINSTELLUNGENFunktion)
ON_COMMAND(ID_EINSTELLUNGEN_KOORDINATEN, OnEinstellungenKoordinaten)
ON_COMMAND(ID_EINSTELLUNGEN_APP, OnEinstellungenApp)
ON_WM_RBUTTONUP()
ON_WM_LBUTTONUP()
ON_WM_LBUTTONDOWN()
ON_WM_RBUTTONDOWN()
ON_COMMAND(ID_MODUS_EPSILON, OnModusEpsilon)
ON_COMMAND(ID_EINSTELLUNGEN_CURSOR_ACHSENVERSCHUB, OnEinstellungenCursorAchsenverschub)
ON_COMMAND(ID_EINSTELLUNGEN_CURSOR_VEKTORENVERSCHUB, OnEinstellungenCursorVektorenverschub)
ON_COMMAND(ID_FUNKTION_SPEICHERNUNTER, OnFunktionSpeichernunter)
ON_COMMAND(ID_ANSICHT_FUNKTIONSMATRIXFXY, OnAnsichtFunktionsmatrixfxy)
ON_COMMAND(ID_MODUS_FZX, OnModusFzx)
ON_COMMAND(ID_ANSICHT_THETAFENSTERQ, OnAnsichtThetafensterq)
ON_COMMAND(ID_FUNKTION_SPEICHERN, OnFunktionSpeichern)
ON_COMMAND(ID_FUNKTION_EMFSPEICHERNUNTER, OnFunktionEmfspeichernunter)
ON_COMMAND(ID_ANSICHT_GRP2LOG, OnAnsichtGrp2log)
ON_COMMAND(ID_ANSICHT_STATUSLEISTE, OnAnsichtStatusleiste)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
void CGRP2Dlg::cmdline(CString f){fil=f;}; // cmdline arg
BOOL CGRP2Dlg::OnInitDialog()
{
CDialog::OnInitDialog();
CWinApp* pApp = AfxGetApp(); // ini profil lesen
sw_x = pApp->GetProfileInt("Achsen","x_Beschriftung_Werte",0);
sw_y = pApp->GetProfileInt("Achsen","y_Beschriftung_Werte",0);
sw_xm = pApp->GetProfileInt("Achsen","x_Beschriftung_MinMax",0);
sw_ym = pApp->GetProfileInt("Achsen","y_Beschriftung_MinMax",0);
sw_xA = pApp->GetProfileInt("Achsen","x_",1);
sw_yA = pApp->GetProfileInt("Achsen","y_",1);
sw_xb= pApp->GetProfileInt("Achsen","X_Bezeichnung",1);
sw_yb= pApp->GetProfileInt("Achsen","Y_Bezeichnung",1);
sw_xV = pApp->GetProfileInt("Achsen","x_Vektor",1);
sw_yV = pApp->GetProfileInt("Achsen","y_Vektor",1);
sw_xS = pApp->GetProfileInt("Achsen","x_Skala",1);
sw_yS = pApp->GetProfileInt("Achsen","y_Skala",1);
sw_Grdx = pApp->GetProfileInt("Achsen","x_Grid",0);
sw_Grdy = pApp->GetProfileInt("Achsen","y_Grid",0);
sw_xSw= pApp->GetProfileInt("Achsen","x_Skalenwerte",1);
sw_ySw= pApp->GetProfileInt("Achsen","y_Skalenwerte",1);
sw_xK = pApp->GetProfileInt("Achsen","x_Koordinate",1);
sw_yK = pApp->GetProfileInt("Achsen","y_Koordinate",1);
ds_x= pApp->GetProfileInt("Achsen","x_Werte_Dezimalstellen",3);
ds_y= pApp->GetProfileInt("Achsen","y_Werte_Dezimalstellen",3);
ds_xSw= pApp->GetProfileInt("Achsen","x_Skalenwerte_Dezimalstellen",2);
ds_ySw= pApp->GetProfileInt("Achsen","y_Skalenwerte_Dezimalstellen",2);
ds_xk= pApp->GetProfileInt("Achsen","x_Koordinaten_Dezimalstellen",2);
ds_yk= pApp->GetProfileInt("Achsen","y_Koordinaten_Dezimalstellen",2);
fb_Ax= pApp->GetProfileInt("Achsen","X_Farbe",8421504);
fb_Ay= pApp->GetProfileInt("Achsen","Y_Farbe",8421504);
fb_Vx= pApp->GetProfileInt("Achsen","X_Vektor_Farbe",8421504);
fb_Vy= pApp->GetProfileInt("Achsen","Y_Vektor_Farbe",8421504);
posVx= pApp->GetProfileInt("Achsen","X_Vektor_Koordinaten_Position",3);
posVy= pApp->GetProfileInt("Achsen","Y_Vektor_Koordinaten_Position",-11);
posAXx= pApp->GetProfileInt("Achsen","X_Skalenwerte_Position_x",0);
posAXy= pApp->GetProfileInt("Achsen","X_Skalenwerte_Position_y",3);
posAYx= pApp->GetProfileInt("Achsen","Y_Skalenwerte_Position_x",-26);
posAYy= pApp->GetProfileInt("Achsen","Y_Skalenwerte_Position_y",-8);
posBXx= pApp->GetProfileInt("Achsen","X_Bezeichnungs_Position_x",0);
posBXy= pApp->GetProfileInt("Achsen","X_Bezeichnungs_Position_y",0);
posBYx= pApp->GetProfileInt("Achsen","Y_Bezeichnungs_Position_x",0);
posBYy= pApp->GetProfileInt("Achsen","Y_Bezeichnungs_Position_y",0);
posFXx= pApp->GetProfileInt("Achsen","X_Beschriftung_Werte_Position_x",0);
posFXy= pApp->GetProfileInt("Achsen","X_Beschriftung_Werte_Position_y",-12);
posFYx= pApp->GetProfileInt("Achsen","Y_Beschriftung_Werte_Position_x",6);
posFYy= pApp->GetProfileInt("Achsen","Y_Beschriftung_Werte_Position_y",-8);
posSCx= pApp->GetProfileInt("Achsen","X_Skalierungs_Position",0);
posSCy= pApp->GetProfileInt("Achsen","Y_Skalierungs_Position",0);
fb_r= pApp->GetProfileInt("Funktion","rxy_Farbe",8421504);
fb_ri= pApp->GetProfileInt("Funktion","ryx_Farbe",8421504);
fb_sr= pApp->GetProfileInt("Funktion","srxy_Farbe",8421504);
fb_sri= pApp->GetProfileInt("Funktion","sryx_Farbe",8421504);
fb_sR= pApp->GetProfileInt("Funktion","sry_Farbe",8421504);
fb_sRi= pApp->GetProfileInt("Funktion","srx_Farbe",8421504);
fb_sxy= pApp->GetProfileInt("Funktion","sxy_Farbe",8421504);
fb_syx= pApp->GetProfileInt("Funktion","syx_Farbe",8421504);
fb_sgxy= pApp->GetProfileInt("Funktion","s'xy_Farbe",8421504);
fb_sgyx= pApp->GetProfileInt("Funktion","s'yx_Farbe",8421504);
fb_am= pApp->GetProfileInt("Funktion","am_Farbe",8421504);
fb_sd= pApp->GetProfileInt("Funktion","sd_Farbe",8421504);
fb_sgam= pApp->GetProfileInt("Funktion","s'am_Farbe",8421504);
fb_sdg= pApp->GetProfileInt("Funktion","sd'_Farbe",8421504);
fb_a3= pApp->GetProfileInt("Funktion","a3_Farbe",8421504);
fb_ag3= pApp->GetProfileInt("Funktion","a3'_Farbe",8421504);
fb_sga3= pApp->GetProfileInt("Funktion","s'a3_Farbe",8421504);
fb_a4= pApp->GetProfileInt("Funktion","a4_Farbe",8421504);
fb_ag4= pApp->GetProfileInt("Funktion","a4'_Farbe",8421504);
fb_sga4= pApp->GetProfileInt("Funktion","s'a4_Farbe",8421504);
fb_e= pApp->GetProfileInt("Funktion","e_Farbe",8421504);
fb_x= pApp->GetProfileInt("Funktion","x_Farbe",8421504);
fb_x0= pApp->GetProfileInt("Funktion","x0_Farbe",8421504);
fb_x1= pApp->GetProfileInt("Funktion","x1_Farbe",8421504);
fb_s0= pApp->GetProfileInt("Funktion","s0_Farbe",8421504);
fb_s1= pApp->GetProfileInt("Funktion","s1_Farbe",8421504);
fb_Grdx= pApp->GetProfileInt("Achsen","X_Grid_Farbe",65793*190);
fb_Grdy= pApp->GetProfileInt("Achsen","Y_Grid_Farbe",65793*190);
linB_Grdx= pApp->GetProfileInt("Achsen","X_Grid_Linienbreite",0);
linB_Grdy= pApp->GetProfileInt("Achsen","Y_Grid_Linienbreite",0);
mod_Grdx= pApp->GetProfileInt("Achsen","X_Grid_Modus",2);
mod_Grdy= pApp->GetProfileInt("Achsen","Y_Grid_Modus",2);
sw_FK= pApp->GetProfileInt("Funktion","Kurve",0);
linB_Fn= pApp->GetProfileInt("Funktion","Kurvenlinienbreite",1);
mod_Fn= pApp->GetProfileInt("Funktion","Kurvenmodus",1);
sw_xy = pApp->GetProfileInt("Funktion","Punkte",1);
linB_FnP= pApp->GetProfileInt("Funktion","Punktbreite",2);
mod_FnP= pApp->GetProfileInt("Funktion","Punktmodus",1);
sw_inv= pApp->GetProfileInt("Funktion","invers",0);
CI_Pp= atof(pApp->GetProfileString("Funktion","Fp_CI","95.0"));
CI_Pr= atof(pApp->GetProfileString("Funktion","rxy_CI","95.0"));
CI_Pe= atof(pApp->GetProfileString("Funktion","Fe_CI","95.0"));
sw_pq= pApp->GetProfileInt("Funktion","Fp_Theta",0);
p_e_sw= pApp->GetProfileInt("Funktion","Epsilon_p",0);
p_p_sw= pApp->GetProfileInt("Funktion","p_p",0);
filename= pApp->GetProfileString("Funktion","Datei","GRP2.asc");
rxy_D= pApp->GetProfileInt("Funktion","rxy_Darstellung_überschnitten",0);
rxy_= pApp->GetProfileInt("Funktion","rxy_Darstellung",1);
ryx_= pApp->GetProfileInt("Funktion","ryx_Darstellung",1);
sxy_= pApp->GetProfileInt("Funktion","sxy_Darstellung",1);
syx_= pApp->GetProfileInt("Funktion","syx_Darstellung",1);
s1xy_= pApp->GetProfileInt("Funktion","s'xy_Darstellung",0);
s1yx_= pApp->GetProfileInt("Funktion","s'yx_Darstellung",0);
srxy_= pApp->GetProfileInt("Funktion","srxy_Darstellung",0);
sryx_= pApp->GetProfileInt("Funktion","sryx_Darstellung",0);
srx_= pApp->GetProfileInt("Funktion","srx_Darstellung",0);
sry_= pApp->GetProfileInt("Funktion","sry_Darstellung",0);
am_= pApp->GetProfileInt("Funktion","am_Darstellung",1);
sd_= pApp->GetProfileInt("Funktion","sd_Darstellung",0);
sdg_= pApp->GetProfileInt("Funktion","sd'_Darstellung",1);
sgam_= pApp->GetProfileInt("Funktion","s'am_Darstellung",0);
a3_= pApp->GetProfileInt("Funktion","a3_Darstellung",0);
a4_= pApp->GetProfileInt("Funktion","a4_Darstellung",0);
ag3_= pApp->GetProfileInt("Funktion","a3'_Darstellung",0);
ag4_= pApp->GetProfileInt("Funktion","a4'_Darstellung",0);
sga3_= pApp->GetProfileInt("Funktion","s'a3_Darstellung",1);
sga4_= pApp->GetProfileInt("Funktion","s'a4_Darstellung",0);
e_= pApp->GetProfileInt("Funktion","e_Darstellung",1);
x_= pApp->GetProfileInt("Funktion","x_Darstellung",0);
x0_= pApp->GetProfileInt("Funktion","x0_Darstellung",1);
x1_= pApp->GetProfileInt("Funktion","x1_Darstellung",1);
s0_= pApp->GetProfileInt("Funktion","s0_Darstellung",0);
s1_= pApp->GetProfileInt("Funktion","s1_Darstellung",0);
emf_filename= pApp->GetProfileString("EMF","Datei","GRP_Diagramm_1.emf");
sc= atof(pApp->GetProfileString("Dialog","Diagramm_Skalierung_1","1.2"));
scy= atof(pApp->GetProfileString("Dialog","Diagramm_Skalierung_2","30"));
scrx= pApp->GetProfileInt("Dialog","Emf_Skalierung_x",25);
scry= pApp->GetProfileInt("Dialog","Emf_Skalierung_y",30);
coord.left= pApp->GetProfileInt("Dialog","Position_x",579);
coord.top= pApp->GetProfileInt("Dialog","Position_y",151);
coord.right= pApp->GetProfileInt("Dialog","Grösse_x",399);
coord.bottom= pApp->GetProfileInt("Dialog","Grösse_y",268);
mv1x= atof(pApp->GetProfileString("Dialog","Vektor_x","0.5"));
mv1y= atof(pApp->GetProfileString("Dialog","Vektor_y","0.5"));
mv2x= atof(pApp->GetProfileString("Dialog","Achse_x","0.5"));
mv2y= atof(pApp->GetProfileString("Dialog","Achse_y","0.5"));
linB_Fn= pApp->GetProfileInt("Funktion","Linienbreite",1);
//dt_xy= pApp->GetProfileInt("Funktion","Punktgrösse",3);
fb_hg= pApp->GetProfileInt("Diagramm","Hintergrundfarbe",13357270);
fb_K= pApp->GetProfileInt("Funktion","Linienfarbe",0);
fb_P= pApp->GetProfileInt("Funktion","Punktfarbe",0);
linB_Ax= pApp->GetProfileInt("Achsen","x_Linienbreite",1);
linB_Ay= pApp->GetProfileInt("Achsen","y_Linienbreite",1);
linB_Vx= pApp->GetProfileInt("Achsen","x_Vektor_Linienbreite",1);
linB_Vy= pApp->GetProfileInt("Achsen","y_Vektor_Linienbreite",1);
linB_r= pApp->GetProfileInt("Funktion","rxy_Linienbreite",1);
linB_ri= pApp->GetProfileInt("Funktion","ryx_Linienbreite",1);
linB_sr= pApp->GetProfileInt("Funktion","srxy_Linienbreite",1);
linB_sri= pApp->GetProfileInt("Funktion","sryx_Linienbreite",1);
linB_sR= pApp->GetProfileInt("Funktion","sry_Linienbreite",1);
linB_sRi= pApp->GetProfileInt("Funktion","srx_Linienbreite",1);
linB_sxy= pApp->GetProfileInt("Funktion","sxy_Linienbreite",1);
linB_syx= pApp->GetProfileInt("Funktion","syx_Linienbreite",1);
linB_sgxy= pApp->GetProfileInt("Funktion","s'xy_Linienbreite",1);
linB_sgyx= pApp->GetProfileInt("Funktion","s'yx_Linienbreite",1);
linB_am= pApp->GetProfileInt("Funktion","am_Linienbreite",1);
linB_sd= pApp->GetProfileInt("Funktion","sd_Linienbreite",1);
linB_sgam= pApp->GetProfileInt("Funktion","s'am_Linienbreite",1);
linB_sdg= pApp->GetProfileInt("Funktion","sd'_Linienbreite",1);
linB_a3= pApp->GetProfileInt("Funktion","a3_Linienbreite",1);
linB_ag3= pApp->GetProfileInt("Funktion","a3'_Linienbreite",1);
linB_sga3= pApp->GetProfileInt("Funktion","s'a3_Linienbreite",1);
linB_a4= pApp->GetProfileInt("Funktion","a4_Linienbreite",1);
linB_ag4= pApp->GetProfileInt("Funktion","a4'_Linienbreite",1);
linB_sga4= pApp->GetProfileInt("Funktion","s'a4_Linienbreite",1);
linB_e= pApp->GetProfileInt("Funktion","e_Linienbreite",1);
linB_x= pApp->GetProfileInt("Funktion","x_Linienbreite",1);
linB_x0= pApp->GetProfileInt("Funktion","x0_Linienbreite",1);
linB_x1= pApp->GetProfileInt("Funktion","x1_Linienbreite",1);
linB_s0= pApp->GetProfileInt("Funktion","s0_Linienbreite",1);
linB_s1= pApp->GetProfileInt("Funktion","s1_Linienbreite",1);
mod_Ax= pApp->GetProfileInt("Achsen","X_Modus",1);
mod_Ay= pApp->GetProfileInt("Achsen","Y_Modus",1);
mod_Vx= pApp->GetProfileInt("Achsen","x_Vektor_Modus",2);
mod_Vy= pApp->GetProfileInt("Achsen","y_Vektor_Modus",2);
mod_r= pApp->GetProfileInt("Funktion","rxy_Modus",1);
mod_ri= pApp->GetProfileInt("Funktion","ryx_Modus",1);
mod_sr= pApp->GetProfileInt("Funktion","srxy_Modus",2);
mod_sri= pApp->GetProfileInt("Funktion","sryx_Modus",2);
mod_sR= pApp->GetProfileInt("Funktion","sry_Modus",2);
mod_sRi= pApp->GetProfileInt("Funktion","srx_Modus",2);
mod_sxy= pApp->GetProfileInt("Funktion","sxy_Modus",1);
mod_syx= pApp->GetProfileInt("Funktion","syx_Modus",1);
mod_sgxy= pApp->GetProfileInt("Funktion","s'xy_Modus",3);
mod_sgyx= pApp->GetProfileInt("Funktion","s'yx_Modus",3);
mod_am= pApp->GetProfileInt("Funktion","am_Modus",1);
mod_sd= pApp->GetProfileInt("Funktion","sd_Modus",1);
mod_sgam= pApp->GetProfileInt("Funktion","s'am_Modus",2);
mod_sdg= pApp->GetProfileInt("Funktion","sd'_Modus",3);
mod_a3= pApp->GetProfileInt("Funktion","a3_Modus",1);
mod_ag3= pApp->GetProfileInt("Funktion","a3'_Modus",3);
mod_sga3= pApp->GetProfileInt("Funktion","s'a3_Modus",2);
mod_a4= pApp->GetProfileInt("Funktion","a4_Modus",1);
mod_ag4= pApp->GetProfileInt("Funktion","a4'_Modus",3);
mod_sga4= pApp->GetProfileInt("Funktion","s'a4_Modus",2);
mod_e= pApp->GetProfileInt("Funktion","e_Modus",2);
mod_x= pApp->GetProfileInt("Funktion","x_Modus",1);
mod_x0= pApp->GetProfileInt("Funktion","x0_Modus",1);
mod_x1= pApp->GetProfileInt("Funktion","x1_Modus",1);
mod_s0= pApp->GetProfileInt("Funktion","s0_Modus",1);
mod_s1= pApp->GetProfileInt("Funktion","s1_Modus",1);
r_q = pApp->GetProfileInt("Funktion","rxy_Theta_Darstellung",1);
ri_q = pApp->GetProfileInt("Funktion","ryx_Theta_Darstellung",1);
syx_q = pApp->GetProfileInt("Funktion","syx_Theta_Darstellung",1);
sxy_q = pApp->GetProfileInt("Funktion","sxy_Theta_Darstellung",1);
sgyx_q = pApp->GetProfileInt("Funktion","s'yx_Theta_Darstellung",1);
sgxy_q = pApp->GetProfileInt("Funktion","s'xy_Theta_Darstellung",1);
sr_q = pApp->GetProfileInt("Funktion","srxy_Theta_Darstellung",2);
sri_q = pApp->GetProfileInt("Funktion","sryx_Theta_Darstellung",2);
sR_q = pApp->GetProfileInt("Funktion","srx_Theta_Darstellung",0);
sRi_q = pApp->GetProfileInt("Funktion","sry_Theta_Darstellung",0);
am_q = pApp->GetProfileInt("Funktion","am_Theta_Darstellung",1);
sd_q = pApp->GetProfileInt("Funktion","sd_Theta_Darstellung",1);
sdg_q = pApp->GetProfileInt("Funktion","sd'_Theta_Darstellung",1);
sgam_q = pApp->GetProfileInt("Funktion","s'am_Theta_Darstellung",2);
a3_q = pApp->GetProfileInt("Funktion","a3_Theta_Darstellung",2);
ag3_q = pApp->GetProfileInt("Funktion","a3'_Theta_Darstellung",2);
sa3g_q = pApp->GetProfileInt("Funktion","s'a3_Theta_Darstellung",1);
a4_q = pApp->GetProfileInt("Funktion","a4_Theta_Darstellung",2);
ag4_q = pApp->GetProfileInt("Funktion","a4'_Theta_Darstellung",2);
sa4g_q = pApp->GetProfileInt("Funktion","s'a4_Theta_Darstellung",1);
e_q = pApp->GetProfileInt("Funktion","e_Theta_Darstellung",1);
x_q = pApp->GetProfileInt("Funktion","x_Theta_Darstellung",1);
x0_q = pApp->GetProfileInt("Funktion","x0_Theta_Darstellung",1);
x1_q = pApp->GetProfileInt("Funktion","x1_Theta_Darstellung",1);
s0_q = pApp->GetProfileInt("Funktion","s0_Theta_Darstellung",1);
s1_q = pApp->GetProfileInt("Funktion","s1_Theta_Darstellung",1);
sw_emf_in= pApp->GetProfileInt("EMF","öffnen",0);
tlg_x= atof(pApp->GetProfileString("Achsen","x_Skala_Teilung","2"));
tlg_y= atof(pApp->GetProfileString("Achsen","y_Skala_Teilung","2"));
fn_x_fon= pApp->GetProfileString("Schriftart","Funktion_x","Arial");
fn_y_fon= pApp->GetProfileString("Schriftart","Funktion_y","Arial");
fn_x_fb= pApp->GetProfileInt("Schriftart","Farbe_Funktion_x",8421504);
fn_y_fb= pApp->GetProfileInt("Schriftart","Farbe_Funktion_y",8421504);
fn_x_H= pApp->GetProfileInt("Schriftart","Höhe_Funktion_x",13);
fn_y_H= pApp->GetProfileInt("Schriftart","Höhe_Funktion_y",13);
fn_x_W= pApp->GetProfileInt("Schriftart","Breite_Funktion_x",4);
fn_y_W= pApp->GetProfileInt("Schriftart","Breite_Funktion_y",4);
Ax_fon= pApp->GetProfileString("Schriftart","Achsen_x","Arial");
Ay_fon= pApp->GetProfileString("Schriftart","Achsen_y","Arial");
Ax_fb= pApp->GetProfileInt("Schriftart","Farbe_Achsen_x",8421504);
Ay_fb= pApp->GetProfileInt("Schriftart","Farbe_Achsen_y",8421504);
Ax_H= pApp->GetProfileInt("Schriftart","Höhe_Achsen_x",13);
Ay_H= pApp->GetProfileInt("Schriftart","Höhe_Achsen_y",13);
Ax_W= pApp->GetProfileInt("Schriftart","Breite_Achsen_x",4);
Ay_W= pApp->GetProfileInt("Schriftart","Breite_Achsen_y",4);
V_fon= pApp->GetProfileString("Schriftart","Vektor","Arial");
V_fb= pApp->GetProfileInt("Schriftart","Farbe_Vektor",8421504);
V_H= pApp->GetProfileInt("Schriftart","Höhe_Vektor",13);
V_W= pApp->GetProfileInt("Schriftart","Breite_Vektor",4);
dynrnd= pApp->GetProfileInt("Programm","Dynamisch_rendern",0);
filestr= pApp->GetProfileInt("Programm","Filestream_rendern",0);
wnd_pos= pApp->GetProfileInt("Programm","Fensterposition_speichern",1);
log_= pApp->GetProfileInt("Programm","Logfile",0);
csr_= pApp->GetProfileInt("Programm","Cursor",1);
sw_splash= pApp->GetProfileInt("Programm","Splash",1);
sw_Fxy= pApp->GetProfileInt("Programm","Funktionsmatrixfenster",0);
sw_Theta= pApp->GetProfileInt("Programm","Thetafenster",0);
sw_Log= pApp->GetProfileInt("Programm","Logfenster",0);
sw_Log= pApp->GetProfileInt("Programm","Logfenster",0);
sw_status= pApp->GetProfileInt("Programm","Statusleiste",0);
sw_As= pApp->GetProfileInt("Programm","Achsen_Verschub",1);
sw_Vs= pApp->GetProfileInt("Programm","Vektoren_Verschub",1);
modus_= pApp->GetProfileInt("Programm","Startmodus",0);
pApp->WriteProfileInt("Achsen","x_Justierung",0);
pApp->WriteProfileInt("Achsen","y_Justierung",0);
// filename="GRP2.asc"; //
log_filename="~~tmp_Log_";
log_filename+=itoc(time(0));
log_filename+=".txt";
if (fopen (filename, "r") == 0) //autogenerierte funktionsmatrixdatei
{
FILE *f; filename="GRP2.asc";
f = fopen (filename, "w");
fprintf( f,"1\t6\n");
fprintf( f,"2\t3\n");
fprintf( f,"3\t8\n");
fprintf( f,"4\t2\n");
fprintf( f,"5\t6\n");
fprintf( f,"6\t3\n");
fprintf( f,"7\t9\n");
fprintf( f,"8\t4\n");
fprintf( f,"9\t2\n");
fprintf( f,"10\t9\n");
fclose( f );
}
sw_FK=0; sw_xy=1; mod_FnP=1; linB_FnP=2;// f(x) voreinstellung: keine kurve, xy punkte rund //
swli=1;
sw_integral=0;
qR=0;
sw_emf=0;
corx=0;
cory=0;
corx0=0;
cory0=0;
sc0x=0;//negativbereichskorrektur x
sc0y=0;//negativbereichskorrektur
csr_0=csr_;
sc_0=sc;
scy_0=scy;
sw_x_0=sw_x;
sw_y_0=sw_y;
sw_xm_0=sw_xm;
sw_ym_0=sw_ym;
sw_xA_0=sw_xA;
sw_yA_0=sw_yA;
sw_xV_0=sw_xV;
sw_yV_0=sw_yV;
sw_xS_0=sw_xS;
sw_yS_0=sw_yS;
tlg_x_0=tlg_x;
tlg_y_0=tlg_y;
sw_xSw_0=sw_xSw;
sw_ySw_0=sw_ySw;
sw_xK_0=sw_xK;
sw_yK_0=sw_yK;
sw_FK_0=sw_FK;
sw_xy_0=sw_xy;
ds_xk_0=ds_xk;
ds_yk_0=ds_yk;
ds_xSw_0=ds_xSw;
ds_ySw_0=ds_ySw;
ds_x_0=ds_x;
ds_y_0=ds_y;
fb_hg_0=fb_hg;
fb_K_0=fb_K;
fb_P_0=fb_P;
linB_Fn_0=linB_Fn;
linB_FnP_0=linB_FnP;
fn_x_fon_0=fn_x_fon;
fn_x_fb_0=fn_x_fb;
fn_x_H_0=fn_x_H;
fn_x_W_0=fn_x_W;
fn_y_fon_0=fn_y_fon;
fn_y_fb_0=fn_y_fb;
fn_y_H_0=fn_y_H;
fn_y_W_0=fn_y_W;
Ax_fon_0=Ax_fon;
Ax_fb_0=Ax_fb;
Ax_H_0=Ax_H;
Ax_W_0=Ax_W;
Ay_fon_0=Ay_fon;
Ay_fb_0=Ay_fb;
Ay_H_0=Ay_H;
Ay_W_0=Ay_W;
V_fon_0=V_fon;
V_fb_0=V_fb;
V_H_0=V_H;
V_W_0=V_W;
mod_Fn_0=mod_Fn;
mod_FnP_0=mod_FnP;
mod_Ax_0=mod_Ax;
mod_Ay_0=mod_Ay;
mod_Vx_0=mod_Vx;
mod_Vy_0=mod_Vy;
fb_Grdx_0=fb_Grdx;
fb_Grdy_0=fb_Grdy;
linB_Grdx_0=linB_Grdx;
linB_Grdy_0=linB_Grdy;
mod_Grdx_0=mod_Grdx;
mod_Grdy_0=mod_Grdy;
mod_ri_0=mod_ri;
mod_sr_0=mod_sr;
mod_sri_0=mod_sri;
mod_sR_0=mod_sR;
mod_sRi_0=mod_sRi;
mod_sxy_0=mod_sxy;
mod_syx_0=mod_syx;
mod_sgxy_0=mod_sgxy;
mod_sgyx_0=mod_sgyx;
mod_am_0=mod_am;
mod_sd_0=mod_sd;
mod_sgam_0=mod_sgam;
mod_sdg_0=mod_sdg;
mod_a3_0=mod_a3;
mod_ag3_0=mod_ag3;
mod_sga3_0=mod_sga3;
mod_a4_0=mod_a4;
mod_ag4_0=mod_ag4;
mod_sga4_0=mod_sga4;
mod_e_0=mod_e;
mod_x_0=mod_x;
mod_x0_0=mod_x0;
mod_x1_0=mod_x1;
mod_s0_0=mod_s0;
mod_s1_0=mod_s1;
linB_Ax_0=linB_Ax;
linB_Ay_0=linB_Ay;
linB_Vx_0=linB_Vx;
linB_Vy_0=linB_Vy;
linB_ri_0=linB_ri;
linB_sr_0=linB_sr;
linB_sri_0=linB_sri;
linB_sR_0=linB_sR;
linB_sRi_0=linB_sRi;
linB_sxy_0=linB_sxy;
linB_syx_0=linB_syx;
linB_sgxy_0=linB_sgxy;
linB_sgyx_0=linB_sgyx;
linB_am_0=linB_am;
linB_sd_0=linB_sd;
linB_sgam_0=linB_sgam;
linB_sdg_0=linB_sdg;
linB_a3_0=linB_a3;
linB_ag3_0=linB_ag3;
linB_sga3_0=linB_sga3;
linB_a4_0=linB_a4;
linB_ag4_0=linB_ag4;
linB_sga4_0=linB_sga4;
linB_e_0=linB_e;
linB_x_0=linB_x;
linB_x0_0=linB_x0;
linB_x1_0=linB_x1;
linB_s0_0=linB_s0;
linB_s1_0=linB_s1;
fb_Ax_0=fb_Ax;
fb_Ay_0=fb_Ay;
fb_Vx_0=fb_Vx;
fb_Vy_0=fb_Vy;
fb_r_0=fb_r;
fb_ri_0=fb_ri;
fb_sr_0=fb_sr;
fb_sri_0=fb_sri;
fb_sR_0=fb_sR;
fb_sRi_0=fb_sRi;
fb_sxy_0=fb_sxy;
fb_syx_0=fb_syx;
fb_sgxy_0=fb_sgxy;
fb_sgyx_0=fb_sgyx;
fb_am_0=fb_am;
fb_sd_0=fb_sd;
fb_sgam_0=fb_sgam;
fb_sdg_0=fb_sdg;
fb_a3_0=fb_a3;
fb_ag3_0=fb_ag3;
fb_sga3_0=fb_sga3;
fb_a4_0=fb_a4;
fb_ag4_0=fb_ag4;
fb_sga4_0=fb_sga4;
fb_e_0=fb_e;
fb_x_0=fb_x;
fb_x0_0=fb_x0;
fb_x1_0=fb_x1;
fb_s0_0=fb_s0;
fb_s1_0=fb_s1;
rxy_D_0=rxy_D;
rxy_0=rxy_;
ryx_0=ryx_;
sxy_0=sxy_;
syx_0=syx_;
s1xy_0=s1xy_;
s1yx_0=s1yx_;
srxy_0=srxy_;
sryx_0=sryx_;
srx_0=srx_;
sry_0=sry_;
CI_Pp_0=CI_Pp;
CI_Pr_0=CI_Pr;
CI_Pe_0=CI_Pe;
ci_ze_0=ci_ze=0;
a3_0 = a3_; //a3 linienschalter
a4_0 = a4_; //a4 linienschalter
ag3_0 = ag3_; //a'3 linienschalter
ag4_0 = ag4_; //a'4 linienschalter
am_0 = am_; //am linienschalter
sd_0 = sd_; //sd linienschalter
sdg_0 = sdg_; //sd' linienschalter
sga3_0 = sga3_; //s'a3 linienschalter
sga4_0 = sga4_; //s'a4 linienschalter
sgam_0 = sgam_; //s'am linienschalter
sw_pq_0=sw_pq;
sw_Grdx_0=sw_Grdx;
sw_Grdy_0=sw_Grdy;
posVx_0=posVx;
posVy_0=posVy;
posAXx_0=posAXx;
posAXy_0=posAXy;
posAYx_0=posAYx;
posAYy_0=posAYy;
posBXx_0=posBXx;
posBXy_0=posBXy;
posBYx_0=posBYx;
posBYy_0=posBYy;
posFXx_0=posFXx;
posFXy_0=posFXy;
posFYx_0=posFYx;
posFYy_0=posFYy;
posX_0=posX=0; //Diagramm x position
posY_0=posY=0; //Diagramm y position
frmX_0=frmX=1; //Diagramm x form
frmY_0=frmY=1; //Diagramm y form
r_q_0=r_q;
ri_q_0=ri_q;
syx_q_0=syx_q ;
sxy_q_0=sxy_q ;
sgyx_q_0=sgyx_q ;
sgxy_q_0=sgxy_q ;
sr_q_0=sr_q ;
sri_q_0=sri_q ;
sR_q_0=sR_q ;
sRi_q_0=sRi_q;
am_q_0=am_q ;
sd_q_0=sd_q ;
sdg_q_0=sdg_q ;
sgam_q_0=sgam_q ;
a3_q_0=a3_q ;
ag3_q_0=ag3_q ;
sa3g_q_0=sa3g_q ;
a4_q_0=a4_q ;
ag4_q_0=ag4_q ;
sa4g_q_0=sa4g_q ;
e_q_0=e_q;
x_q_0=x_q;
x0_q_0=x0_q;
x1_q_0=x1_q;
s0_q_0=s0_q;
s1_q_0=s1_q;
sw_xb_0=sw_xb;
sw_yb_0=sw_yb;
p_e_sw_0=p_e_sw;
p_p_sw_0=p_p_sw;
sw_v0=0; //vektorursprungspositionsschalter
xBz="";
xBz_0="";
yBz="";
yBz_0="";
SetTimer(0,50,0); //haupt ereignisse
SetTimer(1,300,0); //rerender ereignis
SetTimer(2,10,0); //rerender sizemarker switch ereignis
filename_= "~~tmp_.asc";
filename_z="~~tmp_z.asc";
filename_p="~~tmp_p.asc";
sw_mod_=1;//funktionsmodus
MINMAX();// theta0
sw_mkoord_A=1;mAx=min_x; mAy=min_y; // achsenposition allgemein
sw_mkoord_V=1;mVx=max_x; mVy=max_y; // vektorposition
mAx_0=mAx;
mAy_0=mAy;
mVx_0=mVx;
mVy_0=mVy;
fn_THETA_1(); // theta desc
if(fil!="")filename=fil; //cmdline (weitere argumente zu bearbeiten...)
Fenstertext(filename); //funktionsmatrixmodus start
if(sw_emf_in==1)Fenstertext(emf_filename); //emf start
filename_tmp=filename;
if(log_)log_file(1); //Funktionsmatrix log;
SetWindowPos(&wndTop, coord.left,coord.top, coord.right+8,coord.bottom+45, SWP_SHOWWINDOW); //hauptfenster position
ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
ASSERT(IDM_ABOUTBOX < 0xF000);
CMenu* pSysMenu = GetSystemMenu(0); //system menue
if (pSysMenu != NULL)
{
CString strAboutMenu;
strAboutMenu.LoadString(IDS_ABOUTBOX);
if (!strAboutMenu.IsEmpty())
{
pSysMenu->AppendMenu(MF_SEPARATOR);
pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
}
}
if(sw_emf_in!=1) //bei funktionsmatrixmodus start
{
CMenu o;
o.LoadMenu(IDR_MENU1);
o.CheckMenuItem(ID_MODUS_FX, MF_CHECKED);
if(sw_csr==2)o.CheckMenuItem(ID_EINSTELLUNGEN_CURSOR_SCHWARZ, MF_CHECKED);
if(sw_csr==1)o.CheckMenuItem(ID_EINSTELLUNGEN_CURSOR_WEISS, MF_CHECKED);
if(sw_As==1) o.CheckMenuItem(ID_EINSTELLUNGEN_CURSOR_ACHSENVERSCHUB, MF_CHECKED);
if(sw_Vs==1) o.CheckMenuItem(ID_EINSTELLUNGEN_CURSOR_VEKTORENVERSCHUB, MF_CHECKED);
if(sw_status)o.CheckMenuItem(ID_ANSICHT_STATUSLEISTE, MF_CHECKED);
SetMenu( &o); //haupt menue
}
SetIcon(m_hIcon, 1);SetIcon(m_hIcon, 0);
if(sw_splash){GRP2splash sp; sp.DoModal();}//splash
if(sw_emf_in!=1) //bei funktionsmatrixmodus start
{
if(sw_Log){sw_Log=0;OnAnsichtGrp2log(0);} //Log Ansicht (dazu menu modifikation dort)
if(sw_Fxy){sw_Fxy=0;OnAnsichtFunktionsmatrixfxy(0);} //Fxy Ansicht (dazu menu modifikation dort)
if(sw_Theta)//Theta Ansicht (dazu menu modifikation dort)
{
sw_Theta=0;OnAnsichtThetafensterq(0);
//if(sw_Fxy)m_ThetaDlg.SetWindowPos(&wndTop, coord.left+30,coord.top+70, 0,0, SWP_NOSIZE); //Thetafensterposition 0
}
//Startmodus
//if(0)OnModusFx(); //automatisch
if(modus_==5){sw_mod_=0;OnModusFzx();}
if(modus_==2){sw_mod_=0;OnModusRxy();}
if(modus_==3){sw_mod_=0;OnModusFp();}
if(modus_==4){sw_mod_=0;OnModusEpsilon();}
}
if(sw_emf_in==1) //bei emf modus start
{
CMenu o;
o.LoadMenu(IDR_MENU2);
SetMenu(&o);//emf menue
}
return 1;
}
void CGRP2Dlg::OnSysCommand(UINT nID, LPARAM lParam)
{
if ((nID & 0xFFF0) == IDM_ABOUTBOX)
{
m_InfoDlg.DestroyWindow();
m_InfoDlg.Create(IDD_ABOUTBOX );
m_InfoDlg.ShowWindow(SW_SHOW);
m_InfoDlg.BringWindowToTop();
}
else{CDialog::OnSysCommand(nID, lParam);}
}
void CGRP2Dlg::OnPaint()
{
CPaintDC ooo(this);
if(sw_emf==1) { GRP_Diagramm();sw_emf=0;} //emf erstellen
if(sw_emf_in==1) // emf darstellen
{