-
Notifications
You must be signed in to change notification settings - Fork 10
/
frmMain.frm
1795 lines (1659 loc) · 83 KB
/
frmMain.frm
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
VERSION 5.00
Object = "{945E8FCC-830E-45CC-AF00-A012D5AE7451}#15.3#0"; "DOCKIN~1.OCX"
Object = "{BD0C1912-66C3-49CC-8B12-7B347BF6C846}#15.3#0"; "SkinFramework.ocx"
Begin VB.Form frmMain
BackColor = &H00302D2D&
BorderStyle = 0 'None
Caption = "拖控件大法"
ClientHeight = 7905
ClientLeft = 0
ClientTop = 0
ClientWidth = 16845
FillColor = &H00FFFFFF&
BeginProperty Font
Name = "Microsoft YaHei UI"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Icon = "frmMain.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 7905
ScaleWidth = 16845
StartUpPosition = 2 'CenterScreen
Begin VB.Timer tmrCheckProcess
Enabled = 0 'False
Interval = 50
Left = 13440
Top = 7320
End
Begin DragControlsIDE.DarkMenu DarkMenu
Align = 1 'Align Top
Height = 345
Left = 0
TabIndex = 3
Top = 495
Width = 16845
_ExtentX = 29713
_ExtentY = 609
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Microsoft YaHei UI"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
MENU_ITEM_COUNT = 70
LEVELS_COUNT = 70
LEVELS_2 = 1
LEVELS_3 = 1
LEVELS_4 = 1
LEVELS_5 = 1
LEVELS_6 = 1
LEVELS_7 = 1
LEVELS_9 = 1
LEVELS_10 = 1
LEVELS_11 = 1
LEVELS_12 = 1
LEVELS_13 = 1
LEVELS_14 = 1
LEVELS_15 = 1
LEVELS_16 = 1
LEVELS_17 = 1
LEVELS_18 = 1
LEVELS_19 = 1
LEVELS_20 = 1
LEVELS_21 = 1
LEVELS_22 = 1
LEVELS_23 = 1
LEVELS_24 = 1
LEVELS_25 = 1
LEVELS_26 = 1
LEVELS_27 = 1
LEVELS_29 = 1
LEVELS_30 = 1
LEVELS_31 = 1
LEVELS_32 = 1
LEVELS_33 = 1
LEVELS_34 = 1
LEVELS_36 = 1
LEVELS_37 = 1
LEVELS_39 = 1
LEVELS_40 = 2
LEVELS_41 = 2
LEVELS_42 = 2
LEVELS_43 = 2
LEVELS_44 = 2
LEVELS_45 = 2
LEVELS_46 = 2
LEVELS_47 = 2
LEVELS_48 = 2
LEVELS_49 = 2
LEVELS_50 = 2
LEVELS_51 = 2
LEVELS_52 = 2
LEVELS_53 = 1
LEVELS_54 = 1
LEVELS_55 = 1
LEVELS_56 = 1
LEVELS_57 = 1
LEVELS_58 = 1
LEVELS_59 = 1
LEVELS_60 = 1
LEVELS_62 = 1
LEVELS_63 = 1
LEVELS_64 = 1
LEVELS_65 = 1
LEVELS_66 = 1
LEVELS_68 = 1
LEVELS_69 = 1
LEVELS_70 = 1
MenuID_1 = 0
MenuText_1 = "文件"
MenuVisible_1 = -1 'True
MenuIcon_1 = "frmMain.frx":1BCC2
SUBMENU_ITEM_COUNT_1= 6
SubMenuID_1_0 = 0
SubMenuText_1_1 = "新建项目 (&N) Ctrl+N"
SubMenuID_1_1 = 2
SubMenuText_1_2 = "加载项目 (&O) Ctrl+O"
SubMenuID_1_2 = 3
SubMenuText_1_3 = "保存 (&S) Ctrl+S"
SubMenuID_1_3 = 4
SubMenuText_1_4 = "另存为 (&A) Ctrl+Shift+S"
SubMenuID_1_4 = 5
SubMenuText_1_5 = "-"
SubMenuID_1_5 = 6
SubMenuText_1_6 = "退出 (&E)"
SubMenuID_1_6 = 7
MenuID_2 = 1
MenuText_2 = "新建项目 (&N) Ctrl+N"
MenuVisible_2 = -1 'True
MenuIcon_2 = "frmMain.frx":1BCE2
SubMenuID_2_0 = 0
MenuID_3 = 2
MenuText_3 = "加载项目 (&O) Ctrl+O"
MenuVisible_3 = -1 'True
MenuIcon_3 = "frmMain.frx":1BE11
SubMenuID_3_0 = 0
MenuID_4 = 3
MenuText_4 = "保存 (&S) Ctrl+S"
MenuVisible_4 = -1 'True
MenuIcon_4 = "frmMain.frx":1BFFB
SubMenuID_4_0 = 0
MenuID_5 = 4
MenuText_5 = "另存为 (&A) Ctrl+Shift+S"
MenuVisible_5 = -1 'True
MenuIcon_5 = "frmMain.frx":1C109
SubMenuID_5_0 = 0
MenuID_6 = 5
MenuText_6 = "-"
MenuVisible_6 = -1 'True
MenuIcon_6 = "frmMain.frx":1C2C8
SubMenuID_6_0 = 0
MenuID_7 = 6
MenuText_7 = "退出 (&E)"
MenuVisible_7 = -1 'True
MenuIcon_7 = "frmMain.frx":1C2E8
SubMenuID_7_0 = 0
MenuID_8 = 7
MenuText_8 = "编辑"
MenuVisible_8 = -1 'True
MenuIcon_8 = "frmMain.frx":1C308
SUBMENU_ITEM_COUNT_8= 19
SubMenuID_8_0 = 0
SubMenuText_8_1 = "撤销 (&U) Ctrl+Z"
SubMenuID_8_1 = 9
SubMenuText_8_2 = "重复 (&R) Ctrl+Y"
SubMenuID_8_2 = 10
SubMenuText_8_3 = "-"
SubMenuID_8_3 = 11
SubMenuText_8_4 = "剪切 (&U) Ctrl+X"
SubMenuID_8_4 = 12
SubMenuText_8_5 = "复制 (&C) Ctrl+C"
SubMenuID_8_5 = 13
SubMenuText_8_6 = "粘贴 (&P) Ctrl+V"
SubMenuID_8_6 = 14
SubMenuText_8_7 = "全选 (&S) Ctrl+A"
SubMenuID_8_7 = 15
SubMenuText_8_8 = "删除行 (&D) Ctrl+L"
SubMenuID_8_8 = 16
SubMenuText_8_9 = "-"
SubMenuID_8_9 = 17
SubMenuText_8_10= "查找 (&F) Ctrl+F"
SubMenuID_8_10 = 18
SubMenuText_8_11= "替换 (&E) Ctrl+H"
SubMenuID_8_11 = 19
SubMenuText_8_12= "-"
SubMenuID_8_12 = 20
SubMenuText_8_13= "向外缩进 (&I) Tab"
SubMenuID_8_13 = 21
SubMenuText_8_14= "向内缩进 (&O) Shift+Tab"
SubMenuID_8_14 = 22
SubMenuText_8_15= "-"
SubMenuID_8_15 = 23
SubMenuText_8_16= "添加/移除断点 (&B) F9"
SubMenuID_8_16 = 24
SubMenuText_8_17= "清除所有断点 (&M)"
SubMenuID_8_17 = 25
SubMenuText_8_18= "-"
SubMenuID_8_18 = 26
SubMenuText_8_19= "跳转到行 (&J) Ctrl+G"
SubMenuID_8_19 = 27
MenuID_9 = 8
MenuText_9 = "撤销 (&U) Ctrl+Z"
MenuVisible_9 = -1 'True
MenuIcon_9 = "frmMain.frx":1C328
SubMenuID_9_0 = 0
MenuID_10 = 9
MenuText_10 = "重复 (&R) Ctrl+Y"
MenuVisible_10 = -1 'True
MenuIcon_10 = "frmMain.frx":1C4F9
SubMenuID_10_0 = 0
MenuID_11 = 10
MenuText_11 = "-"
MenuVisible_11 = -1 'True
MenuIcon_11 = "frmMain.frx":1C708
SubMenuID_11_0 = 0
MenuID_12 = 11
MenuText_12 = "剪切 (&U) Ctrl+X"
MenuVisible_12 = -1 'True
MenuIcon_12 = "frmMain.frx":1C728
SubMenuID_12_0 = 0
MenuID_13 = 12
MenuText_13 = "复制 (&C) Ctrl+C"
MenuVisible_13 = -1 'True
MenuIcon_13 = "frmMain.frx":1C888
SubMenuID_13_0 = 0
MenuID_14 = 13
MenuText_14 = "粘贴 (&P) Ctrl+V"
MenuVisible_14 = -1 'True
MenuIcon_14 = "frmMain.frx":1C9E3
SubMenuID_14_0 = 0
MenuID_15 = 14
MenuText_15 = "全选 (&S) Ctrl+A"
MenuVisible_15 = -1 'True
MenuIcon_15 = "frmMain.frx":1CB3B
SubMenuID_15_0 = 0
MenuID_16 = 15
MenuText_16 = "删除行 (&D) Ctrl+L"
MenuVisible_16 = -1 'True
MenuIcon_16 = "frmMain.frx":1CC3A
SubMenuID_16_0 = 0
MenuID_17 = 16
MenuText_17 = "-"
MenuVisible_17 = -1 'True
MenuIcon_17 = "frmMain.frx":1CC5A
SubMenuID_17_0 = 0
MenuID_18 = 17
MenuText_18 = "查找 (&F) Ctrl+F"
MenuVisible_18 = -1 'True
MenuIcon_18 = "frmMain.frx":1CC7A
SubMenuID_18_0 = 0
MenuID_19 = 18
MenuText_19 = "替换 (&E) Ctrl+H"
MenuVisible_19 = -1 'True
MenuIcon_19 = "frmMain.frx":1CD8D
SubMenuID_19_0 = 0
MenuID_20 = 19
MenuText_20 = "-"
MenuVisible_20 = -1 'True
MenuIcon_20 = "frmMain.frx":1CEF1
SubMenuID_20_0 = 0
MenuID_21 = 20
MenuText_21 = "向外缩进 (&I) Tab"
MenuVisible_21 = -1 'True
MenuIcon_21 = "frmMain.frx":1CF11
SubMenuID_21_0 = 0
MenuID_22 = 21
MenuText_22 = "向内缩进 (&O) Shift+Tab"
MenuVisible_22 = -1 'True
MenuIcon_22 = "frmMain.frx":1D268
SubMenuID_22_0 = 0
MenuID_23 = 22
MenuText_23 = "-"
MenuVisible_23 = -1 'True
MenuIcon_23 = "frmMain.frx":1D5BF
SubMenuID_23_0 = 0
MenuID_24 = 23
MenuText_24 = "添加/移除断点 (&B) F9"
MenuVisible_24 = -1 'True
MenuIcon_24 = "frmMain.frx":1D5DF
SubMenuID_24_0 = 0
MenuID_25 = 24
MenuText_25 = "清除所有断点 (&M)"
MenuVisible_25 = -1 'True
MenuIcon_25 = "frmMain.frx":1D5FF
SubMenuID_25_0 = 0
MenuID_26 = 25
MenuText_26 = "-"
MenuVisible_26 = -1 'True
MenuIcon_26 = "frmMain.frx":1D61F
SubMenuID_26_0 = 0
MenuID_27 = 26
MenuText_27 = "跳转到行 (&J) Ctrl+G"
MenuVisible_27 = -1 'True
MenuIcon_27 = "frmMain.frx":1D63F
SubMenuID_27_0 = 0
MenuID_28 = 27
MenuText_28 = "视图"
MenuVisible_28 = -1 'True
MenuIcon_28 = "frmMain.frx":1D65F
SUBMENU_ITEM_COUNT_28= 6
SubMenuID_28_0 = 0
SubMenuText_28_1= "工具栏 (&T)"
SubMenuID_28_1 = 29
SubMenuText_28_2= "控件箱 (&C)"
SubMenuID_28_2 = 30
SubMenuText_28_3= "属性 (&P) F4"
SubMenuID_28_3 = 31
SubMenuText_28_4= "工程资源管理器 (&M)"
SubMenuID_28_4 = 32
SubMenuText_28_5= "错误列表 (&E) Ctrl+E"
SubMenuID_28_5 = 33
SubMenuText_28_6= "输出 (&O) Ctrl+Alt+O"
SubMenuID_28_6 = 34
MenuID_29 = 28
MenuText_29 = "工具栏 (&T)"
MenuCheckBox_29 = -1 'True
MenuVisible_29 = -1 'True
MenuIcon_29 = "frmMain.frx":1D67F
SubMenuID_29_0 = 0
MenuID_30 = 29
MenuText_30 = "控件箱 (&C)"
MenuCheckBox_30 = -1 'True
MenuVisible_30 = -1 'True
MenuIcon_30 = "frmMain.frx":1D744
SubMenuID_30_0 = 0
MenuID_31 = 30
MenuText_31 = "属性 (&P) F4"
MenuCheckBox_31 = -1 'True
MenuVisible_31 = -1 'True
MenuIcon_31 = "frmMain.frx":1D7F7
SubMenuID_31_0 = 0
MenuID_32 = 31
MenuText_32 = "工程资源管理器 (&M)"
MenuCheckBox_32 = -1 'True
MenuVisible_32 = -1 'True
MenuIcon_32 = "frmMain.frx":1D983
SubMenuID_32_0 = 0
MenuID_33 = 32
MenuText_33 = "错误列表 (&E) Ctrl+E"
MenuCheckBox_33 = -1 'True
MenuVisible_33 = -1 'True
MenuIcon_33 = "frmMain.frx":1D9A3
SubMenuID_33_0 = 0
MenuID_34 = 33
MenuText_34 = "输出 (&O) Ctrl+Alt+O"
MenuCheckBox_34 = -1 'True
MenuVisible_34 = -1 'True
MenuIcon_34 = "frmMain.frx":1DB51
SubMenuID_34_0 = 0
MenuID_35 = 34
MenuText_35 = "生成"
MenuVisible_35 = -1 'True
MenuIcon_35 = "frmMain.frx":1DCB9
SUBMENU_ITEM_COUNT_35= 2
SubMenuID_35_0 = 0
SubMenuText_35_1= "生成代码文件 (&C)"
SubMenuID_35_1 = 36
SubMenuText_35_2= "生成可执行文件 (&E) Ctrl+F5"
SubMenuID_35_2 = 37
MenuID_36 = 35
MenuText_36 = "生成代码文件 (&C)"
MenuVisible_36 = -1 'True
MenuIcon_36 = "frmMain.frx":1DCD9
SubMenuID_36_0 = 0
MenuID_37 = 36
MenuText_37 = "生成可执行文件 (&E) Ctrl+F5"
MenuVisible_37 = -1 'True
MenuIcon_37 = "frmMain.frx":1DEE9
SubMenuID_37_0 = 0
MenuID_38 = 37
MenuText_38 = "调试"
MenuVisible_38 = -1 'True
MenuIcon_38 = "frmMain.frx":1DF09
SUBMENU_ITEM_COUNT_38= 9
SubMenuID_38_0 = 0
SubMenuText_38_1= "窗口"
SubMenuID_38_1 = 39
SubMenuText_38_2= "运行 (&R) F5"
SubMenuID_38_2 = 53
SubMenuText_38_3= "中断 (&B) Ctrl+Alt+Break"
SubMenuID_38_3 = 54
SubMenuText_38_4= "停止 (&E) Shift+F5"
SubMenuID_38_4 = 55
SubMenuText_38_5= "重新运行 (&S) Ctrl+Shift+F5"
SubMenuID_38_5 = 56
SubMenuText_38_6= "-"
SubMenuID_38_6 = 57
SubMenuText_38_7= "逐语句执行 F11"
SubMenuID_38_7 = 58
SubMenuText_38_8= "逐过程执行 F10"
SubMenuID_38_8 = 59
SubMenuText_38_9= "执行到返回 Shift+F11"
SubMenuID_38_9 = 60
MenuID_39 = 38
MenuText_39 = "窗口"
MenuVisible_39 = -1 'True
MenuIcon_39 = "frmMain.frx":1DF29
SUBMENU_ITEM_COUNT_39= 13
SubMenuID_39_0 = 0
SubMenuText_39_1= "断点列表 (&B) Ctrl+Alt+B"
SubMenuID_39_1 = 40
SubMenuText_39_2= "-"
SubMenuID_39_2 = 41
SubMenuText_39_3= "监视窗口 (&W) Ctrl+Alt+W"
SubMenuID_39_3 = 42
SubMenuText_39_4= "本地 (&L) Ctrl+Alt+L"
SubMenuID_39_4 = 43
SubMenuText_39_5= "立即窗口 (&I) Ctrl+Alt+I"
SubMenuID_39_5 = 44
SubMenuText_39_6= "-"
SubMenuID_39_6 = 45
SubMenuText_39_7= "调用堆栈 (&C) Ctrl+Alt+C"
SubMenuID_39_7 = 46
SubMenuText_39_8= "线程 (&T) Ctrl+Alt+T"
SubMenuID_39_8 = 47
SubMenuText_39_9= "模块 (&M) Ctrl+Alt+M"
SubMenuID_39_9 = 48
SubMenuText_39_10= "-"
SubMenuID_39_10 = 49
SubMenuText_39_11= "内存 (&E) Ctrl+Alt+E"
SubMenuID_39_11 = 50
SubMenuText_39_12= "寄存器 (&R) Ctrl+Alt+R"
SubMenuID_39_12 = 51
SubMenuText_39_13= "反汇编 (&D) Ctrl+Alt+D"
SubMenuID_39_13 = 52
MenuID_40 = 39
MenuText_40 = "断点列表 (&B) Ctrl+Alt+B"
MenuCheckBox_40 = -1 'True
MenuVisible_40 = -1 'True
MenuIcon_40 = "frmMain.frx":1DF49
SubMenuID_40_0 = 0
MenuID_41 = 40
MenuText_41 = "-"
MenuVisible_41 = -1 'True
MenuIcon_41 = "frmMain.frx":1E050
SubMenuID_41_0 = 0
MenuID_42 = 41
MenuText_42 = "监视窗口 (&W) Ctrl+Alt+W"
MenuCheckBox_42 = -1 'True
MenuVisible_42 = -1 'True
MenuIcon_42 = "frmMain.frx":1E070
SubMenuID_42_0 = 0
MenuID_43 = 42
MenuText_43 = "本地 (&L) Ctrl+Alt+L"
MenuCheckBox_43 = -1 'True
MenuVisible_43 = -1 'True
MenuIcon_43 = "frmMain.frx":1E1A7
SubMenuID_43_0 = 0
MenuID_44 = 43
MenuText_44 = "立即窗口 (&I) Ctrl+Alt+I"
MenuCheckBox_44 = -1 'True
MenuVisible_44 = -1 'True
MenuIcon_44 = "frmMain.frx":1E1C7
SubMenuID_44_0 = 0
MenuID_45 = 44
MenuText_45 = "-"
MenuVisible_45 = -1 'True
MenuIcon_45 = "frmMain.frx":1E1E7
SubMenuID_45_0 = 0
MenuID_46 = 45
MenuText_46 = "调用堆栈 (&C) Ctrl+Alt+C"
MenuCheckBox_46 = -1 'True
MenuVisible_46 = -1 'True
MenuIcon_46 = "frmMain.frx":1E207
SubMenuID_46_0 = 0
MenuID_47 = 46
MenuText_47 = "线程 (&T) Ctrl+Alt+T"
MenuCheckBox_47 = -1 'True
MenuVisible_47 = -1 'True
MenuIcon_47 = "frmMain.frx":1E227
SubMenuID_47_0 = 0
MenuID_48 = 47
MenuText_48 = "模块 (&M) Ctrl+Alt+M"
MenuCheckBox_48 = -1 'True
MenuVisible_48 = -1 'True
MenuIcon_48 = "frmMain.frx":1E4A0
SubMenuID_48_0 = 0
MenuID_49 = 48
MenuText_49 = "-"
MenuVisible_49 = -1 'True
MenuIcon_49 = "frmMain.frx":1E564
SubMenuID_49_0 = 0
MenuID_50 = 49
MenuText_50 = "内存 (&E) Ctrl+Alt+E"
MenuCheckBox_50 = -1 'True
MenuVisible_50 = -1 'True
MenuIcon_50 = "frmMain.frx":1E584
SubMenuID_50_0 = 0
MenuID_51 = 50
MenuText_51 = "寄存器 (&R) Ctrl+Alt+R"
MenuCheckBox_51 = -1 'True
MenuVisible_51 = -1 'True
MenuIcon_51 = "frmMain.frx":1E667
SubMenuID_51_0 = 0
MenuID_52 = 51
MenuText_52 = "反汇编 (&D) Ctrl+Alt+D"
MenuCheckBox_52 = -1 'True
MenuVisible_52 = -1 'True
MenuIcon_52 = "frmMain.frx":1E687
SubMenuID_52_0 = 0
MenuID_53 = 52
MenuText_53 = "运行 (&R) F5"
MenuVisible_53 = -1 'True
MenuIcon_53 = "frmMain.frx":1E73D
SubMenuID_53_0 = 0
MenuID_54 = 53
MenuText_54 = "中断 (&B) Ctrl+Alt+Break"
MenuVisible_54 = -1 'True
MenuIcon_54 = "frmMain.frx":1E9C2
SubMenuID_54_0 = 0
MenuID_55 = 54
MenuText_55 = "停止 (&E) Shift+F5"
MenuVisible_55 = -1 'True
MenuIcon_55 = "frmMain.frx":1EA79
SubMenuID_55_0 = 0
MenuID_56 = 55
MenuText_56 = "重新运行 (&S) Ctrl+Shift+F5"
MenuVisible_56 = -1 'True
MenuIcon_56 = "frmMain.frx":1EB51
SubMenuID_56_0 = 0
MenuID_57 = 56
MenuText_57 = "-"
MenuVisible_57 = -1 'True
MenuIcon_57 = "frmMain.frx":1EB71
SubMenuID_57_0 = 0
MenuID_58 = 57
MenuText_58 = "逐语句执行 F11"
MenuVisible_58 = -1 'True
MenuIcon_58 = "frmMain.frx":1EB91
SubMenuID_58_0 = 0
MenuID_59 = 58
MenuText_59 = "逐过程执行 F10"
MenuVisible_59 = -1 'True
MenuIcon_59 = "frmMain.frx":1EBB1
SubMenuID_59_0 = 0
MenuID_60 = 59
MenuText_60 = "执行到返回 Shift+F11"
MenuVisible_60 = -1 'True
MenuIcon_60 = "frmMain.frx":1EBD1
SubMenuID_60_0 = 0
MenuID_61 = 60
MenuText_61 = "工具"
MenuVisible_61 = -1 'True
MenuIcon_61 = "frmMain.frx":1EBF1
SUBMENU_ITEM_COUNT_61= 5
SubMenuID_61_0 = 0
SubMenuText_61_1= "窗口工具 (&W)"
SubMenuID_61_1 = 62
SubMenuText_61_2= "消息拦截 (&M)"
SubMenuID_61_2 = 63
SubMenuText_61_3= "进程 (&P)"
SubMenuID_61_3 = 64
SubMenuText_61_4= "-"
SubMenuID_61_4 = 65
SubMenuText_61_5= "设置 (&O)"
SubMenuID_61_5 = 66
MenuID_62 = 61
MenuText_62 = "窗口工具 (&W)"
MenuVisible_62 = -1 'True
MenuIcon_62 = "frmMain.frx":1EC11
SubMenuID_62_0 = 0
MenuID_63 = 62
MenuText_63 = "消息拦截 (&M)"
MenuVisible_63 = -1 'True
MenuIcon_63 = "frmMain.frx":1ECF5
SubMenuID_63_0 = 0
MenuID_64 = 63
MenuText_64 = "进程 (&P)"
MenuVisible_64 = -1 'True
MenuIcon_64 = "frmMain.frx":1EDC9
SubMenuID_64_0 = 0
MenuID_65 = 64
MenuText_65 = "-"
MenuVisible_65 = -1 'True
MenuIcon_65 = "frmMain.frx":1F042
SubMenuID_65_0 = 0
MenuID_66 = 65
MenuText_66 = "设置 (&O)"
MenuVisible_66 = -1 'True
MenuIcon_66 = "frmMain.frx":1F062
SubMenuID_66_0 = 0
MenuID_67 = 66
MenuText_67 = "帮助"
MenuVisible_67 = -1 'True
MenuIcon_67 = "frmMain.frx":1F263
SUBMENU_ITEM_COUNT_67= 3
SubMenuID_67_0 = 0
SubMenuText_67_1= "帮助文档 (&D) F1"
SubMenuID_67_1 = 68
SubMenuText_67_2= "示例程序 (&E)"
SubMenuID_67_2 = 69
SubMenuText_67_3= "关于拖控件大法 (&A) Ctrl+F1"
SubMenuID_67_3 = 70
MenuID_68 = 67
MenuText_68 = "帮助文档 (&D) F1"
MenuVisible_68 = -1 'True
MenuIcon_68 = "frmMain.frx":1F283
SubMenuID_68_0 = 0
MenuID_69 = 68
MenuText_69 = "示例程序 (&E)"
MenuVisible_69 = -1 'True
MenuIcon_69 = "frmMain.frx":1F373
SubMenuID_69_0 = 0
MenuID_70 = 69
MenuText_70 = "关于拖控件大法 (&A) Ctrl+F1"
MenuVisible_70 = -1 'True
MenuIcon_70 = "frmMain.frx":1F54E
SubMenuID_70_0 = 0
End
Begin VB.PictureBox picToolBar
Appearance = 0 'Flat
BackColor = &H00302D2D&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 375
Left = 0
ScaleHeight = 375
ScaleWidth = 16845
TabIndex = 2
Top = 804
Width = 16845
End
Begin VB.PictureBox picClientArea
Appearance = 0 'Flat
BackColor = &H00302D2D&
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 5040
Left = 0
ScaleHeight = 5040
ScaleWidth = 16845
TabIndex = 0
Top = 1200
Width = 16845
Begin VB.PictureBox picWindowClientArea
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 2055
Left = 8880
ScaleHeight = 2055
ScaleWidth = 5655
TabIndex = 4
Top = 720
Visible = 0 'False
Width = 5655
Begin DragControlsIDE.TabBar TabBar
Height = 3615
Left = 600
TabIndex = 5
Top = 480
Visible = 0 'False
Width = 8175
_ExtentX = 14420
_ExtentY = 6376
End
End
End
Begin DragControlsIDE.DarkWindowBorder DarkWindowBorderSizer
Left = 16200
Top = 7200
_ExtentX = 847
_ExtentY = 847
Thickness = 3
MinWidth = 400
MinHeight = 100
Transparency = 1
UseSetParent = 0 'False
End
Begin DragControlsIDE.DarkWindowBorder DarkWindowBorder
Left = 15600
Top = 7200
_ExtentX = 847
_ExtentY = 847
MinWidth = 400
MinHeight = 100
End
Begin DragControlsIDE.DarkTitleBar DarkTitleBar
Align = 1 'Align Top
Height = 495
Left = 0
TabIndex = 1
Top = 0
Width = 16845
_ExtentX = 29713
_ExtentY = 873
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Microsoft YaHei UI"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Caption = "拖控件大法"
MaxButtonVisible= 0 'False
MinButtonVisible= 0 'False
BindCaption = -1 'True
Picture = "frmMain.frx":1FC6C
End
Begin XtremeSkinFramework.SkinFramework SkinFramework
Left = 14160
Top = 7320
_Version = 983043
_ExtentX = 635
_ExtentY = 635
_StockProps = 0
End
Begin XtremeDockingPane.DockingPane DockingPane
Left = 14880
Top = 7320
_Version = 983043
_ExtentX = 635
_ExtentY = 635
_StockProps = 0
VisualTheme = 10
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'====================================================
'描述: 主窗口
'作者: 冰棍, Error 404
'文件: frmMain.frm
'====================================================
Option Explicit
'获取窗口最大、最小化状态
Private Declare Function GetWindowPlacement Lib "user32" (ByVal hwnd As Long, lpwndpl As WINDOWPLACEMENT) As Long
'创建进程
Private Declare Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (ByVal lpApplicationName As Long, ByVal lpCommandLine As String, _
lpProcessAttributes As SECURITY_ATTRIBUTES, lpThreadAttributes As SECURITY_ATTRIBUTES, ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, _
ByVal lpEnvironment As Long, ByVal lpCurrentDirectory As Long, lpStartupInfo As STARTUPINFO, lpProcessInformation As PROCESS_INFORMATION) As Long
'中断指定的进程
Private Declare Function DebugBreakProcess Lib "kernel32" (ByVal hProcess As Long) As Long
'工程类型
'值 描述
'0 未创建工程,处于启动界面
'1 窗口程序
'2 控制台程序
'3 空白C++程序
Public ProjectType As Integer
'当前调试状态
'值 描述
'0 设计状态
'1 运行中
'2 中断
Public CurrState As Byte
Public WindowObj As Object '窗口自身
Dim NewCreateWindow As frmCreateOptions '“新建项目”窗体
Public GdbPipe As clsPipe 'gdb调试管道
Attribute GdbPipe.VB_VarHelpID = -1
'描述: 在目标进程退出之后进行收尾工作
'参数: ExitCode: 程序的退出码
Private Sub ProcessExitedHandler(ExitCode As Long)
Dim i As Long
Me.tmrCheckProcess.Enabled = False '停止计时器
CurrState = 0 '更新调试状态
For i = 0 To UBound(CurrentProject.Files) '把所有文件的中断行清掉
CurrentProject.Files(i).TargetWindow.BreakLine = -1
Call CurrentProject.Files(i).TargetWindow.RedrawBreakpoints
Next i
frmOutput.OutputLog Lang_Main_Debug_Returned & ExitCode & "(0x" & Hex(ExitCode) & ")"
GdbPipe.DosInput "q" & vbCrLf '关闭管道
Call ClearDebugWindows(True) '清空所有调试窗口的信息
'调整菜单项
Call AdjustRuntimeMenu
End Sub
'描述: 用代码窗口显示指定的文件
'参数: FileIndex: 可选的。指定文件在CurrentProject.Files里的序号; 如果不指定这个参数,就要指定FileName参数
'. FileName: 可选的。文件名; 如果不指定这个参数,就要指定FileIndex参数
'返回值: 如果文件成功显示,则返回对应的代码窗口; 否则返回Nothing
'注意: 两个参数只能指定其中一个。如果同时都指定,则按照FileIndex来执行
Public Function ShowCodeWindow(Optional FileIndex As Long = -1, Optional FileName As String = "") As frmCodeWindow
On Error Resume Next
Dim NewCodeWindow As frmCodeWindow
Dim FileData As String
Dim tmpData As String
Set ShowCodeWindow = Nothing
'检查是否提供了FileIndex参数
If FileIndex <> -1 Then
With CurrentProject.Files(FileIndex)
'如果没有对应的代码窗口就创建一个新的,有的话就切换过去
If .TargetWindow Is Nothing Then
Set NewCodeWindow = CreateNewCodeWindow(FileIndex) '创建新的代码窗体并设置绑定的文件序号
NewCodeWindow.Caption = GetFileName(.FilePath)
Err.Clear
Open .FilePath For Input As #1 '尝试打开对应的代码文件
If Err.Number <> 0 Then
Close #1
Exit Function
Else
Do While Not EOF(1)
Line Input #1, tmpData
FileData = FileData & tmpData & vbCrLf
Loop
End If
Close #1
NewCodeWindow.SyntaxEdit.Text = FileData
Me.TabBar.AddForm NewCodeWindow
Else
Me.TabBar.SwitchToByForm .TargetWindow
End If
Set ShowCodeWindow = .TargetWindow
End With
Exit Function
End If
'检查是否提供了FileName参数
If FileName <> "" Then
Dim i As Long
'查找该文件对应的代码文件
For i = 0 To UBound(CurrentProject.Files)
With CurrentProject.Files(i)
If .FilePath = FileName Then
If .TargetWindow Is Nothing Then '该代码文件没有已打开的代码窗口
Set NewCodeWindow = CreateNewCodeWindow(i) '创建新的代码窗体并设置绑定的文件序号
NewCodeWindow.Caption = GetFileName(.FilePath)
Err.Clear
Open .FilePath For Input As #1 '尝试打开对应的代码文件
If Err.Number <> 0 Then
Close #1
Exit Function
Else
Do While Not EOF(1)
Line Input #1, tmpData
FileData = FileData & tmpData & vbCrLf
Loop
End If
Close #1
NewCodeWindow.SyntaxEdit.Text = FileData
Me.TabBar.AddForm NewCodeWindow
Else
Me.TabBar.SwitchToByForm .TargetWindow
End If
Set ShowCodeWindow = .TargetWindow
Exit Function
End If
End With
Next i
End If
End Function
'描述: 根据不同的运行状态调整菜单状态
Private Sub AdjustRuntimeMenu()
'0: 设计模式; 1: 运行中; 2: 中断
Select Case CurrState
Case 0 '设计模式
Me.DarkMenu.MenuEnabled(52) = True '运行
Me.DarkMenu.MenuText(52) = Lang_Main_Run_Menu_Start
Me.DarkMenu.MenuEnabled(53) = False '中断
Me.DarkMenu.MenuEnabled(54) = False '停止
Me.DarkMenu.MenuEnabled(55) = False '重新运行
Me.DarkMenu.MenuEnabled(57) = False '逐语句
Me.DarkMenu.MenuEnabled(58) = False '逐过程
Me.DarkMenu.MenuEnabled(59) = False '执行到返回
Case 1 '运行中
Me.DarkMenu.MenuEnabled(52) = False
Me.DarkMenu.MenuText(52) = Lang_Main_Run_Menu_Continue
Me.DarkMenu.MenuEnabled(53) = True
Me.DarkMenu.MenuEnabled(54) = True
Me.DarkMenu.MenuEnabled(55) = True
Me.DarkMenu.MenuEnabled(57) = False
Me.DarkMenu.MenuEnabled(58) = False
Me.DarkMenu.MenuEnabled(59) = False
Case 2 '中断
Me.DarkMenu.MenuEnabled(52) = True
Me.DarkMenu.MenuText(52) = Lang_Main_Run_Menu_Continue
Me.DarkMenu.MenuEnabled(53) = False
Me.DarkMenu.MenuEnabled(54) = True
Me.DarkMenu.MenuEnabled(55) = True
Me.DarkMenu.MenuEnabled(57) = True
Me.DarkMenu.MenuEnabled(58) = True
Me.DarkMenu.MenuEnabled(59) = True
End Select
End Sub
'描述: 清空所有调试窗口里面的信息
'参数: ClearBreakpoints: 可选的。指定是否清空断点列表里面的地址。通常在调试期间不需要清空断点列表,在调试完成后才需要
Private Sub ClearDebugWindows(Optional ClearBreakpoints As Boolean = False)
If ClearBreakpoints Then '断点
Call frmBreakpoints.ClearEverything
End If
Call frmLocals.ClearEverything '本地
Call frmCallStack.ClearEverything '调用堆栈
Call frmModules.ClearEverything '模块
Call frmThreads.ClearEverything '线程
End Sub
'描述: 在所有窗口显示调试信息
Private Sub GetDebugInfo()
Call frmModules.GetModules '获取模块
Call frmThreads.GetThreads '获取线程
Call frmLocals.GetLocals '获取本地变量
Call frmCallStack.GetCallStack '获取调用堆栈
End Sub
'描述: 检查当前是否有未保存的文件
'返回值: 如果有未保存的文件,则返回True
Private Function IsSaveRequired() As Boolean
'On Error Resume Next 'todo
IsSaveRequired = False
If CurrentProject.Changed Then '工程文件需要保存
IsSaveRequired = True
Else '有任意一个代码文件需要保存
Dim i As Long
For i = 0 To UBound(CurrentProject.Files)
If CurrentProject.Files(i).Changed Then
IsSaveRequired = True
Exit For
End If
Next i
End If
End Function
'描述: “加载项目”菜单
Private Sub mnuOpen_Click()
'ToDo
NoSkinMsgBox ShowOpen(Me.hwnd, "Dilidi - Open", "洗屁屁文件(*.cpp)" & vbNullChar & "*.cpp")
End Sub
'描述: “保存”菜单
'返回值: 1=保存成功; 2=保存失败; 3=取消; 4=不保存
Private Function mnuSave_Click() As Integer
Dim i As Long
frmSaveBox.InitFileIndexMap '初始化序号映射表
If CurrentProject.Changed Then '当前工程文件被更改
frmSaveBox.AddFileIndexMap -1
End If
For i = 0 To UBound(CurrentProject.Files) '检查还没有保存的文件
If CurrentProject.Files(i).Changed Then '检查到还没有保存的文件
frmSaveBox.AddFileIndexMap i
End If
Next i
If frmSaveBox.lstFiles.ListCount = 0 Then '如果没有文件需要保存
Exit Function
End If
For i = 0 To frmSaveBox.lstFiles.ListCount - 1 '勾选所有文件
frmSaveBox.lstFiles.Selected(i) = True
Next i
frmSaveBox.bSaveFlag = 0 '初始化保存结果
frmSaveBox.bBlock = True '阻塞代码执行
Me.Enabled = False
frmSaveBox.Show
SetWindowPos frmSaveBox.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE Or SWP_NOMOVE '让保存对话框置顶
Do '等待保存对话框关闭
Sleep 50
DoEvents
Loop Until Not frmSaveBox.bBlock
mnuSave_Click = frmSaveBox.bSaveFlag '返回保存结果