-
Notifications
You must be signed in to change notification settings - Fork 3
/
WinASM.inc
2361 lines (1937 loc) · 65 KB
/
WinASM.inc
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
Include user32.inc
Include kernel32.inc
Include shell32.inc
Include gdi32.inc
Include comctl32.inc
Include comdlg32.inc
Include ole32.inc
Include version.inc
Include shlwapi.inc
;-------------------------------------------------------------------
;Needed For Debug Window Only
IFDEF DEBUG_BUILD
Include masm32.inc
Include debug.inc
ENDIF
;-------------------------------------------------------------------
IncludeLib USER32.LIB
IncludeLib KERNEL32.LIB
IncludeLib SHELL32.LIB
IncludeLib GDI32.LIB
IncludeLib COMCTL32.LIB
IncludeLib COMDLG32.LIB
IncludeLib OLE32.LIB
IncludeLib VERSION.LIB
IncludeLib shlwapi.lib
;-------------------------------------------------------------------
;Needed For Debug Window Only
IFDEF DEBUG_BUILD
IncludeLib masm32.lib
IncludeLib debug.lib
ENDIF
;-------------------------------------------------------------------
;Include htmlhelp.inc
IncludeLib ADVAPI32.LIB ; required by htmlhelp
;IncludeLib htmlhelp.lib
Include .\Inc\WAAddIn.inc
IDR_ACCELERATOR EQU 100
IDMS_FILE EQU 100
IDMS_NEWPROJECT EQU 101
IDMS_OPENPROJECT EQU 102
IDMS_CLOSEPROJECT EQU 103
IDMS_SAVEPROJECT EQU 104
IDMS_SAVEPROJECTAS EQU 105
IDMS_NEWFILE EQU 106
IDMS_NEWASMFILE EQU 107
IDMS_NEWINCFILE EQU 108
IDMS_NEWRCFILE EQU 109
IDMS_NEWOTHERFILE EQU 110
IDMS_OPENFILES EQU 111
IDMS_SAVEFILE EQU 112
IDMS_SAVEFILEAS EQU 123
IDMS_PRINT EQU 114
IDMS_RECENTPROJECTSMANAGER EQU 115
IDMS_EXIT EQU 116
IDMS_EDIT EQU 200
IDMS_UNDO EQU 201
IDMS_REDO EQU 202
IDMS_CUT EQU 203
IDMS_COPY EQU 204
IDMS_PASTE EQU 205
IDMS_DELETE EQU 206
IDMS_SELECTALL EQU 207
IDMS_FIND EQU 208
IDMS_FINDNEXT EQU 209
IDMS_FINDPREVIOUS EQU 210
IDMS_SMARTFIND EQU 211
IDMS_REPLACE EQU 212
IDMS_GOTOLINE EQU 213
IDMS_GOTOBLOCK EQU 214
IDMS_GOBACK EQU 215
IDMS_TOGGLEBOOKMARK EQU 216
IDMS_NEXTBOOKMARK EQU 217
IDMS_PREVIOUSBOOKMARK EQU 218
IDMS_CLEARALLBOOKMARKS EQU 219
IDMS_HIDELINES EQU 220
IDMS_VIEW EQU 300
IDMS_VIEWEXPLORER EQU 301
IDMS_VIEWOUTPUT EQU 302
IDMS_VIEWTOOLBOX EQU 303
IDMS_VIEWDIALOG EQU 304
IDMS_PROJECT EQU 400
IDMS_ADDNEWASM EQU 401
IDMS_ADDNEWINC EQU 402
IDMS_ADDNEWRC EQU 403
IDMS_ADDNEWOTHER EQU 404
IDMS_ADDFILES EQU 405
IDMS_MODULE EQU 406
IDMS_RENAMEFILE EQU 407
IDMS_REMOVEFILE EQU 408
IDMS_RUNBATCHFILE EQU 409
IDMS_VISUALMODE EQU 410
IDMS_USEEXTERNALEDITOR EQU 411
IDMS_PROPERTIES EQU 412
IDMS_BINARYFILES EQU 413
IDMS_RENAMEPROJECT EQU 414
IDMS_FORMAT EQU 500
IDMS_INDENT EQU 501
IDMS_OUTDENT EQU 502
IDMS_COMMENT EQU 503
IDMS_UNCOMMENT EQU 504
IDMS_CONVERT EQU 505
IDMS_TOUPPERCASE EQU 506
IDMS_TOLOWERCASE EQU 507
IDMS_TOGGLECASE EQU 508
IDMS_RESOUCES EQU 600
IDMS_DIALOG EQU 601
IDMS_SHOWHIDEGRID EQU 603
IDMS_SNAPTOGRID EQU 604
IDMS_CONTROLSMANAGER EQU 605
IDMS_STYLEMITEM EQU 606
IDMS_EXSTYLEMITEM EQU 607
IDMS_FONTMITEM EQU 608
IDMS_SENDTOBACK EQU 609
IDMS_BRINGTOFRONT EQU 610
IDMS_TESTDIALOG EQU 611
IDMS_DEFINITIONS EQU 602
IDMS_MAKE EQU 700
IDMS_SETACTIVEBUILD EQU 701
IDMS_RELEASEVERSION EQU 702
IDMS_DEBUGVERSION EQU 703
IDMS_CLEAN EQU 704
IDMS_COMPILERCMITEM EQU 705
IDMS_RCTOOBJMITEM EQU 706
IDMS_ASSEMBLEMITEM EQU 707
IDMS_LINKMITEM EQU 708
IDMS_GOALL EQU 709
IDMS_EXECUTE EQU 710
IDMS_DEBUG EQU 711
IDMS_TOOLS EQU 800
IDMS_CODEEDITORFONT EQU 801
IDMS_LINENUMBERFONT EQU 802
IDMS_OPTIONS EQU 803
IDMS_TOOLSMANAGER EQU 804
IDMS_INTERFACEPACKS EQU 805
IDMS_ADDINS EQU 900
IDMS_ADDINSMANAGER EQU 901
IDMS_WINDOW EQU 1000
IDMS_CLOSE EQU 1001
IDMS_HIDEALL EQU 1002
IDMS_NEXT EQU 1003
IDMS_PREVIOUS EQU 1004
IDMS_TILEHORIZONTALLY EQU 1005
IDMS_TILEVERTICALLY EQU 1006
IDMS_CASCADE EQU 1007
IDMS_HELP EQU 1100
IDMS_WINASMSTUDIOHELP EQU 1101
IDMS_OTHERHELP EQU 1102
IDMS_ONTHEWEB EQU 1103
IDMS_ABOUT EQU 1104
IDMS_RESTORE EQU 1501
IDMS_GRADIENT EQU 1502
IDMS_DOUBLELINE EQU 1503
IDMS_SINGLELINE EQU 1504
IDMS_COPYSELECTION EQU 1505
IDMS_COPYALLTEXT EQU 1506
IDMS_SAVEOUTTEXT EQU 1507
IDTS_GRIDSIZE EQU 1603
IDTS_ALIGNLEFTS EQU 1604
IDTS_ALIGNCENTERS EQU 1605
IDTS_ALIGNCENTERSWITHDIALOGCENTER EQU 1606
IDTS_ALIGNRIGHTS EQU 1607
IDTS_ALIGNTOPS EQU 1608
IDTS_ALIGNMIDDLES EQU 1609
IDTS_ALIGNMIDDLESWITHDIALOGMIDDLE EQU 1610
IDTS_ALIGNBOTTOMS EQU 1611
IDTS_MAKESAMEWIDTH EQU 1612
IDTS_MAKESAMEHEIGHT EQU 1613
IDTS_MAKESAMESIZE EQU 1614
IDTS_POINTER EQU 1615
IDTS_ADDNEWDIALOG EQU 1641
IDTS_NEWMENU EQU 1642
IDTS_INCFILES EQU 1643
IDTS_ADDACCELERATORTABLE EQU 1644
IDTS_ADDVERSIONINFO EQU 1645
IDTS_STRINGTABLE EQU 1646
IDTS_RESOURCES EQU 1647
IDTS_REMOVE EQU 1648
IDTCS_BLOCKS EQU 1651
IDTCS_PROJECT EQU 1652
IDTCS_DIALOGS EQU 1653
IDTCS_OTHERS EQU 1654
IDTVS_MENUS EQU 1661
IDTVS_ACCELERATORTABLES EQU 1662
IDTVS_VERSIONINFO EQU 1663
IDTVS_ASMFILES EQU 1664
IDTVS_MODULES EQU 1665
IDTVS_INCLUDEFILES EQU 1666
IDTVS_RESOURCEFILES EQU 1667
IDTVS_TEXTFILES EQU 1668
IDTVS_BATCHFILES EQU 1669
IDTVS_DEFINITIONFILES EQU 1670
IDTVS_OTHERFILES EQU 1671
IDLBS_EDITORBACKCOLOR EQU 1672
IDLBS_NORMALTEXTCOLOR EQU 1673
IDLBS_SELECTIONBACKCOLOR EQU 1674
IDLBS_SELECTEDTEXTCOLOR EQU 1675
IDLBS_COMMENTCOLOR EQU 1676
IDLBS_STRINGCOLOR EQU 1677
IDLBS_OPERATORCOLOR EQU 1678
IDLBS_ERROREDLINEBACKCOLOR EQU 1679
IDLBS_NOERRORSLINEBACKCOLOR EQU 1680
IDLBS_TABINDICATORSCOLOR EQU 1681
IDLBS_SELECTIONBARCOLOR EQU 1682
IDLBS_DIVIDERLINECOLOR EQU 1683
IDLBS_LINENUMBERSCOLOR EQU 1684
IDLBS_NUMBERCOLOR EQU 1685
IDLBS_TOOLTIPSBACKCOLOR EQU 1686
IDLBS_PROJECTTREEBACKCOLOR EQU 1687
IDLBS_PROJECTTREETEXTCOLOR EQU 1688
IDLBS_PROJECTTREELINECOLOR EQU 1689
IDLBS_RCEDITORBACKCOLOR EQU 1690
IDCBS_DEFAULT EQU 1691
IDCBS_UPPERCASE EQU 1692
IDCBS_LOWERCASE EQU 1693
IDLBS_TOOLTIPSACTIVEPARAMCOLOR EQU 1694
IDPS_NAME EQU 1701
IDPS_ID EQU 1702
IDPS_LEFT EQU 1703
IDPS_TOP EQU 1704
IDPS_WIDTH EQU 1705
IDPS_HEIGHT EQU 1706
IDPS_STYLE EQU 1707
IDPS_EXSTYLE EQU 1708
IDPS_VISIBLEPROPERTY EQU 1709
IDPS_CAPTION EQU 1710
IDPS_TEXT EQU 1711
IDPS_IMAGE EQU 1712
IDPS_MENU EQU 1713
IDPS_CLASS EQU 1714
IDPS_FONT EQU 1715
IDTCS_PROJECTTYPE EQU 1721
IDTCS_RESOURCEMAKEOPTIONS EQU 1722
IDTCS_RELEASEMAKEOPTIONS EQU 1723
IDTCS_DEBUGMAKEOPTIONS EQU 1724
IDTCS_GENERAL EQU 1731
IDTCS_FILESANDPATHS EQU 1732
IDTCS_EDITOR EQU 1733
IDTCS_INTELLISENSE EQU 1734
IDTCS_KEYWORDS EQU 1735
IDTCS_COLORS EQU 1736
IDTCS_MISCELLANEOUS EQU 1737
IDPTS_STANDARDEXE EQU 1751
IDPTS_STANDARDDLL EQU 1752
IDPTS_CONSOLEAPPLICATION EQU 1753
IDPTS_STATICLIBRARY EQU 1754
IDPTS_OTHEREXE EQU 1755
IDPTS_OTHERNOTEXE EQU 1756
IDPTS_DOSPROJECT EQU 1757
IDGS_YES EQU 1801
IDGS_NO EQU 1802
IDGS_TRUE EQU 1803
IDGS_FALSE EQU 1804
IDTT_NEWPROJECT EQU 2001
IDTT_OPENPROJECT EQU 2002
IDTT_OPENFILES EQU 2003
IDTT_ADDFILES EQU 2004
IDTT_SAVEFILE EQU 2005
IDTT_SAVEPROJECT EQU 2006
IDTT_CUT EQU 2007
IDTT_COPY EQU 2008
IDTT_PASTE EQU 2009
IDTT_UNDO EQU 2010
IDTT_REDO EQU 2011
IDTT_SHOWHIDEEXPLORER EQU 2012
IDTT_VISUALMODE EQU 2013
IDTT_FIND EQU 2014
IDTT_REPLACE EQU 2015
IDTT_INCREASEINDENT EQU 2016
IDTT_DECREASEINDENT EQU 2017
IDTT_COMMENTBLOCK EQU 2018
IDTT_UNCOMMENTBLOCK EQU 2019
IDTT_TOGGLEBOOKMARK EQU 2020
IDTT_NEXTBOOKMARK EQU 2021
IDTT_PREVIOUSBOOKMARK EQU 2022
IDTT_CLEARALLBOOKMARKS EQU 2023
IDTT_ASSEMBLE EQU 2024
IDTT_LINK EQU 2025
IDTT_GOALL EQU 2026
IDTT_EXECUTE EQU 2027
IDTT_STOP EQU 2028
IDDW_EXPLORER EQU 2100
IDDW_OUTPUT EQU 2101
IDDW_DIALOG EQU 2102
IDDW_TOOLBOX EQU 2103
IDAD_KEY EQU 2151
IDSD_STRING EQU 2152
IDRP_PROJECTS EQU 2153
IDAS_FILE EQU 2154
IDAM_AVAILABLEADDINS EQU 2155
IDAM_LOADSTATUS EQU 2156
IDAM_LOADONSTARTUP EQU 2157
IDDT_OPENPROJECT EQU 2201
IDDT_SAVEPROJECTAS EQU 2202
IDDT_OPENFILES EQU 2203
IDDT_ADDFILES EQU 2204
IDDT_SAVEFILEAS EQU 2205
IDDT_RENAMEFILE EQU 2206
IDDT_PRINT EQU 2207
IDDT_NEWPROJECT EQU 2208
IDDT_BROWSE EQU 2209
IDDT_BROWSEFORPATH EQU 2210
IDDT_WINDOWSTYLES EQU 2211
IDDT_WINDOWEXSTYLES EQU 2212
IDDT_RENAMEPROJECT EQU 2213
IDGS_SELECTPROCEDUREORGOTOTOP EQU 2251
IDSBS_SAVING EQU 3001
IDSBS_COMPILINGRESOURCES EQU 3002
IDSBS_CONVERTINGRESTOOBJ EQU 3003
IDSBS_ASSEMBLINGPROJECT EQU 3004
IDSBS_LINKING EQU 3005
IDSBS_LNCOLSEL EQU 3006
IDSBS_SEARCHING EQU 3007
IDSBS_REPLACING EQU 3008
IDSBS_LOADINGRESOURCES EQU 3009
IDSBS_LOADINGPROJECT EQU 3010
IDSBS_CREATINGPROJECT EQU 3011
IDMSG_LINE EQU 4501
IDMSG_ISADIRECTORY EQU 4502
IDMSG_ISALREADYDEFINEDAS EQU 4503
IDMSG_DOYOUWANTTOCHANGEIT EQU 4504
IDMSG_THELEVELOFMENUITEM EQU 4505
IDMSG_ISNOTCORRECT EQU 4506
IDMSG_EXECUTIONERROR EQU 4507
IDMSG_ERRORLOADINGFILE EQU 4508
IDMSG_SURETOREMOVEFILEFROMPROJECT EQU 5001
IDMSG_SURETOREMOVEMENU EQU 5002
IDMSG_CONTROLUSED EQU 5003
IDMSG_SURETODELETECONTROL EQU 5004
IDMSG_FILEMODIFIED EQU 5005
IDMSG_ASKTOSAVEFILECHANGES EQU 5006
IDMSG_SURETOREMOVEACCELERATORTABLE EQU 5007
IDMSG_SURETOREMOVEVERSIONINFO EQU 5008
IDMSG_SURETOREMOVESTRINGTABLE EQU 5009
IDMSG_FRIENDLYNAMEREQUIRED EQU 5010
IDMSG_CLASSNAMEREQUIRED EQU 5011
IDMSG_CLASSALREADYUSED EQU 5012
IDMSG_NOTWAPROJECTFILE EQU 5013
IDMSG_PROJECTWASNOTSAVED EQU 5014
IDMSG_SURETODELETETHISDIALOG EQU 5015
IDSBS_SEARCHFINISHED EQU 5016
IDMSG_CREATEPIPEERROR EQU 5017
IDMSG_CREATEPROCESSERROR EQU 5018
;IDMSG_NOASMERROR EQU 5019
IDMSG_MAKEFINSHED EQU 5020
IDMSG_MAKEERROR EQU 5021
IDMSG_CANNOTSAVEFILE EQU 5022
IDMSG_TRIGGERALREADYUSED EQU 5023
IDMSG_LINENOTCOMPATIBLE EQU 10001
IDMSG_CODEHINOTFOUND EQU 10002
IDFS_OPENPROJECT EQU 12001
IDFS_CHOOSEDLL EQU 12002
IDFS_CHOOSEEXECUTABLE EQU 12003
IDFS_CHOOSEKEYFILE EQU 12004
IDFS_CHOOSEAPIFILE EQU 12005
IDFS_CHOOSEHELPFILE EQU 12006
IDFS_CHOOSEALLFILES EQU 12007
IDFS_CHOOSEBINARYFILE EQU 12008
IDFS_ADDOPENSAVEFILES EQU 15001
IDFS_CHOOSERESOURCE EQU 15002
AUTOCOMPLETEWITHSPACE EQU 1
AUTOCOMPLETEWITHTAB EQU 2
AUTOCOMPLETEWITHENTER EQU 4
IDM_TOOLBOX_DIALOG EQU 11101
IDM_TOOLBOX_POINTER EQU 11102
IDM_TOOLBOX_STATIC EQU 11103
IDM_TOOLBOX_EDIT EQU 11104
IDM_TOOLBOX_GROUPBOX EQU 11105
IDM_TOOLBOX_BUTTON EQU 11106
IDM_TOOLBOX_CHECKBOX EQU 11107
IDM_TOOLBOX_RADIOBUTTON EQU 11108
IDM_TOOLBOX_COMBOBOX EQU 11109
IDM_TOOLBOX_LISTBOX EQU 11110
IDM_TOOLBOX_HSCROLL EQU 11111
IDM_TOOLBOX_VSCROLL EQU 11112
IDM_TOOLBOX_TABCONTROL EQU 11113
IDM_TOOLBOX_TOOLBAR EQU 11114
IDM_TOOLBOX_STATUSBAR EQU 11115
IDM_TOOLBOX_PROGRESSBAR EQU 11116
;IDM_TOOLBOX_HEADER EQU 11117
IDM_TOOLBOX_REBAR EQU 11117
IDM_TOOLBOX_UPDOWN EQU 11118
IDM_TOOLBOX_TREEVIEW EQU 11119
IDM_TOOLBOX_LISTVIEW EQU 11120
IDM_TOOLBOX_SLIDER EQU 11121
IDM_TOOLBOX_SHAPE EQU 11122
IDM_TOOLBOX_IMAGE EQU 11123
IDM_TOOLBOX_RICHEDIT EQU 11124
IDM_TOOLBOX_USERDEFINEDCONTROL EQU 11125
;IDM_RCPROPERTIES_VISUAL EQU 11201
;IDM_RCPROPERTIES_VIEWCODE EQU 11202
IDM_RCPROPERTIES_MENUS EQU 11203
IDM_RCPROPERTIES_INCLUDES EQU 11204
;IDM_RCPROPERTIES_DEFINES EQU 11205
IDM_RCPROPERTIES_ACCELERATORS EQU 11206
IDM_RCPROPERTIES_VERSIONINFO EQU 11207
IDM_RCPROPERTIES_STRINGTABLE EQU 11208
IDM_RCPROPERTIES_RESOURCES EQU 11209
IDM_RCPROPERTIES_REMOVE EQU 11210
;IDM_DIALOG_SHOWHIDEGRID EQU 11301
;IDM_DIALOG_SNAPTOGRID EQU 11302
;
IDM_DIALOG_GRIDSIZE EQU 11303
;IDM_DIALOG_GRIDSIZE_1 EQU 11401 ;Too small
IDM_DIALOG_GRIDSIZE_2 EQU 11402
IDM_DIALOG_GRIDSIZE_3 EQU 11403
IDM_DIALOG_GRIDSIZE_4 EQU 11404
IDM_DIALOG_GRIDSIZE_5 EQU 11405
IDM_DIALOG_GRIDSIZE_6 EQU 11406
IDM_DIALOG_GRIDSIZE_7 EQU 11407
IDM_DIALOG_GRIDSIZE_8 EQU 11408
IDM_DIALOG_GRIDSIZE_9 EQU 11409
IDM_DIALOG_GRIDSIZE_10 EQU 11410
IDM_DIALOG_ALIGNLEFTS EQU 11308
IDM_DIALOG_ALIGNCENTERS EQU 11309
IDM_DIALOG_ALIGNWITHDIALOGCENTER EQU 11310
IDM_DIALOG_ALIGNRIGHTS EQU 11311
IDM_DIALOG_ALIGNTOPS EQU 11312
IDM_DIALOG_ALIGNMIDDLES EQU 11313
IDM_DIALOG_ALIGNWITHDIALOGMIDDLE EQU 11314
IDM_DIALOG_ALIGNBOTTOMS EQU 11315
IDM_DIALOG_MAKESAMEWIDTH EQU 11316
IDM_DIALOG_MAKESAMEHEIGHT EQU 11317
IDM_DIALOG_MAKESAMESIZE EQU 11318
IDM_VIEW_TOOLBOX EQU 10203
IDM_VIEW_DIALOG EQU 10205
SELBARWIDTH EQU 12
WM_SHELLNOTIFY EQU WM_USER+5
IDI_TRAY EQU 0
;--------------------------------------------------------------------------------
IDB_TOOLBARBITMAP EQU 103
IDB_MASKBITMAP EQU 104
IDB_DISABLEDBITMAP EQU 110
IDR_ACCELERATOR EQU 100
IDB_PROJECTTREELIST EQU 4006
IDB_NEWPROJECTLIST EQU 4007
IDB_LISTPROCEDURESLIST EQU 4008
IDD_SPLASHABOUT EQU 200
IDC_OK EQU 1
IDD_GOTOLINE EQU 203
;IDC_OK EQU 1
IDC_TEXTLINENR EQU 1005
IDC_GO EQU 1006
IDD_PROJECTPROPERTIES EQU 206
IDC_NEWPROJECTLIST EQU 3
IDC_TABCONTROL EQU 4
IDC_TEXTRC EQU 11
IDC_TEXTCVTRES EQU 12
IDC_TEXTML EQU 13
IDC_TEXTLINK EQU 14
IDC_TEXTOUT EQU 20
IDC_LABELRC EQU 15
IDC_LABELCVTRES EQU 16
IDC_LABELML EQU 17
IDC_LABELLINK EQU 18
IDC_LABELOUT EQU 19
IDC_GROUPLINK EQU 21
IDD_OPTIONS EQU 207
IDC_LSTCATEGORIES EQU 72
IDC_LSTKEYWORDS EQU 74
IDC_LSTRECYCLED EQU 76
IDC_CHKBOLD EQU 82
IDC_CHKITALIC EQU 83
IDC_BUTTONAPPLY EQU 84
IDD_FINDDLG EQU 208
IDC_FINDTEXT EQU 2001
IDC_BTN_REPLACE EQU 2007
IDC_REPLACETEXT EQU 2002
IDC_REPLACESTATIC EQU 2009
IDC_BTN_REPLACEALL EQU 2008
IDC_CHK_WHOLEWORD EQU 2004
IDC_CHK_MATCHCASE EQU 2003
IDC_CHK_CURRENTPROJECT EQU 2011
IDC_RBN_DOWN EQU 2005
IDC_RBN_UP EQU 2006
IDC_RBN_UPDOWN EQU 2010
IDD_ADDINSMANAGER EQU 4200
IDC_LSTALLADDINS EQU 4201
IDD_TOOLTIPDLG EQU 209
;IDB_PROCBUTTON EQU 107
IDI_MAINICON EQU 1001
IDI_EDITICON EQU 1002
IDI_INCICON EQU 1003
IDI_RCICON EQU 1004
IDI_DEFICON EQU 1005
IDI_TXTICON EQU 1006
IDI_OTHERICON EQU 1007
IDI_BATICON EQU 1008
CHILDWINDOWPLACEMENT STRUCT
rcPosAndSize RECT <?>
Joker DWORD ? ;0-based
dwState DWORD ? ;maximized, minimized, normal
dwLine DWORD ?
CHILDWINDOWPLACEMENT ENDS
POSANDSIZE STRUCT
dLeft DD ?
dTop DD ?
dWidth DD ?
dHeight DD ?
POSANDSIZE ENDS
DOCKDATA STRUCT
lpCaption DWORD ?
fDockedTo DWORD ? ;1=left,2=right,3=top,4=bottom,5=NoDock
NoDock POSANDSIZE <?>
DockTopHeight DWORD ?
DockBottomHeight DWORD ?
DockLeftWidth DWORD ?
DockRightWidth DWORD ?
fState DWORD ? ;1=Close Button Pressed
;2=User Sizing
;3=User Docking/Undocking
fDockTo DWORD ? ;1=left,2=right,3=top,4=bottom,5=NoDock
FocusRect RECT <?>
MousePos POINT <?>
DOCKDATA ENDS
;Structure for storing data unique to each child window
CHILDWINDOWDATA STRUCT
hEditor DWORD ?
hCombo DWORD ?
hTreeItem DWORD ?
dwTypeOfFile DWORD ?
szFileName DB MAX_PATH DUP(?)
nLastLine DWORD ?
dwFileNumber DWORD ?
fNotOnDisk DWORD ? ;This is 1 for new files not saved on any media
FileTime FILETIME <?>
fTimer DWORD ?
bSelection DWORD ? ;In NewEditorProc it is set if there is selection
;In ChildWndProc if it is set, fTimer is set so that
;in TimerUpdateProcedures the Procedure List is updated
CHILDWINDOWDATA ENDS
;CodeHi Structures
CHFONT STRUCT
hFont DD ? ;CodeHi Normal Font
hIFont DD ? ;CodeHi Italic Font
hLnrFont DD ? ;Line numbers
CHFONT ENDS
BD_NONESTING EQU 1 ;Set to true for non nested blocks
BD_DIVIDERLINE EQU 2 ;Draws a divider line
BD_INCLUDELAST EQU 4 ;lpszEnd line is also collapsed
BD_LOOKAHEAD EQU 8 ;Look 500 lines ahead for the ending
CHBLOCKDEF STRUCT
lpszStart DD ? ;Block start
lpszEnd DD ? ;Block end
lpszNot1 DD ? ;Dont hide line containing this or set to NULL
lpszNot2 DD ? ;Dont hide line containing this or set to NULL
flag DD ? ;
CHBLOCKDEF ENDS
CHCOLOR STRUCT
bckcol DD ? ;Back color
txtcol DD ? ;Text color
selbckcol DD ? ;Sel back color
seltxtcol DD ? ;Sel text color
cmntcol DD ? ;Comment color
strcol DD ? ;String color
oprcol DD ? ;Operator color
hicol1 DD ? ;Line hilite 1
hicol2 DD ? ;Line hilite 2
hicol3 DD ? ;Line hilite 3 ;Tab Indicators
selbarbck DD ? ;Selection bar
selbarpen DD ? ;Selection bar pen
lnrcol DD ? ;Line numbers color
numcol dd ? ;Numbers & hex color
tltbckcol DD ? ;Tooltip back color
TltActParamCol DD ? ;Tooltip active parameter color
TreeBackCol DD ?
TreeTextCol DD ?
TreeLineCol DD ?
RCBackCol DD ? ;Resource Editor BackColor
CHCOLOR ENDS
SCHEME STRUCT
SchemeName DB 64 DUP(?)
Color CHCOLOR <?>
SCHEME ENDS
LINE struct
rpChars dd ? ;Relative pointer to CHARS
LINE ends
CHARS struct
len dd ? ;String len
max dd ? ;Max size
state dd ? ;Line state
bmid dd ? ;Bookmark ID
CHARS ends
RABRUSH struct
hBrBck dd ? ;Back color brush
hBrSelBck dd ? ;Sel back color brush
hBrHilite1 dd ? ;Line hilite 1
hBrHilite2 dd ? ;Line hilite 2
hBrHilite3 dd ? ;Line hilite 3
hBrSelBar dd ? ;Selection bar
hPenSelbar dd ? ;Selection bar pen
RABRUSH ends
RAEDT struct
hwnd dd ? ;Handle of edit a or b
hvscroll dd ? ;Handle of scroll bar
cpxmax dd ? ;Last cursor pos x
cpy dd ? ;Scroll position
cp dd ? ;Character position
rc RECT <?> ;Edit a or b rect
topyp dd ? ;First visible lines Y position
topln dd ? ;First visible lines linenumber
topcp dd ? ;First visible lines character position
RAEDT ends
RAFONTINFO struct
charset dd ? ;Character set
fDBCS dd ? ;Use double byte characters
fntwt dd ? ;Font width
fntht dd ? ;Font height
spcwt dd ? ;Space width
tabwt dd ? ;Tab width
italic dd ? ;Height shift
monospace dd ? ;Font is monospaced
linespace dd ? ;Extra line spacing
RAFONTINFO ends
RACOLOR struct
bckcol dd ? ;Back color
txtcol dd ? ;Text color
selbckcol dd ? ;Sel back color
seltxtcol dd ? ;Sel text color
cmntcol dd ? ;Comment color
strcol dd ? ;String color
oprcol dd ? ;Operator color
hicol1 dd ? ;Line hilite 1
hicol2 dd ? ;Line hilite 2
hicol3 dd ? ;Line hilite 3
selbarbck dd ? ;Selection bar
selbarpen dd ? ;Selection bar pen
lnrcol dd ? ;Line numbers color
numcol dd ? ;Numbers & hex color
RACOLOR ends
EDIT struct
hwnd dd ? ;Handle of main window
fstyle dd ? ;Window style
ID dd ? ;Window ID
hpar dd ? ;Handle of parent window
edta RAEDT <>
edtb RAEDT <>
hhscroll dd ? ;Handle of horizontal scrollbar
hgrip dd ? ;Handle of sizegrip
hnogrip dd ? ;Handle of nosizegrip
hsbtn dd ? ;Handle of splitt button
hlin dd ? ;Handle of linenumber button
hexp dd ? ;Handle of expand button
hcol dd ? ;Handle of collapse button
hsta dd ? ;Handle of state window
htt dd ? ;Handle of tooltip
fresize dd ? ;Resize in action flag
fsplitt dd ? ;Splitt factor
nsplitt dd ? ;Splitt height
hHeap dd 3 dup(?) ;Handle of heap
hLine dd ? ;Handle of line pointer mem
cbLine dd ? ;Size of line pointer mem
rpLine dd ? ;Relative pointer into line pointer mem
rpLineFree dd ? ;Pointer to free line pointer
hChars dd ? ;Handle of character mem
cbChars dd ? ;Size of character mem
rpChars dd ? ;Relative pointer into character mem
rpCharsFree dd ? ;Relative pointer to free character
hUndo dd ? ;Handle of undo memory
cbUndo dd ? ;Size of undo memory
rpUndo dd ? ;Relative pointer to free (last)
line dd ? ;Linenumber
cpLine dd ? ;Character position for start of line
rc RECT <?> ;Main rect
selbarwt dd ? ;Width of selection bar
nlinenrwt dd ? ;Initial width of linenumber bar
linenrwt dd ? ;Width of linenumber bar
nScroll dd ? ;Mouse wheel scroll lines
nPageBreak dd ? ;Page break
cpMin dd ? ;Selection min
cpMax dd ? ;Selection max
fOvr dd ? ;Insert / Overwrite
nHidden dd ? ;Number of hidden lines
cpx dd ? ;Scroll position
focus dd ? ;Handle of edit having focus
fCaretHide dd ? ;Caret is hidden
fChanged dd ? ;Content changed
fHideSel dd ? ;Hide selection
fIndent dd ? ;Auto indent
clr RACOLOR <?>
br RABRUSH <?>
nTab dd ? ;Tab size
fnt RAFONT <?>
fntinfo RAFONTINFO <?>
lpBmCB dd ? ;Bookmark paint callback
nchange dd ? ;Used by EN_SELCHANGE
nlastchange dd ? ;Used by EN_SELCHANGE
nWordGroup dd ? ;Hilite word group
fExpandTab dd ? ;TRUE/FALSE Epand tabs to spaces
savesel CHARRANGE <?>
EDIT ends
;CodeHi styles
STYLE_NOSPLITT EQU 001h ;No splitt button
STYLE_NOLINENUMBER EQU 002h ;No linenumber button
STYLE_NOCOLLAPSE EQU 004h ;No expand/collapse buttons
STYLE_NOHSCROLL EQU 008h ;No horizontal scrollbar
STYLE_NOVSCROLL EQU 010h ;No vertical scrollbar
STYLE_NOHILITE EQU 020h ;No color hiliting
STYLE_NOSIZEGRIP EQU 040h ;No size grip
STYLE_NODBLCLICK EQU 080h ;No action on double clicks
STYLE_READONLY EQU 100h ;Text is locked
STYLE_NODIVIDERLINE EQU 200h ;Blocks are not divided by line
STYLE_NOBACKBUFFER EQU 400h ;Drawing directly to screen DC
STYLE_NOSTATE EQU 800h ;No state indicator
STYLE_DRAGDROP equ 1000h ;Drag & Drop support, app must load ole
STYLE_SCROLLTIP equ 2000h ;Scrollbar tooltip
STYLE_HILITECOMMENT equ 4000h ;Comments are hilited
STYLE_NOTABINDICATORS equ 8000h
;-------------------------------------------------------------------
;;Window styles
;STYLE_NOSPLITT equ 0001h ;No splitt button
;STYLE_NOLINENUMBER equ 0002h ;No linenumber button
;STYLE_NOCOLLAPSE equ 0004h ;No expand/collapse buttons
;STYLE_NOHSCROLL equ 0008h ;No horizontal scrollbar
;STYLE_NOVSCROLL equ 0010h ;No vertical scrollbar
;STYLE_NOHILITE equ 0020h ;No color hiliting
;STYLE_NOSIZEGRIP equ 0040h ;No size grip
;STYLE_NODBLCLICK equ 0080h ;No action on double clicks
;STYLE_READONLY equ 0100h ;Text is locked
;STYLE_NODIVIDERLINE equ 0200h ;Blocks are not divided by line
;STYLE_NOBACKBUFFER equ 0400h ;Drawing directly to screen DC
;STYLE_NOSTATE equ 0800h ;No state indicator
;STYLE_DRAGDROP equ 1000h ;Drag & Drop support, app must load ole
;STYLE_SCROLLTIP equ 2000h ;Scrollbar tooltip
;STYLE_HILITECOMMENT equ 4000h ;Comments are hilited
APICONSTANTS STRUCT
pNext DWORD ?
pText DWORD ?
APICONSTANTS ENDS
comment @
1) Control's friendly name and description.
2) Class name of the control.
3) DLL file where the control resides.
4) Function name to call to initialize the control (may be none, if it's done automatically at the DLL entry point).
5) Function name to call to unregister the control (may be none, if it's done automatically at the DLL entry point).
6) Optional list of styles supported, and their values. Could be an ASCIIZ array stored with WritePrivateProfileStruct.
@
CUSTOMCONTROL STRUCT
szFriendlyName DB 24+1 DUP (?)
szClassName DB 24+1 DUP (?)
;szDescription DB 256+1 DUP (?)
szDLLFullPathName DB MAX_PATH+1 DUP (?)
szStyles DB 16*(24+1) DUP (?)
CUSTOMCONTROL ENDS
CUSTOMCONTROLEX STRUCT
CustomControl CUSTOMCONTROL <>
hLib DWORD ?
ReferenceCount DWORD ?
CUSTOMCONTROLEX ENDS
FUNCTIONLISTTRIGGER STRUCT
szKeyWord DB 32+1 DUP (?)
OpeningParenthesis BOOLEAN ?
CanBeAParameter BOOLEAN ?
AcceptsParameters BOOLEAN ?
Active BOOLEAN ?
FUNCTIONLISTTRIGGER ENDS
.CODE
DummyListViewProc Proc hWnd:HWND,uMsg:UINT,wParam:WPARAM,lParam:LPARAM
.If uMsg==WM_VSCROLL || uMsg==WM_HSCROLL || uMsg==WM_MOUSEWHEEL
;Normal Processing
Invoke GetWindowLong,hWnd,GWL_USERDATA
Invoke CallWindowProc,EAX,hWnd,uMsg,wParam,lParam
;Hide Editbox
Invoke SetFocus,hWnd
Invoke SendMessage,hWnd,WM_SETREDRAW,FALSE,0
Invoke InvalidateRect,hWnd,NULL,TRUE
Invoke SendMessage,hWnd,WM_SETREDRAW,TRUE,0
Invoke UpdateWindow,hWnd
RET
.ElseIf uMsg==WM_NOTIFY
MOV EDX,lParam
.If [EDX].NMHDR.code==0FFFFFEBAh ;<--------Begin Drag????
Invoke SetFocus,hWnd;<-----Set focus to the list so that if edit box is visible it is hidden
.EndIf
.EndIf
;Normal Processing
Invoke GetWindowLong,hWnd,GWL_USERDATA
Invoke CallWindowProc,EAX,hWnd,uMsg,wParam,lParam
RET
DummyListViewProc EndP
.CONST
;arbitrary command id's
tbResource TBBUTTON <0, 100, TBSTATE_ENABLED,TBSTYLE_BUTTON, 0, 0>
TBBUTTON <1, 200, TBSTATE_ENABLED,TBSTYLE_BUTTON , 0, 0>
TBBUTTON <2, 300, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0>
TBBUTTON <0, 0, TBSTATE_ENABLED, TBSTYLE_SEP, 0, 0>
TBBUTTON <7, 400, TBSTATE_ENABLED, TBSTYLE_BUTTON , 0, 0>
tbMain TBBUTTON <0, IDM_NEWPROJECT, TBSTATE_ENABLED,TBSTYLE_BUTTON, 0, 0>
TBBUTTON <1, IDM_OPENPROJECT, TBSTATE_ENABLED,TBSTYLE_DROPDOWN , 0, 0>
TBBUTTON <55, IDM_PROJECT_ADDEXISTINGFILE,0,TBSTYLE_BUTTON, 0, 0>
TBBUTTON <2, IDM_SAVEFILE, 0, TBSTYLE_BUTTON, 0, 0>
TBBUTTON <3, IDM_SAVEPROJECT, 0, TBSTYLE_BUTTON, 0, 0>
TBBUTTON <0, 0, TBSTATE_ENABLED, TBSTYLE_SEP, 0, 0>
TBBUTTON <4, IDM_EDIT_CUT, 0, TBSTYLE_BUTTON, 0, 0>
TBBUTTON <5, IDM_EDIT_COPY, 0, TBSTYLE_BUTTON, 0, 0>
TBBUTTON <6, IDM_EDIT_PASTE, 0, TBSTYLE_BUTTON, 0, 0>
TBBUTTON <0, 0, TBSTATE_ENABLED, TBSTYLE_SEP, 0, 0>
;TBSTYLE_DROPDOWN=8h
TBBUTTON <7, IDM_EDIT_UNDO, 0, TBSTYLE_BUTTON , 0, 0>
TBBUTTON <8, IDM_EDIT_REDO, 0, TBSTYLE_BUTTON, 0, 0>
TBBUTTON <0, 0, TBSTATE_ENABLED, TBSTYLE_SEP, 0, 0>
TBBUTTON <9, IDM_VIEW_PROJECTEXPLORER,TBSTATE_ENABLED,TBSTYLE_CHECK , 0, 0>
TBBUTTON <0, 0, TBSTATE_ENABLED, TBSTYLE_SEP, 0, 0>
TBBUTTON <51, IDM_RESOURCES_VISUALMODE,TBSTYLE_BUTTON , 0, 0>
TBBUTTON <0, 0, TBSTATE_ENABLED, TBSTYLE_SEP, 0, 0>
TBBUTTON <10, IDM_EDIT_FIND,TBSTYLE_BUTTON , 0, 0>
TBBUTTON <11, IDM_EDIT_REPLACE,TBSTYLE_BUTTON , 0, 0>
tbEdit TBBUTTON <12, IDM_FORMAT_INDENT, 0,TBSTYLE_BUTTON, 0, 0>
TBBUTTON <13, IDM_FORMAT_OUTDENT, 0, TBSTYLE_BUTTON, 0, 0>
TBBUTTON <0, 0, TBSTATE_ENABLED, TBSTYLE_SEP, 0, 0>
TBBUTTON <14, IDM_FORMAT_COMMENT, 0, TBSTYLE_BUTTON, 0, 0>
TBBUTTON <15, IDM_FORMAT_UNCOMMENT, 0, TBSTYLE_BUTTON, 0, 0>
TBBUTTON <0, 0, TBSTATE_ENABLED, TBSTYLE_SEP, 0, 0>
TBBUTTON <16, IDM_EDIT_TOGGLEBM, 0, TBSTYLE_BUTTON, 0, 0>
TBBUTTON <17, IDM_EDIT_NEXTBM, 0, TBSTYLE_BUTTON, 0, 0>
TBBUTTON <18, IDM_EDIT_PREVBM, 0, TBSTYLE_BUTTON, 0, 0>
TBBUTTON <19, IDM_EDIT_CLEARBM, 0, TBSTYLE_BUTTON, 0, 0>
tbMake TBBUTTON <20, IDM_MAKE_ASSEMBLE, 0,TBSTYLE_BUTTON, 0, 0>
TBBUTTON <21, IDM_MAKE_LINK, 0, TBSTYLE_BUTTON, 0, 0>
TBBUTTON <22, IDM_MAKE_GO, 0, TBSTYLE_BUTTON, 0, 0>
TBBUTTON <0, 0, TBSTATE_ENABLED, TBSTYLE_SEP, 0, 0>
TBBUTTON <23, IDM_MAKE_EXECUTE, 0, TBSTYLE_BUTTON, 0, 0>
TBBUTTON <57, IDM_MAKE_STOP, 0, TBSTYLE_BUTTON, 0, 0>
.DATA?
proc_info PROCESS_INFORMATION<?>
ObjectsFont DWORD ? ;0=Normal,1=Large
hObjectsFont DWORD ?
gl_uMsg DWORD ?
hUILib DWORD ?
hEditProperties DWORD ?
hSelectComboList DWORD ?
dwGlobalCounter DWORD ?
hResourcesTab DWORD ?
szInterfacePack DB MAX_PATH+1 DUP(?)
ErrorLoadingFile DB 32 DUP(?) ;"Error Loading "
szHideLines DB 32 DUP(?) ;"Hide Lines"
AddOpenSaveFilesFilter DB 512 DUP(?)
;DB "ASM Files (*.asm)",0,"*.asm",0
;DB "Include Files (*.inc)",0,"*.inc",0
;DB "Resource Files (*.rc)",0,"*.rc",0
;DB "Text Files (*.txt)",0,"*.txt",0
;DB "Definition Files (*.def)",0,"*.def",0
;DB "Batch Files (*.bat)",0,"*.bat",0
;DB "All Files (*.*)",0,"*.*",0,0
ResourcesFilter DB 512 DUP(?)
;DB "Bitmap (*.bmp)",0,"*.bmp",0
;DB "Cursor (*.cur)",0,"*.cur",0
;DB "Icon (*.ico)",0,"*.ico",0
;DB "Animation (*.avi)",0,"*.avi",0
;DB "Manifest (*.xml)",0,"*.xml",0
;DB "Wave (*.wav)",0,"*.wav",0
;DB "Any File as Raw Data(*.*)",0,"*.*",0,0
;0=Bitmap,1=Cursor,2=Icon,3=Avi,4=Manifest,5=wave,6=Raw Data
OpenProjectFilter DB 128 DUP(?)
;DB "WinAsm Studio Project Files (*.wap)",0,"*.wap",0,0
DLLsFilter DB 128 DUP(?)
;DB "Dynamic Link Libraries (*.dll)",0,"*.dll",0,0
ExecutablesFilter DB 128 DUP(?)
;DB 'Executables (*.EXE)',0,'*.exe',0
;DB 'All Files (*.*)',0,'*.*',0,0
KeyFilesFilter DB 128 DUP(?)
;DB "Key Files (*.vas)",0,"*.vas",0
;DB "All Files (*.*)",0,"*.*",0,0