WinLand.h

Go to the documentation of this file.
00001 
00002 /*  $Id: WinLand.h 601 2006-03-04 22:58:40Z andreradke $    */
00003 
00004 /******************************************************************************\
00005 *       This is a part of the Microsoft Source Code Samples. 
00006 *       Copyright (C) 1993-1995 Microsoft Corporation.
00007 *       All rights reserved. 
00008 *       This source code is only intended as a supplement to 
00009 *       Microsoft Development Tools and/or WinHelp documentation.
00010 *       See these sources for detailed information regarding the 
00011 *       Microsoft samples programs.
00012 \******************************************************************************/
00013 
00014 //typedef  int            HFILE          ;
00015 
00016 #ifdef WIN32
00017 //#define GET_EM_SETSEL_MPS(iStart, iEnd) (UINT)(iStart), (LONG)(iEnd)
00018 #define GET_WM_COMMAND_ID(wp, lp)       LOWORD(wp)
00019 #define GET_WM_COMMAND_CMD(wp, lp)      HIWORD(wp)
00020 #define GET_WM_COMMAND_HWND(wp, lp)     (HWND)(lp)
00021 //#define GET_WM_COMMAND_MPS(id, hwnd, cmd) (UINT)MAKELONG(id, cmd), (LONG)(hwnd)
00022 //#define GET_EM_SETSEL_MPS(iStart, iEnd) (UINT)(iStart), (LONG)(iEnd)
00023 //#define GET_WM_MDIACTIVATE_FACTIVATE(hwnd, wp, lp)  (lp == (LONG)hwnd)
00024 #else
00025 #define GET_EM_SETSEL_MPS(iStart, iEnd) 0, MAKELONG(iStart, iEnd)
00026 #define GET_WM_COMMAND_ID(wp, lp)       (wp)
00027 #define GET_WM_COMMAND_CMD(wp, lp)      HIWORD(lp)
00028 #define GET_WM_COMMAND_HWND(wp, lp)     (HWND)LOWORD(lp)
00029 #define GET_WM_COMMAND_MPS(id, hwnd, cmd) (UINT)(id), MAKELONG(hwnd, cmd)
00030 #define GET_EM_SETSEL_MPS(iStart, iEnd) 0, MAKELONG(iStart, iEnd)
00031 #define GET_WM_MDIACTIVATE_FACTIVATE(hwnd, wp, lp)  (BOOL)(wp)
00032 #endif
00033 
00034 #define WINDOWMENU  3   /* position of window menu               */
00035 #define SHORTMENU   2   /* position of short version window menu */
00036 #define MAX_BUFFER      512
00037 #define MAXFILENAME     256
00038 
00039 #define DEFFILESEARCH   (LPSTR) "*.TXT"
00040 
00041 #ifdef RC_INVOKED
00042 #define ID(id) id
00043 #else
00044 #define ID(id) MAKEINTRESOURCE(id)
00045 #endif
00046 
00047 #define CLIENTWND           0
00048 
00049 /* edit control identifier */
00050 #define ID_EDIT 0xCAC
00051 
00052 /* resource ID's */
00053 #define IDMULTIPAD  ID(1)
00054 #define IDMULTIPAD2 ID(3)
00055 
00056 //Icon resource Identifier
00057 #define ID_FRONTIER_ICON                1
00058 #define ID_FATPAGE_ICON                 2
00059 #define ID_ROOT_ICON                    3
00060 #define ID_2CLK_ICON                    4
00061 #define ID_CARD_ICON                    5
00062 #define ID_LAND_ICON                    6
00063 #define ID_MENU_ICON                    7
00064 #define ID_OP_ICON                      8
00065 #define ID_PICT_ICON                    9
00066 #define ID_SCRIPT_ICON                  10
00067 #define ID_TABLE_ICON                   11
00068 #define ID_WP_ICON                      12
00069 #define ID_NOTE_ICON                    13
00070 #define ID_DESKTOPSCRIPT_ICON           14
00071 
00072 #ifdef PIKE /*7.0b24 PBS*/
00073 #define ID_OPML_ICON                    15
00074 #endif
00075 
00076 #define ID_FRONTIERTRAY_ICON            16
00077 
00078 
00079 /* Window word values for child windows */
00080 #define GWL_HWNDEDIT    0
00081 #define GWW_CHANGED     4
00082 #define GWL_WORDWRAP    6
00083 #define GWW_UNTITLED    10
00084 #define CBWNDEXTRA      12
00085 
00086 /* menu ID's */
00087 #define IDM_FILENEW     1001
00088 #define IDM_FILEOPEN    1002
00089 #define IDM_FILESAVE    1003
00090 #define IDM_FILESAVEAS  1004
00091 #define IDM_FILEPRINT   1005
00092 #define IDM_FILEEXIT    1006
00093 #define IDM_FILEABOUT   1007
00094 #define IDM_FILESETUP   1008
00095 #define IDM_FILEMENU    1009
00096 #define IDM_HELP_MENU   1010
00097 
00098 #define IDM_EDITUNDO    2001
00099 #define IDM_EDITCUT     2002
00100 #define IDM_EDITCOPY    2003
00101 #define IDM_EDITPASTE   2004
00102 #define IDM_EDITCLEAR   2005
00103 #define IDM_EDITSELECT  2006
00104 #define IDM_EDITTIME    2007
00105 #define IDM_EDITWRAP    2008
00106 #define IDM_EDITFONT    2009
00107 #define IDM_EDITFIRST   IDM_EDITUNDO
00108 #define IDM_EDITLAST    IDM_EDITFONT
00109 
00110 #define IDM_SEARCHFIND  3001
00111 #define IDM_SEARCHNEXT  3002
00112 #define IDM_SEARCHPREV  3003
00113 #define IDM_SEARCHFIRST IDM_SEARCHFIND
00114 #define IDM_SEARCHLAST  IDM_SEARCHPREV
00115 
00116 #define IDM_WINDOWTILE  4001
00117 #define IDM_WINDOWCASCADE 4002
00118 #define IDM_WINDOWCLOSEALL  4003
00119 #define IDM_WINDOWICONS 4004
00120 
00121 #define IDM_WINDOWCHILD 4100
00122 
00123 #define IDM_HELPHELP    5001
00124 #define IDM_HELPABOUT   5002
00125 #define IDM_HELPSPOT    5003
00126 
00127 #define IDD_FILEOPEN    ID(200)
00128 #define IDD_FILENAME    201
00129 #define IDD_FILES       202
00130 #define IDD_PATH        203
00131 #define IDD_DIRS        204
00132 
00133 /* dialog ids */
00134 #define IDD_ABOUT       ID(300)
00135 
00136 #define IDD_FIND        ID(400)
00137 #define IDD_SEARCH      401
00138 #define IDD_PREV        402
00139 #define IDD_NEXT        IDOK
00140 #define IDD_CASE        403
00141 
00142 #define IDD_SAVEAS      ID(500)
00143 #define IDD_SAVEFROM    501
00144 #define IDD_SAVETO      502
00145 
00146 #define IDD_PRINT       ID(600)
00147 #define IDD_PRINTDEVICE 601
00148 #define IDD_PRINTPORT   602
00149 #define IDD_PRINTTITLE  603
00150 
00151 #define IDD_FONT        ID(700)
00152 #define IDD_FACES       701
00153 #define IDD_SIZES       702
00154 #define IDD_BOLD        703
00155 #define IDD_ITALIC      704
00156 #define IDD_FONTTITLE   705
00157 
00158 #define IDD_ASKTEXT     780
00159 #define IDD_ASKNUMBER   790
00160 #define IDD_ASKPASSWORD 791
00161 #define ID_ASKTEXTDIALOGSTATICFIELD 781
00162 #define ID_ASKTEXTDIALOGEDITFIELD 782
00163 
00164 #define IDD_DIALOGUSERINFO              801
00165 #define IDD_DIALOGCOMMANDKEY            802
00166 #define IDD_DIALOGTABLEENTRY            803
00167 
00168 #define IDD_CUSTOMFIND                  850
00169 #define IDD_CUSTOMREPLACE               851
00170 
00171 #define IDC_EDIT1                       1000
00172 #define IDC_EDIT2                       1001
00173 #define IDC_EDIT3                       1002
00174 #define IDC_EDIT4                       1003
00175 #define IDC_RADIO1                      1004
00176 #define IDC_RADIO2                      1005
00177 #define IDC_RADIO3                      1006
00178 #define IDC_RADIO4                      1007
00179 #define IDC_RADIO5                      1008
00180 #define IDC_RADIO6                      1009
00181 #define IDC_STATIC                      -1
00182 #define IDC_CHARPROMPT                  1010
00183 
00184 
00185 
00186 /* strings */
00187 #define IDS_CANTOPEN    1
00188 #define IDS_CANTREAD    2
00189 #define IDS_CANTCREATE  3
00190 #define IDS_CANTWRITE   4
00191 #define IDS_ILLFNM      5
00192 #define IDS_ADDEXT      6
00193 #define IDS_CLOSESAVE   7
00194 #define IDS_CANTFIND    8
00195 #define IDS_HELPNOTAVAIL 9
00196 #define IDS_HELPMENUTEXT 10
00197 
00198 #define IDS_CLIENTTITLE 16
00199 #define IDS_UNTITLED    17
00200 #define IDS_APPNAME     18
00201 
00202 #define IDS_PRINTJOB    24
00203 #define IDS_PRINTERROR  25
00204 
00205 /* attribute flags for DlgDirList */
00206 #define ATTR_DIRS       0xC010          /* find drives and directories */
00207 #define ATTR_FILES      0x0000          /* find ordinary files         */
00208 #define PROP_FILENAME   szPropertyName  /* name of property for dialog */
00209 
00210 /*
00211  *  External variable declarations
00212  */
00213 
00214 extern HINSTANCE hInst;            /* application instance handle            */
00215 extern HANDLE hAccel;           /* resource handle of accelerators        */
00216 extern HWND hwndFrame;          /* main window handle                     */
00217 extern HWND hwndMDIClient;      /* handle of MDI Client window            */
00218 extern HWND hwndActive;         /* handle of current active MDI child     */
00219 extern HWND hwndActiveEdit;     /* handle of edit control in active child */
00220 extern LONG styleDefault;       /* default child creation state           */
00221 extern CHAR szChild[];          /* class of child                         */
00222 extern CHAR szSearch[];         /* search string                          */
00223 extern CHAR *szDriver;          /* name of printer driver                 */
00224 extern CHAR szPropertyName[];   /* filename property for dialog box       */
00225 extern INT iPrinter;            /* level of printing capability           */
00226 extern BOOL fCase;              /* searches case sensitive                */
00227 extern WORD cFonts;             /* number of fonts enumerated             */
00228 
00229 /*  externally declared functions
00230  */
00231 BOOL            InitializeApplication(VOID);
00232 BOOL            InitializeInstance(LPSTR, INT);
00233 BOOL CALLBACK   AboutDlgProc(HWND, UINT, WPARAM, LPARAM);
00234 HWND            AddFile(LPSTR lpPath, LPSTR lpName);
00235 VOID            MyReadFile(HWND);
00236 VOID            SaveFile(HWND);
00237 BOOL            ChangeFile(HWND);
00238 VOID            CommandHandler(HWND, WPARAM, LPARAM);
00239 INT             LoadFile(HWND, CHAR *);
00240 VOID            PrintFile(HWND);
00241 BOOL                    GetFileName(LPSTR lpPath, LPSTR lpName);
00242 BOOL            GetInitializationData(HWND);
00243 BOOL CALLBACK   FileOpenDlgProc(HWND, UINT, WPARAM, LPARAM);
00244 VOID            Find(VOID);
00245 VOID            FindNext(VOID);
00246 VOID            FindPrev(VOID);
00247 LONG CALLBACK   MPFrameWndProc(HWND, UINT, WPARAM, LPARAM);
00248 LONG CALLBACK   MPMDIChildWndProc(HWND, UINT, WPARAM, LPARAM);
00249 HDC             GetPrinterDC(BOOL);
00250 VOID            FindPrev(VOID);
00251 VOID            FindNext(VOID);
00252 BOOL CALLBACK   FindDlgProc(HWND, UINT, WPARAM, LPARAM);
00253 SHORT           MPError(HWND,WORD,WORD, char *);
00254 BOOL            IsWild (PSTR);
00255 VOID            SelectFile (HWND);
00256 VOID            Local_FindText ( INT );
00257 VOID            SetSaveFrom (HWND, PSTR);
00258 BOOL            RealSlowCompare (PSTR, PSTR);
00259 
00260 
00261 
00262 
00263 //{{NO_DEPENDENCIES}}
00264 // Microsoft Developer Studio generated include file.
00265 // Used by SICONS.rc
00266 //
00267 #define IDB_FRONTIER_BITMAP             999
00268 #define IDB_BITMAP1                     475
00269 #define IDB_BITMAP2                     476
00270 #define IDB_BITMAP3                      3
00271 #define IDB_BITMAP4                     478
00272 #define IDB_BITMAP5                     477
00273 #define IDB_BITMAP6                     137
00274 #define IDB_BITMAP7                     135
00275 #define IDB_BITMAP8                     483
00276 #define IDB_BITMAP9                     138
00277 #define IDB_BITMAP10                     10
00278 #define IDB_BITMAP11                     11
00279 #define IDB_BITMAP12                     12
00280 #define IDB_BITMAP13                     13
00281 #define IDB_BITMAP14                     14
00282 #define IDB_BITMAP15                     15
00283 #define IDB_BITMAP16                     16
00284 #define IDB_BITMAP17                    479
00285 #define IDB_BITMAP18                    480
00286 #define IDB_BITMAP19                    481
00287 #define IDB_BITMAP20                    482
00288 #define IDB_BITMAP21                     21
00289 #define IDB_BITMAP22                     22
00290 #define IDB_BITMAP23                     23
00291 #define IDB_BITMAP24                     24
00292 #define IDB_BITMAP25                     25
00293 #define IDB_BITMAP26                     26
00294 #define IDB_BITMAP27                     27
00295 #define IDB_BITMAP28                     28
00296 #define IDB_BITMAP29                     29
00297 #define IDB_BITMAP30                     30
00298 #define IDB_BITMAP31                     31
00299 #define IDB_BITMAP32                     32
00300 #define IDB_BITMAP33                   1310
00301 #define IDB_BITMAP34                     34
00302 #define IDB_BITMAP35                   1312
00303 #define IDB_BITMAP36                   1313
00304 #define IDB_BITMAP37                   1314
00305 #define IDB_BITMAP38                   1315
00306 #define IDB_BITMAP39                   1316
00307 #define IDB_BITMAP40                     40
00308 #define IDB_BITMAP41                   1318
00309 #define IDB_BITMAP42                   1319
00310 #define IDB_BITMAP43                     43
00311 #define IDB_BITMAP44                     44
00312 #define IDB_BITMAP45                     45
00313 #define IDB_BITMAP46                     46
00314 #define IDB_BITMAP47                     47
00315 #define IDB_BITMAP48                     48

Generated on Wed May 31 18:20:04 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6