multipad.h File Reference

Go to the source code of this file.

Defines

#define GET_EM_SETSEL_MPS(iStart, iEnd)   0, MAKELONG(iStart, iEnd)
#define GET_WM_COMMAND_ID(wp, lp)   (wp)
#define GET_WM_COMMAND_CMD(wp, lp)   HIWORD(lp)
#define GET_WM_COMMAND_HWND(wp, lp)   (HWND)LOWORD(lp)
#define GET_WM_COMMAND_MPS(id, hwnd, cmd)   (UINT)(id), MAKELONG(hwnd, cmd)
#define GET_EM_SETSEL_MPS(iStart, iEnd)   0, MAKELONG(iStart, iEnd)
#define GET_WM_MDIACTIVATE_FACTIVATE(hwnd, wp, lp)   (BOOL)(wp)
#define WINDOWMENU   3
#define SHORTMENU   2
#define MAX_BUFFER   512
#define MAXFILENAME   256
#define DEFFILESEARCH   (LPSTR) "*.TXT"
#define ID(id)   MAKEINTRESOURCE(id)
#define CLIENTWND   0
#define ID_EDIT   0xCAC
#define IDMULTIPAD   ID(1)
#define IDMULTIPAD2   ID(3)
#define ID_MULTIPAD_ICON   10000
#define IDNOTE   2
#define GWL_HWNDEDIT   0
#define GWW_CHANGED   4
#define GWL_WORDWRAP   6
#define GWW_UNTITLED   10
#define CBWNDEXTRA   12
#define IDM_FILENEW   1001
#define IDM_FILEOPEN   1002
#define IDM_FILESAVE   1003
#define IDM_FILESAVEAS   1004
#define IDM_FILEPRINT   1005
#define IDM_FILEEXIT   1006
#define IDM_FILEABOUT   1007
#define IDM_FILESETUP   1008
#define IDM_FILEMENU   1009
#define IDM_HELP_MENU   1010
#define IDM_EDITUNDO   2001
#define IDM_EDITCUT   2002
#define IDM_EDITCOPY   2003
#define IDM_EDITPASTE   2004
#define IDM_EDITCLEAR   2005
#define IDM_EDITSELECT   2006
#define IDM_EDITTIME   2007
#define IDM_EDITWRAP   2008
#define IDM_EDITFONT   2009
#define IDM_EDITFIRST   IDM_EDITUNDO
#define IDM_EDITLAST   IDM_EDITFONT
#define IDM_SEARCHFIND   3001
#define IDM_SEARCHNEXT   3002
#define IDM_SEARCHPREV   3003
#define IDM_SEARCHFIRST   IDM_SEARCHFIND
#define IDM_SEARCHLAST   IDM_SEARCHPREV
#define IDM_WINDOWTILE   4001
#define IDM_WINDOWCASCADE   4002
#define IDM_WINDOWCLOSEALL   4003
#define IDM_WINDOWICONS   4004
#define IDM_WINDOWCHILD   4100
#define IDM_HELPHELP   5001
#define IDM_HELPABOUT   5002
#define IDM_HELPSPOT   5003
#define IDD_FILEOPEN   ID(200)
#define IDD_FILENAME   201
#define IDD_FILES   202
#define IDD_PATH   203
#define IDD_DIRS   204
#define IDD_ABOUT   ID(300)
#define IDD_FIND   ID(400)
#define IDD_SEARCH   401
#define IDD_PREV   402
#define IDD_NEXT   IDOK
#define IDD_CASE   403
#define IDD_SAVEAS   ID(500)
#define IDD_SAVEFROM   501
#define IDD_SAVETO   502
#define IDD_PRINT   ID(600)
#define IDD_PRINTDEVICE   601
#define IDD_PRINTPORT   602
#define IDD_PRINTTITLE   603
#define IDD_FONT   ID(700)
#define IDD_FACES   701
#define IDD_SIZES   702
#define IDD_BOLD   703
#define IDD_ITALIC   704
#define IDD_FONTTITLE   705
#define IDS_CANTOPEN   1
#define IDS_CANTREAD   2
#define IDS_CANTCREATE   3
#define IDS_CANTWRITE   4
#define IDS_ILLFNM   5
#define IDS_ADDEXT   6
#define IDS_CLOSESAVE   7
#define IDS_CANTFIND   8
#define IDS_HELPNOTAVAIL   9
#define IDS_HELPMENUTEXT   10
#define IDS_CLIENTTITLE   16
#define IDS_UNTITLED   17
#define IDS_APPNAME   18
#define IDS_PRINTJOB   24
#define IDS_PRINTERROR   25
#define ATTR_DIRS   0xC010
#define ATTR_FILES   0x0000
#define PROP_FILENAME   szPropertyName

Functions

BOOL InitializeApplication (VOID)
BOOL InitializeInstance (LPSTR, INT)
BOOL CALLBACK AboutDlgProc (HWND, UINT, WPARAM, LPARAM)
HWND AddFile (LPSTR lpPath, LPSTR lpName)
VOID MyReadFile (HWND)
VOID SaveFile (HWND)
BOOL ChangeFile (HWND)
VOID CommandHandler (HWND, WPARAM, LPARAM)
INT LoadFile (HWND, CHAR *)
VOID PrintFile (HWND)
BOOL GetFileName (LPSTR lpPath, LPSTR lpName)
BOOL GetInitializationData (HWND)
BOOL CALLBACK FileOpenDlgProc (HWND, UINT, WPARAM, LPARAM)
VOID Find (VOID)
VOID FindNext (VOID)
VOID FindPrev (VOID)
LONG CALLBACK MPFrameWndProc (HWND, UINT, WPARAM, LPARAM)
LONG CALLBACK MPMDIChildWndProc (HWND, UINT, WPARAM, LPARAM)
HDC GetPrinterDC (BOOL)
BOOL CALLBACK FindDlgProc (HWND, UINT, WPARAM, LPARAM)
SHORT MPError (HWND, WORD, WORD, char *)
BOOL IsWild (PSTR)
VOID SelectFile (HWND)
VOID Local_FindText (INT)
VOID SetSaveFrom (HWND, PSTR)
BOOL RealSlowCompare (PSTR, PSTR)

Variables

HINSTANCE hInst
HANDLE hAccel
HWND hwndFrame
HWND hwndMDIClient
HWND hwndActive
HWND hwndActiveEdit
LONG styleDefault
CHAR szChild []
CHAR szSearch []
CHAR * szDriver
CHAR szPropertyName []
INT iPrinter
BOOL fCase
WORD cFonts


Define Documentation

#define ATTR_DIRS   0xC010
 

Definition at line 159 of file multipad.h.

#define ATTR_FILES   0x0000
 

Definition at line 160 of file multipad.h.

#define CBWNDEXTRA   12
 

Definition at line 65 of file multipad.h.

#define CLIENTWND   0
 

Definition at line 47 of file multipad.h.

#define DEFFILESEARCH   (LPSTR) "*.TXT"
 

Definition at line 39 of file multipad.h.

#define GET_EM_SETSEL_MPS iStart,
iEnd   )     0, MAKELONG(iStart, iEnd)
 

Definition at line 30 of file multipad.h.

#define GET_EM_SETSEL_MPS iStart,
iEnd   )     0, MAKELONG(iStart, iEnd)
 

Definition at line 30 of file multipad.h.

#define GET_WM_COMMAND_CMD wp,
lp   )     HIWORD(lp)
 

Definition at line 27 of file multipad.h.

#define GET_WM_COMMAND_HWND wp,
lp   )     (HWND)LOWORD(lp)
 

Definition at line 28 of file multipad.h.

#define GET_WM_COMMAND_ID wp,
lp   )     (wp)
 

Definition at line 26 of file multipad.h.

#define GET_WM_COMMAND_MPS id,
hwnd,
cmd   )     (UINT)(id), MAKELONG(hwnd, cmd)
 

Definition at line 29 of file multipad.h.

#define GET_WM_MDIACTIVATE_FACTIVATE hwnd,
wp,
lp   )     (BOOL)(wp)
 

Definition at line 31 of file multipad.h.

Referenced by FrontierOPWndProc(), and WinProcessActivateEvent().

#define GWL_HWNDEDIT   0
 

Definition at line 61 of file multipad.h.

#define GWL_WORDWRAP   6
 

Definition at line 63 of file multipad.h.

#define GWW_CHANGED   4
 

Definition at line 62 of file multipad.h.

#define GWW_UNTITLED   10
 

Definition at line 64 of file multipad.h.

#define ID id   )     MAKEINTRESOURCE(id)
 

Definition at line 44 of file multipad.h.

#define ID_EDIT   0xCAC
 

Definition at line 50 of file multipad.h.

#define ID_MULTIPAD_ICON   10000
 

Definition at line 57 of file multipad.h.

#define IDD_ABOUT   ID(300)
 

Definition at line 115 of file multipad.h.

#define IDD_BOLD   703
 

Definition at line 135 of file multipad.h.

#define IDD_CASE   403
 

Definition at line 121 of file multipad.h.

#define IDD_DIRS   204
 

Definition at line 112 of file multipad.h.

#define IDD_FACES   701
 

Definition at line 133 of file multipad.h.

#define IDD_FILENAME   201
 

Definition at line 109 of file multipad.h.

#define IDD_FILEOPEN   ID(200)
 

Definition at line 108 of file multipad.h.

#define IDD_FILES   202
 

Definition at line 110 of file multipad.h.

#define IDD_FIND   ID(400)
 

Definition at line 117 of file multipad.h.

#define IDD_FONT   ID(700)
 

Definition at line 132 of file multipad.h.

#define IDD_FONTTITLE   705
 

Definition at line 137 of file multipad.h.

#define IDD_ITALIC   704
 

Definition at line 136 of file multipad.h.

#define IDD_NEXT   IDOK
 

Definition at line 120 of file multipad.h.

#define IDD_PATH   203
 

Definition at line 111 of file multipad.h.

#define IDD_PREV   402
 

Definition at line 119 of file multipad.h.

#define IDD_PRINT   ID(600)
 

Definition at line 127 of file multipad.h.

#define IDD_PRINTDEVICE   601
 

Definition at line 128 of file multipad.h.

#define IDD_PRINTPORT   602
 

Definition at line 129 of file multipad.h.

#define IDD_PRINTTITLE   603
 

Definition at line 130 of file multipad.h.

#define IDD_SAVEAS   ID(500)
 

Definition at line 123 of file multipad.h.

#define IDD_SAVEFROM   501
 

Definition at line 124 of file multipad.h.

#define IDD_SAVETO   502
 

Definition at line 125 of file multipad.h.

#define IDD_SEARCH   401
 

Definition at line 118 of file multipad.h.

#define IDD_SIZES   702
 

Definition at line 134 of file multipad.h.

#define IDM_EDITCLEAR   2005
 

Definition at line 83 of file multipad.h.

#define IDM_EDITCOPY   2003
 

Definition at line 81 of file multipad.h.

#define IDM_EDITCUT   2002
 

Definition at line 80 of file multipad.h.

#define IDM_EDITFIRST   IDM_EDITUNDO
 

Definition at line 88 of file multipad.h.

#define IDM_EDITFONT   2009
 

Definition at line 87 of file multipad.h.

#define IDM_EDITLAST   IDM_EDITFONT
 

Definition at line 89 of file multipad.h.

#define IDM_EDITPASTE   2004
 

Definition at line 82 of file multipad.h.

#define IDM_EDITSELECT   2006
 

Definition at line 84 of file multipad.h.

#define IDM_EDITTIME   2007
 

Definition at line 85 of file multipad.h.

#define IDM_EDITUNDO   2001
 

Definition at line 79 of file multipad.h.

#define IDM_EDITWRAP   2008
 

Definition at line 86 of file multipad.h.

#define IDM_FILEABOUT   1007
 

Definition at line 74 of file multipad.h.

#define IDM_FILEEXIT   1006
 

Definition at line 73 of file multipad.h.

#define IDM_FILEMENU   1009
 

Definition at line 76 of file multipad.h.

#define IDM_FILENEW   1001
 

Definition at line 68 of file multipad.h.

#define IDM_FILEOPEN   1002
 

Definition at line 69 of file multipad.h.

#define IDM_FILEPRINT   1005
 

Definition at line 72 of file multipad.h.

#define IDM_FILESAVE   1003
 

Definition at line 70 of file multipad.h.

#define IDM_FILESAVEAS   1004
 

Definition at line 71 of file multipad.h.

#define IDM_FILESETUP   1008
 

Definition at line 75 of file multipad.h.

#define IDM_HELP_MENU   1010
 

Definition at line 77 of file multipad.h.

#define IDM_HELPABOUT   5002
 

Definition at line 105 of file multipad.h.

#define IDM_HELPHELP   5001
 

Definition at line 104 of file multipad.h.

#define IDM_HELPSPOT   5003
 

Definition at line 106 of file multipad.h.

#define IDM_SEARCHFIND   3001
 

Definition at line 91 of file multipad.h.

#define IDM_SEARCHFIRST   IDM_SEARCHFIND
 

Definition at line 94 of file multipad.h.

#define IDM_SEARCHLAST   IDM_SEARCHPREV
 

Definition at line 95 of file multipad.h.

#define IDM_SEARCHNEXT   3002
 

Definition at line 92 of file multipad.h.

#define IDM_SEARCHPREV   3003
 

Definition at line 93 of file multipad.h.

#define IDM_WINDOWCASCADE   4002
 

Definition at line 98 of file multipad.h.

#define IDM_WINDOWCHILD   4100
 

Definition at line 102 of file multipad.h.

Referenced by FrontierFrameWndProc().

#define IDM_WINDOWCLOSEALL   4003
 

Definition at line 99 of file multipad.h.

#define IDM_WINDOWICONS   4004
 

Definition at line 100 of file multipad.h.

#define IDM_WINDOWTILE   4001
 

Definition at line 97 of file multipad.h.

#define IDMULTIPAD   ID(1)
 

Definition at line 53 of file multipad.h.

Referenced by InitializeApplication(), and InitializeInstance().

#define IDMULTIPAD2   ID(3)
 

Definition at line 54 of file multipad.h.

#define IDNOTE   2
 

Definition at line 58 of file multipad.h.

#define IDS_ADDEXT   6
 

Definition at line 145 of file multipad.h.

#define IDS_APPNAME   18
 

Definition at line 153 of file multipad.h.

Referenced by InitializeInstance().

#define IDS_CANTCREATE   3
 

Definition at line 142 of file multipad.h.

#define IDS_CANTFIND   8
 

Definition at line 147 of file multipad.h.

#define IDS_CANTOPEN   1
 

Definition at line 140 of file multipad.h.

#define IDS_CANTREAD   2
 

Definition at line 141 of file multipad.h.

#define IDS_CANTWRITE   4
 

Definition at line 143 of file multipad.h.

#define IDS_CLIENTTITLE   16
 

Definition at line 151 of file multipad.h.

#define IDS_CLOSESAVE   7
 

Definition at line 146 of file multipad.h.

#define IDS_HELPMENUTEXT   10
 

Definition at line 149 of file multipad.h.

#define IDS_HELPNOTAVAIL   9
 

Definition at line 148 of file multipad.h.

#define IDS_ILLFNM   5
 

Definition at line 144 of file multipad.h.

#define IDS_PRINTERROR   25
 

Definition at line 156 of file multipad.h.

#define IDS_PRINTJOB   24
 

Definition at line 155 of file multipad.h.

#define IDS_UNTITLED   17
 

Definition at line 152 of file multipad.h.

#define MAX_BUFFER   512
 

Definition at line 36 of file multipad.h.

#define MAXFILENAME   256
 

Definition at line 37 of file multipad.h.

#define PROP_FILENAME   szPropertyName
 

Definition at line 161 of file multipad.h.

#define SHORTMENU   2
 

Definition at line 35 of file multipad.h.

#define WINDOWMENU   3
 

Definition at line 34 of file multipad.h.

Referenced by FrontierFrameWndProc().


Function Documentation

BOOL CALLBACK AboutDlgProc HWND  ,
UINT  ,
WPARAM  ,
LPARAM 
 

HWND AddFile LPSTR  lpPath,
LPSTR  lpName
 

BOOL ChangeFile HWND   ) 
 

VOID CommandHandler HWND  ,
WPARAM  ,
LPARAM 
 

BOOL CALLBACK FileOpenDlgProc HWND  ,
UINT  ,
WPARAM  ,
LPARAM 
 

VOID Find VOID   ) 
 

BOOL CALLBACK FindDlgProc HWND  ,
UINT  ,
WPARAM  ,
LPARAM 
 

VOID FindNext VOID   ) 
 

VOID FindPrev VOID   ) 
 

BOOL GetFileName LPSTR  lpPath,
LPSTR  lpName
 

BOOL GetInitializationData HWND   ) 
 

HDC GetPrinterDC BOOL   ) 
 

Definition at line 3281 of file FrontierWinMain.c.

Referenced by FrontierFrameWndProc().

BOOL InitializeApplication VOID   ) 
 

Referenced by WinMain().

BOOL InitializeInstance LPSTR  ,
INT 
 

Definition at line 1432 of file FrontierWinMain.c.

Referenced by WinMain().

BOOL IsWild PSTR   ) 
 

INT LoadFile HWND  ,
CHAR * 
 

VOID Local_FindText INT   ) 
 

SHORT MPError HWND  ,
WORD  ,
WORD  ,
char * 
 

LONG CALLBACK MPFrameWndProc HWND  ,
UINT  ,
WPARAM  ,
LPARAM 
 

LONG CALLBACK MPMDIChildWndProc HWND  ,
UINT  ,
WPARAM  ,
LPARAM 
 

VOID MyReadFile HWND   ) 
 

VOID PrintFile HWND   ) 
 

BOOL RealSlowCompare PSTR  ,
PSTR 
 

VOID SaveFile HWND   ) 
 

VOID SelectFile HWND   ) 
 

VOID SetSaveFrom HWND  ,
PSTR 
 


Variable Documentation

WORD cFonts
 

BOOL fCase
 

HANDLE hAccel
 

Definition at line 83 of file FrontierWinMain.c.

HINSTANCE hInst
 

Definition at line 66 of file FrontierWinMain.c.

HWND hwndActive
 

Definition at line 71 of file FrontierWinMain.c.

HWND hwndActiveEdit
 

HWND hwndFrame
 

HWND hwndMDIClient
 

Definition at line 70 of file FrontierWinMain.c.

INT iPrinter
 

Definition at line 3262 of file FrontierWinMain.c.

LONG styleDefault
 

Definition at line 86 of file FrontierWinMain.c.

CHAR szChild[]
 

CHAR* szDriver
 

Definition at line 3259 of file FrontierWinMain.c.

CHAR szPropertyName[]
 

CHAR szSearch[]
 


Generated on Thu Jun 8 00:40:26 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6