Data Structures |
| struct | FINDREPLACE_custom |
Defines |
| #define | WIN32_LEAN_AND_MEAN |
| #define | _WIN32_IE 0x0400 |
| #define | U(x) (x) |
| #define | U2(x) (x) |
| #define | U3(x) (x) |
Enumerations |
| enum | UNIT { UNIT_CM,
UNIT_INCH,
UNIT_PT
} |
Functions |
| LRESULT CALLBACK | preview_proc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) |
| static LRESULT | OnSize (HWND hWnd, WPARAM wParam, LPARAM lParam) |
| static void | DoLoadStrings (void) |
| static int | MessageBoxWithResStringW (HWND hWnd, LPCWSTR lpText, LPCWSTR lpCaption, UINT uType) |
| static void | AddButton (HWND hwndToolBar, int nImage, int nCommand) |
| static void | AddSeparator (HWND hwndToolBar) |
| static DWORD CALLBACK | stream_in (DWORD_PTR cookie, LPBYTE buffer, LONG cb, LONG *pcb) |
| static DWORD CALLBACK | stream_out (DWORD_PTR cookie, LPBYTE buffer, LONG cb, LONG *pcb) |
| LPWSTR | file_basename (LPWSTR path) |
| static void | set_caption (LPCWSTR wszNewFileName) |
| static BOOL | validate_endptr (LPCWSTR endptr, UNIT *punit) |
| static BOOL | number_from_string (LPCWSTR string, float *num, UNIT *punit) |
| static void | set_size (float size) |
| static void | on_sizelist_modified (HWND hwndSizeList, LPWSTR wszNewFontSize) |
| static void | add_size (HWND hSizeListWnd, unsigned size) |
| static void | populate_size_list (HWND hSizeListWnd) |
| static void | update_size_list (void) |
| static void | update_font_list (void) |
| static void | clear_formatting (void) |
| static int | fileformat_number (WPARAM format) |
| static WPARAM | fileformat_flags (int format) |
| static void | set_font (LPCWSTR wszFaceName) |
| static void | set_default_font (void) |
| static void | on_fontlist_modified (LPWSTR wszNewFaceName) |
| static void | add_font (LPCWSTR fontName, DWORD fontType, HWND hListWnd, const NEWTEXTMETRICEXW *ntmc) |
| static void | dialog_choose_font (void) |
| static int CALLBACK | enum_font_proc (const LOGFONTW *lpelfe, const TEXTMETRICW *lpntme, DWORD FontType, LPARAM lParam) |
| static void | populate_font_list (HWND hListWnd) |
| static void | update_window (void) |
| static BOOL | is_bar_visible (int bandId) |
| static void | store_bar_state (int bandId, BOOL show) |
| static void | set_toolbar_state (int bandId, BOOL show) |
| static void | set_statusbar_state (BOOL show) |
| static void | set_bar_states (void) |
| static void | preview_exit (HWND hMainWnd) |
| static void | set_fileformat (WPARAM format) |
| static void | ShowOpenError (DWORD Code) |
| static void | DoOpenFile (LPCWSTR szOpenFileName) |
| static void | ShowWriteError (DWORD Code) |
| static void | DoSaveFile (LPCWSTR wszSaveFileName, WPARAM format) |
| static void | DialogSaveFile (void) |
| static BOOL | prompt_save_changes (void) |
| static void | DialogOpenFile (void) |
| static void | dialog_about (void) |
| static INT_PTR CALLBACK | formatopts_proc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
| static void | dialog_viewproperties (void) |
| static void | HandleCommandLine (LPWSTR cmdline) |
| static LRESULT | handle_findmsg (LPFINDREPLACEW pFr) |
| static void | dialog_find (LPFINDREPLACEW fr, BOOL replace) |
| static int | units_to_twips (UNIT unit, float number) |
| static void | append_current_units (LPWSTR buffer) |
| static void | number_with_units (LPWSTR buffer, int number) |
| static BOOL | get_comboexlist_selection (HWND hComboEx, LPWSTR wszBuffer, UINT bufferLength) |
| static INT_PTR CALLBACK | datetime_proc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
| static INT_PTR CALLBACK | newfile_proc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
| static INT_PTR CALLBACK | paraformat_proc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
| static INT_PTR CALLBACK | tabstops_proc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
| static LRESULT | OnCreate (HWND hWnd) |
| static LRESULT | OnUser (HWND hWnd) |
| static LRESULT | OnNotify (HWND hWnd, LPARAM lParam) |
| static LRESULT | OnCommand (HWND hWnd, WPARAM wParam, LPARAM lParam) |
| static LRESULT | OnInitPopupMenu (HWND hWnd, WPARAM wParam) |
| static LRESULT CALLBACK | WndProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) |
| int CALLBACK | WinMain (HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdParagraph, int nCmdShow) |
Variables |
| static const WCHAR | wszAppTitle [] = {'W','i','n','e',' ','W','o','r','d','p','a','d',0} |
| static const WCHAR | wszMainWndClass [] = {'W','O','R','D','P','A','D','T','O','P',0} |
| static const WCHAR | stringFormat [] = {'%','2','d','\0'} |
| const WCHAR | wszPreviewWndClass [] = {'P','r','t','P','r','e','v','i','e','w',0} |
| static HWND | hMainWnd |
| static HWND | hEditorWnd |
| static HWND | hFindWnd |
| static HMENU | hColorPopupMenu |
| static UINT | ID_FINDMSGSTRING |
| static DWORD | wordWrap [2] |
| static DWORD | barState [2] |
| static WPARAM | fileFormat = SF_RTF |
| static WCHAR | wszFileName [MAX_PATH] |
| static WCHAR | wszFilter [MAX_STRING_LEN *4+6 *3+5] |
| static WCHAR | wszDefaultFileName [MAX_STRING_LEN] |
| static WCHAR | wszSaveChanges [MAX_STRING_LEN] |
| static WCHAR | units_cmW [MAX_STRING_LEN] |
| static WCHAR | units_inW [MAX_STRING_LEN] |
| static WCHAR | units_inchW [MAX_STRING_LEN] |
| static WCHAR | units_ptW [MAX_STRING_LEN] |
| static const COLORREF | textcolors [] |