00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef ROOT_Win32Constants
00011 #define ROOT_Win32Constants
00012
00013 #ifndef ROOT_Windows4Root
00014 #include "Windows4Root.h"
00015 #endif
00016
00017 #if 0
00018 #define ColorOffset 10
00019 #else
00020 #define ColorOffset 0
00021 #endif
00022
00023
00024
00025
00026
00027
00028 #define ROOTColorIndex(ic) fWin32Mother->ColorIndex(ic)
00029
00030 #define WHITE_ROOT_COLOR ROOTColorIndex(0)
00031
00032 #ifndef ROOT_MSG
00033 #define ROOT_MSG
00034
00035
00036
00037 typedef enum {IX11_ROOT_MSG=WM_USER+10, IX11_ROOT_Input, ROOT_CMD, ROOT_SYNCH_CMD, ROOT_HOOK} ERoot_Msgs;
00038 #endif
00039
00040 enum Canvas_Child_Window_Ids {ID_TOOLBAR = 1, ID_STATUSBAR};
00041
00042 enum ESendClassCOPs {kSendClass=1, kSendWaitClass};
00043
00044 enum ROOT_Graphics_Msg {
00045 ROOT_Control, ROOT_Primitive, ROOT_Text , ROOT_Attribute,
00046 ROOT_Marker , ROOT_Input , ROOT_Inquiry, ROOT_Pixmap,
00047 ROOT_OpenGL,
00048 ROOT_Dummies
00049 };
00050
00051
00052
00053
00054
00055 enum L_ROOT_OpenGL
00056 {
00057 GL_MAKECURRENT
00058 };
00059
00060
00061
00062
00063
00064
00065 enum L_ROOT_Control
00066 {
00067 IX_OPNDS,
00068 IX_OPNWI,
00069 IX_SELWI,
00070 IX_CLSWI,
00071 IX_CLSDS,
00072 IX_SETHN,
00073 IX_SETBUF,
00074 IX_SETSTATUS,
00075 IX_GETBUF,
00076 IX_CLRWI,
00077 IX_RSCWI,
00078 IX_CLIP ,
00079 IX_NOCLI
00080 };
00081
00082
00083
00084
00085
00086
00087
00088 enum L_ROOT_Primitive
00089 {
00090 IX_LINE ,
00091 IX_MARKE,
00092 IX_FLARE,
00093 IX_BOX ,
00094 IX_CA
00095 };
00096
00097
00098
00099
00100
00101
00102 enum L_ROOT_Text
00103 {
00104 IX_TEXT,
00105 IX_TXTL,
00106 IX_SETTA,
00107 IX_SETTF,
00108 IX_SETTC,
00109 IW_SETCH
00110 };
00111
00112
00113
00114
00115
00116
00117
00118 enum L_ROOT_Attribute
00119 {
00120 IX_SETCO,
00121 IX_SETLN,
00122 IX_SETLS,
00123 IX_SETLC,
00124 IX_DRMDE,
00125 IX_SETMENU
00126 };
00127
00128
00129
00130
00131
00132
00133 enum L_ROOT_Marker
00134 {
00135 IX_SETMS,
00136 IX_SETMC,
00137 IX_SETFS,
00138 IX_SETFC,
00139
00140 IX_SYNC
00141 };
00142
00143
00144
00145
00146
00147
00148
00149 enum L_ROOT_Input
00150 {
00151 IX_REQLO,
00152 IX_REQST
00153 };
00154
00155
00156
00157
00158
00159
00160
00161 enum L_ROOT_Inquiry
00162 {
00163 IX_GETGE,
00164 IX_GETWI,
00165 IX_GETPL,
00166 IX_GETCOL
00167 };
00168
00169
00170
00171
00172
00173
00174
00175 enum L_ROOT_Pixmap
00176 {
00177 IX_OPNPX,
00178 IX_CLPX ,
00179 IX_CPPX ,
00180 IX_CLRPX,
00181 IX_RMPX ,
00182 IX_UPDWI,
00183 IX_WRPX ,
00184 IX_WIPX
00185 };
00186
00187
00188
00189
00190
00191
00192
00193 enum L_ROOT_Dummies
00194 {
00195 IX_S2BUF,
00196 IX_SDSWI
00197 };
00198
00199 static int Win32DrawMode[] = {R2_COPYPEN, R2_XORPEN, R2_NOT};
00200
00201 enum EListOfIcons {kMainROOTIcon, kCanvasIcon, kBrowserIcon, kClosedFolderIcon, kOpenedFolderIcon, kDocumentIcon, kTotalNumOfICons };
00202
00203 #define GetWin32ApplicationImp() ((TWin32Application *)( gROOT->GetApplication()->GetApplicationImp()))
00204
00205 #endif