?? icadapi.h
字號:
/* F:\BLD\PRJ\ICAD\ICADAPI.H
* Copyright (C) 1997-1998 Visio Corporation. All rights reserved.
*
* Abstract
*
*
*/
#pragma once
#include "sds.h"/*DNT*/
#include <afxwin.h>
#include <afxtempl.h>
#ifndef _SDS_ENGINE_H
#include "sds_engine.h"
#endif
//forward declarations
class InputEvent;
#if defined(__cplusplus)
extern "C"
{
#endif
//** Defines
#define SDS_EVM_MOUSEXYZ 0x0001 // mouse coordinate in WC
#define SDS_EVM_KEYCHAR 0x0002 // keys and characters
#define SDS_EVM_MOUSEBUTTON 0x0004 // mouse button click
#define SDS_EVM_MENUCOMMAND 0x0008 // menu command
#define SDS_EVM_POPUPCOMMAND 0x0010 // popup menu command string
#define SDS_EVM_AUXMENU 0x0020 // Aux (right) button click
// AG I added this type of event to enable processing of SDS_AutoLoad generated event
// in the first place
#define SDS_EVM_AUTOEVENT 0x0040 // Event generated by initialization or some other
// action which should processed in the first place
#define ICAD_WNDACTION_GRAPHSCR 4000
#define ICAD_WNDACTION_TEXTSCR 4001
#define ICAD_WNDACTION_TEXTPAGE 4002
#define ICAD_WNDACTION_CONFIG 4003
#define ICAD_WNDACTION_TBLMGR 4004
#define ICAD_WNDACTION_PRINT 4005
#define ICAD_WNDACTION_PSETUP 4006
#define ICAD_WNDACTION_WHTILE 4007
#define ICAD_WNDACTION_WCASCADE 4008
#define ICAD_WNDACTION_WOPEN 4009
#define ICAD_WNDACTION_WCLOSE 4010
#define ICAD_WNDACTION_EXIT 4011
#define ICAD_WNDACTION_OSNAP 4012
#define ICAD_WNDACTION_DIMVARS 4013
#define ICAD_WNDACTION_INSERT 4014
#define ICAD_WNDACTION_ATTE 4015
#define ICAD_WNDACTION_ATTDEF 4016
#define ICAD_WNDACTION_SETVAR 4017
#define ICAD_WNDACTION_UDCOORDS 4018
#define ICAD_WNDACTION_GPS_PROP 4019
#define ICAD_WNDACTION_PPREVIEW 4020
#define ICAD_WNDACTION_UDSTLAY 4021
#define ICAD_WNDACTION_UDSTLTP 4022
#define ICAD_WNDACTION_UDSTCOL 4023
#define ICAD_WNDACTION_TBCONFIG 4024
#define ICAD_WNDACTION_UDSBARS 4025
#define ICAD_WNDACTION_WSPLIT 4026
#define ICAD_WNDACTION_TIPOFDAY 4027
#define ICAD_WNDACTION_WCLOSEALL 4028
#define ICAD_WNDACTION_WINDOWS 4029
#define ICAD_WNDACTION_RCLICK 4030
#define ICAD_WNDACTION_UDSTATBAR 4031
#define ICAD_WNDACTION_UDCMDBAR 4032
#define ICAD_WNDACTION_UDTBARS 4033
#define ICAD_WNDACTION_UDGRASCR 4034
#define ICAD_WNDACTION_UDTXTSCR 4035
#define ICAD_WNDACTION_WVTILE 4036
#define ICAD_WNDACTION_MODIFY 4037
#define ICAD_WNDACTION_PROMPTM 4038
#define ICAD_WNDACTION_NEWMENUS 4039
#define ICAD_WNDACTION_DELPMTM 4040
#define ICAD_WNDACTION_FILENEW 4041
#define ICAD_WNDACTION_UDMDIWND 4042
#define ICAD_WNDACTION_HIDEPMTM 4043
#define ICAD_WNDACTION_SHOWPMTM 4044
#define ICAD_WNDACTION_FILEOPEN 4045
#define ICAD_WNDACTION_FILECLOSE 4046
#define ICAD_WNDACTION_FILESAVE 4047
#define ICAD_WNDACTION_DBMODON 4048
#define ICAD_WNDACTION_DBMODOFF 4049
#define ICAD_WNDACTION_DEFXLINK 4050
#define ICAD_WNDACTION_DDNEW 4051
#define ICAD_WNDACTION_INSOBJ 4052
#define ICAD_WNDACTION_DDSELECT 4053
#define ICAD_WNDACTION_UDOLEOBJ 4054
#define ICAD_WNDACTION_COLORDIA (WM_USER+4055)
#define ICAD_WNDACTION_ABOUTDIA 4056
#define ICAD_WNDACTION_UDCHKSTAT 4057
#define ICAD_WNDACTION_CUSTOMIZE 4058
#define ICAD_WNDACTION_RUNFORM 4059
#define ICAD_WNDACTION_CURSOROFF 4060
#define ICAD_WNDACTION_CURSORON 4061
#define ICAD_WNDACTION_LASTDRAG 4062
#define ICAD_WNDACTION_CHPROP 4063
#define ICAD_WNDACTION_ATTEXT 4064
#define ICAD_WNDACTION_UCSP 4065
#define ICAD_WNDACTION_VPOINT 4066
#define ICAD_WNDACTION_UDTBSTATE 4067
#define ICAD_WNDACTION_UDTBTIPS 4068
#define ICAD_WNDACTION_TBLUCS 4069
#define ICAD_WNDACTION_TBLVIEW 4070
#define ICAD_WNDACTION_TBLSTY 4071
#define ICAD_WNDACTION_TBLLT 4072
#define ICAD_WNDACTION_TBLBLK 4073
#define ICAD_WNDACTION_TBLAPP 4074
#define ICAD_WNDACTION_EXPASTE 4075
#define ICAD_WNDACTION_SAVEALL 4076
#define ICAD_WNDACTION_SHOWTOOLBARS 4077
#define ICAD_WNDACTION_HIDETOOLBARS 4078
#define ICAD_WNDACTION_ISVALIDTBNAME 4079
#define ICAD_WNDACTION_PRINTF (WM_USER+4080)
#define ICAD_WNDACTION_XREF 4081
#define ICAD_WNDACTION_VIEWCTL 4082
#define ICAD_WNDACTION_VBA 4083
#define ICAD_WNDACTION_APPLOAD 4084
#define ICAD_WNDACTION_SPELL 4085
#define ICAD_WNDACTION_WIARANGE 4086
#define ICAD_WNDACTION_MENUCMD 4087
#define ICAD_WNDACTION_SETFOCUS 4088
#define ICAD_WNDACTION_MDIMIN 4089
#define ICAD_WNDACTION_MDIMAX 4090
#define ICAD_WNDACTION_MDIRESTORE 4091
#define ICAD_WNDACTION_CLOSEVIEW 4092
#define ICAD_WNDACTION_EDITXDATA 4093
#define ICAD_WNDACTION_WCLOSEALLBUT 4094
#define ICAD_WNDACTION_MLEDIT 4095
#define ICAD_WNDACTION_VBALOAD 4096
#define ICAD_WNDACTION_VBAUNLOAD 4097
#define ICAD_WNDACTION_VBARUN 4098
#define ICAD_WNDACTION_MTEXT 4099
#define ICAD_WNDACTION_TOLERANCE 4100
#define ICAD_WNDACTION_STATCHANGE 4101
#define ICAD_WNDACTION_UDSCRLHIST 4102
#define ICAD_WNDACTION_STARTPROG 4103
#define ICAD_WNDACTION_UPDATEPROG 4104
#define ICAD_WNDACTION_ENDPROG 4105
#define ICAD_WNDACTION_GROUP 4106
#define ICAD_WNDACTION_PMSPACE 4107
#define ICAD_WNDACTION_SHOWEXP 4108
#define ICAD_WNDACTION_QPRINT 4109
#define ICAD_WNDACTION_RENAMEAPP 4110
#define ICAD_WNDACTION_COPYHIST 4111
#define ICAD_WNDACTION_COPYCLIP 4112
#define ICAD_WNDACTION_CALCVIEWPTS 4113
#define ICAD_WNDACTION_LOADMENU 4114
#define ICAD_WNDACTION_UNLOADMENU 4115
#define ICAD_WNDACTION_EXP_RETURN 4116
#define ICAD_WNDACTION_DELOLEITEM 4117
#define ICAD_WNDACTION_UNSELOLEITEMS 4118
#define ICAD_WNDACTION_PASTESPEC 4119
#define ICAD_WNDACTION_NEWFONTMAP 4120
#define ICAD_WNDACTION_RUNFIRSTVIEW 4121
#define ICAD_WNDACTION_NEWPALETTE 4122
#define ICAD_WNDACTION_DRAGON 4123
#define ICAD_WNDACTION_DRAGOFF 4124
#define ICAD_WNDACTION_GETVIEWRECT 4125
#define ICAD_WNDACTION_MENUGROUP 4126
#define ICAD_WNDACTION_OLEUNDOREDO 4127
#define ICAD_WNDACTION_OLELINKS 4128
#define ICAD_WNDACTION_INSNAME 4129
#define ICAD_WNDACTION_XREFDUP 4130
#define ICAD_WNDACTION_INSDUP 4131
#define ICAD_WNDACTION_INSCURDWG 4132
#define ICAD_WNDACTION_GETDOCLIST 4133
#define ICAD_WNDACTION_USERCALL 4134
#define ICAD_WNDACTION_UPDATE 4135
#define ICAD_WNDACTION_RND_LIGHT 4136
#define ICAD_WNDACTION_RND_RENDERPRE 4137
#define ICAD_WNDACTION_RND_RENDERWF 4138
#define ICAD_WNDACTION_RND_RENDERHD 4139
#define ICAD_WNDACTION_RND_RENDERFL 4140
#define ICAD_WNDACTION_RND_EDITMAT 4141
#define ICAD_WNDACTION_RND_EDITBG 4142
#define ICAD_WNDACTION_RND_ROPTIONS 4143
#define ICAD_WNDACTION_CHGCVPORT 4144
#define ICAD_WNDACTION_GETTBPOS 4145
#define ICAD_WNDACTION_MOVETOOLBAR 4146
#define ICAD_WNDACTION_ENDDRAG 4147
#define ICAD_WNDACTION_FREEVIEWRBS 4148
#define ICAD_WNDACTION_CREATEHBMP 4149
#define ICAD_WNDACTION_CREATEHWMF 4150
#define ICAD_WNDACTION_CREATEHEMF 4151
#define ICAD_WNDACTION_REDRAWALLWIN 4152
#define ICAD_WNDACTION_ISDOCEMBEDDED 4153
#define ICAD_WNDACTION_SETMRUSIZE 4154
#define ICAD_WNDACTION_TBLDIMSTY 4155
#define ICAD_WNDACTION_DOMODAL 4156
#define ICAD_WNDACTION_BPOLY 4157
#define ICAD_WNDACTION_BHATCH 4158
#define ICAD_WNDACTION_UDSCRLBAR 4159
#define ICAD_WNDACTION_SECURITY 4160
#define ICAD_WNDACTION_VBAEXECUTE 4161
#define ICAD_WNDACTION_TEXT_STYLE 4162
#define ICAD_WNDACTION_ADDINRUN 4163
#define ICAD_WNDACTION_VBAFIRE_REINIT 4164
#define ICAD_WNDACTION_RND_QRENDER 4165
#define ICAD_WNDACTION_RND_QROPTIONS 4166
#define ICAD_WNDACTION_RESETOSNAPMANAGER 4167
#define ICAD_WNDACTION_PROCESSOSNAPPOINT 4168
#define ICAD_WNDACTION_HYPERLINK 4169
#define ICAD_WNDACTION_MTEXT2 4170 // EBATECH(watanabe) -get mtext info only
#define ICAD_WNDACTION_TOLERANCE_EX 4171 // EBATECH(watanabe)
#define ICAD_WNDACTION_UDSTSTY 4172 // EBATECH(yoji) -Update TextStyle (StatusBar)
#define ICAD_WNDACTION_UDSTDIM 4173 // EBATECH(yoji) -Update DimStyle (StatusBar)
// 4M Bugzilla:78056 Item:54->
#define ICAD_WNDACTION_FIXTEXTJUST 4174 // 4M - Fix Text Justification
//<-4M Item:54
//special dialog messages
#define ICAD_WM_LOAD 4300
#define ICAD_WM_SAVE 4301
#define SDS_UNITFILE "icad.unt"
#define SDS_DCLFILE "icad.dcl"
#define SDS_RENDERDLL "Render.dll"
#define SDS_QRENDERDLL "qrender.dll"
#define SDS_ALIASFILE "icad.pgp"
#define SDS_PATTERNFILE "icad.pat"
#define SDS_ISOPATTERNFILE "icadiso.pat"
#define SDS_LTYPEFILE "icad.lin"
#define SDS_ISOLTYPEFILE "icadiso.lin" // EBATECH(cnbr) Affect $MEASUREMENT
#define SDS_APPNAME "ICAD"
#define SDS_AUTOLOADLISP "icad.lsp"
#define SDS_DBFILE "icad.mdb"
#define SDS_LOADSDSFILE "icad.sds"
#define SDS_APPLOADFILE "icad.dfs"
#define SDS_PROGRAMFILE "icad.exe"
#define SDS_TYPELIBFILE "icad.tlb"
#define SDS_ACISFILE "acis.dll"
#define SDS_SHELLFILE "$$IntelliCAD_Shell$$.bat"
#define SDS_OURFILEEXT ".icd"
#define SDS_SDSFILEEXT ".dll"
#define SDS_STARACTIVE "*ACTIVE"
#define SDS_TEXTPAGE 0
#define SDS_TEXTSCR 1
#define SDS_GRAPHSCR 2
#define SDS_CMDHIDE 1
#define SDS_CMDACAD 2
#define SDS_CMDBOTH SDS_CMDHIDE|SDS_CMDACAD
#define SDS_USERSPACE 3
//TBLMESSER MODES
#define IC_TBLMESSER_DELETE 0
#define IC_TBLMESSER_MAKE 1
#define IC_TBLMESSER_MODIFY 2
#define IC_TBLMESSER_RENAME 3
// ********************************************
//
// Support for user callbacks from main thread
//
struct UserMainThreadArgs
{
int SDS_UserMainThreadFuncRet;
int (*SDS_UserMainThreadFunc)(void *);
void *SDS_UserMainThreadFuncData;
};
//** Special define for demand loading of DLL's.
#define SDS_DEMANDLOAD(DLL,FUNC,PROTO,ARGS,RET) \
{ RET=RTERROR; \
HINSTANCE hInstLib=GetModuleHandle(DLL); \
if(hInstLib==NULL) { \
hInstLib=LoadLibrary(DLL); \
} \
if(hInstLib) { \
int (*LibFunc)PROTO; \
LibFunc=(int (*)PROTO)GetProcAddress(hInstLib,FUNC); \
if(LibFunc) { \
RET=(*LibFunc)ARGS; \
} \
} \
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -