23 #define WIN32_LEAN_AND_MEAN 36 #include <wine/unicode.h> 40 #ifdef NONAMELESSUNION 53 static const WCHAR wszMainWndClass[] = {
'W',
'O',
'R',
'D',
'P',
'A',
'D',
'T',
'O',
'P',0};
57 const WCHAR wszPreviewWndClass[] = {
'P',
'r',
't',
'P',
'r',
'e',
'v',
'i',
'e',
'w',0};
100 static const WCHAR files_rtf[] = {
'*',
'.',
'r',
't',
'f',
'\0'};
101 static const WCHAR files_txt[] = {
'*',
'.',
't',
'x',
't',
'\0'};
102 static const WCHAR files_all[] = {
'*',
'.',
'*',
'\0'};
145 params.lpszCaption = lpCaption;
148 params.dwContextHelpId = 0;
161 button.idCommand = nCommand;
204 if(!
ret || (
cb != written))
218 if(*
pos ==
'\\' || *
pos ==
'/')
230 static const WCHAR wszSeparator[] = {
' ',
'-',
' '};
247 memcpy(wszCaption +
length, wszSeparator,
sizeof(wszSeparator));
265 while(*endptr ==
' ')
269 return *endptr ==
'\0';
292 return *endptr ==
'\0';
337 if(
lstrcmpW(sizeBuffer, wszNewFontSize))
373 static const unsigned choices[] = {8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72};
396 for(
i = 0;
i <
sizeof(choices)/
sizeof(choices[0]);
i++)
503 static const WCHAR richTextFont[] = {
'T',
'i',
'm',
'e',
's',
' ',
'N',
'e',
'w',
' ',
504 'R',
'o',
'm',
'a',
'n',0};
505 static const WCHAR plainTextFont[] = {
'C',
'o',
'u',
'r',
'i',
'e',
'r',
' ',
'N',
'e',
'w',0};
518 font = plainTextFont;
574 cf.lStructSize =
sizeof(
cf);
589 cf.rgbColors =
fmt.crTextColor;
596 fmt.yHeight =
cf.iPointSize * 2;
602 if(
cf.lpLogFont->lfUnderline)
604 if(
cf.lpLogFont->lfStrikeOut)
607 fmt.crTextColor =
cf.rgbColors;
670 barState[formatIndex] |= (1 << bandId);
672 barState[formatIndex] &= ~(1 << bandId);
783 if(readOut >= 2 && (
BYTE)fileStart[0] == 0xff && (
BYTE)fileStart[1] == 0xfe)
787 }
else if(readOut >= 5)
789 static const char header[] =
"{\\rtf";
790 static const BYTE STG_magic[] = { 0xd0,0xcf,0x11,0xe0 };
794 else if (!
memcmp(STG_magic, fileStart,
sizeof(STG_magic)))
815 if (szOpenFileName[0])
857 static const BYTE unicode[] = {0xff,0xfe};
861 if(writeOut !=
sizeof(unicode))
903 static const WCHAR wszDefExt[] = {
'r',
't',
'f',
'\0'};
987 static const WCHAR wszDefExt[] = {
'r',
't',
'f',
'\0'};
1125 psp[0].pfnCallback =
NULL;
1127 for(
i = 1;
i <
sizeof(psp)/
sizeof(psp[0]);
i++)
1131 U(psp[
i]).pszTemplate =
U(psp[0]).pszTemplate;
1135 psp[
i].pfnCallback = psp[0].pfnCallback;
1139 psh.
dwSize =
sizeof(psh);
1144 psh.
nPages =
sizeof(psp)/
sizeof(psp[0]);
1145 U3(psh).ppsp = ppsp;
1149 U2(psh).nStartPage = 1;
1151 U2(psh).nStartPage = 0;
1243 if(custom_data->
endPos == -1) {
1244 custom_data->
endPos = sel.cpMin;
1252 if (sel.cpMin != sel.cpMax &&
1257 if (ft.chrgText.cpMin == sel.cpMin && ft.chrgText.cpMax == sel.cpMax) {
1265 ft.chrg.cpMin = sel.cpMin;
1266 if (sel.cpMin != sel.cpMax)
1281 if (ft.chrg.cpMax > ft.chrg.cpMin)
1286 custom_data->
endPos = -1;
1305 static WCHAR selBuffer[128];
1306 static WCHAR replaceBuffer[128];
1383 static const WCHAR fmt[] = {
'%',
'.',
'2',
'f',
' ',
'%',
's',
'\0'};
1403 hList = cbInfo.hwndList;
1658 for(
i = 0;
i < pf.cTabCount;
i++)
1720 float next_number = -1;
1721 int next_number_in_twips = -1;
1725 for(
i = 0;
i < item_count;
i++)
1730 if (insert_number <= next_number_in_twips)
1733 if (insert_number != next_number_in_twips)
1796 HWND hToolBarWnd, hFormatBarWnd, hReBarWnd, hFontListWnd, hSizeListWnd, hRulerWnd;
1800 int nStdBitmaps = 0;
1803 static const WCHAR wszRichEditDll[] = {
'R',
'I',
'C',
'H',
'E',
'D',
'2',
'0',
'.',
'D',
'L',
'L',
'\0'};
1804 static const WCHAR wszRichEditText[] = {
'R',
'i',
'c',
'h',
'E',
'd',
'i',
't',
' ',
't',
'e',
'x',
't',
'\0'};
1812 rbi.
cbSize =
sizeof(rbi);
1862 rbb.hwndChild = hFontListWnd;
1872 rbb.hwndChild = hSizeListWnd;
1881 IDC_FORMATBAR, 8,
hInstance,
IDB_FORMATBAR,
NULL, 0, 16, 16, 16, 16,
sizeof(
TBBUTTON));
1896 rbb.hwndChild = hFormatBarWnd;
1905 rbb.hwndChild = hRulerWnd;
1964 fmt.cbSize =
sizeof(
fmt);
2020 }
else if (pHdr->
hwndFrom == hwndSizeList)
2038 sprintf(
buf,
"selection = %d..%d, line count=%ld",
2051 0x00000000
L,0x00000080
L,0x00008000
L,0x00008080
L,
2052 0x00800000
L,0x00800080
L,0x00808000
L,0x00808080
L,
2053 0x00c0c0c0
L,0x000000ff
L,0x0000ff00
L,0x0000ffff
L,
2054 0x00ff0000
L,0x00ff00ff
L,0x00ffff00
L,0x00FFFFFF
L 2186 fmt.cbSize =
sizeof(
fmt);
2201 fmt.dwEffects ^= effects;
2219 pt.y = itemrc.bottom;
2230 fmt.cbSize =
sizeof(
fmt);
2299 cf.cbSize =
sizeof(
cf);
2481 int nAlignment = -1;
2498 nAlignment = pf.wAlignment;
2538 int nStatusSize = 0;
2544 int rebarHeight = 0;
2661 static const WCHAR wszAccelTable[] = {
'M',
'A',
'I',
'N',
'A',
'C',
'C',
'E',
'L',
2662 'T',
'A',
'B',
'L',
'E',
'\0'};
int WINAPIV wsprintfW(_Out_ LPWSTR, _In_ _Printf_format_string_ LPCWSTR,...)
#define STRING_UNITS_INCH
void redraw_ruler(HWND hRulerWnd)
#define OFN_FILEMUSTEXIST
#define ID_WORDWRAP_MARGIN
static void ShowWriteError(DWORD Code)
static WCHAR wszFileName[MAX_PATH]
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
void registry_set_filelist(LPCWSTR newFile, HWND hMainWnd)
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
static void AddSeparator(HWND hwndToolBar)
LANGID WINAPI GetUserDefaultUILanguage(void)
BOOL WINAPI TranslateMessage(_In_ const MSG *)
#define ID_TOGGLE_STATUSBAR
static LRESULT OnInitPopupMenu(HWND hWnd, WPARAM wParam)
#define STRING_NEWFILE_RICHTEXT
static void set_toolbar_state(int bandId, BOOL show)
static WCHAR units_inW[MAX_STRING_LEN]
void dialog_print(HWND hMainWnd, LPWSTR wszFileName)
int WINAPI GetWindowTextA(HWND hWnd, LPSTR lpString, int nMaxCount)
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
#define ID_FORMAT_UNDERLINE
BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT)
static LRESULT OnUser(HWND hWnd)
#define STRING_TEXT_FILES_UNICODE_TXT
static void ShowOpenError(DWORD Code)
static const COLORREF textcolors[]
HDC WINAPI GetDC(_In_opt_ HWND)
static const WCHAR RICHEDIT_CLASS20W[]
static void dialog_choose_font(void)
int WINAPI EnumFontFamiliesExW(_In_ HDC, _In_ PLOGFONTW, _In_ FONTENUMPROCW, _In_ LPARAM, _In_ DWORD)
static WCHAR wszFilter[MAX_STRING_LEN *4+6 *3+5]
void dialog_printsetup(HWND hMainWnd)
#define ID_TOGGLE_TOOLBAR
static void DoLoadStrings(void)
HWND WINAPI ReplaceTextW(LPFINDREPLACEW pfr)
#define LOCALE_USER_DEFAULT
int WINAPI lstrcmpW(LPCWSTR lpString1, LPCWSTR lpString2)
#define ID_WORDWRAP_WINDOW
TW_UINT32 TW_UINT16 TW_UINT16 MSG
static LRESULT OnCommand(HWND hWnd, WPARAM wParam, LPARAM lParam)
static void set_fileformat(WPARAM format)
#define ID_COLOR_AUTOMATIC
#define STRING_VIEWPROPS_TITLE
void registry_read_maximized(DWORD *bMaximized)
void WINAPI DragAcceptFiles(HWND hWnd, BOOL b)
#define ID_EDIT_SELECTALL
static LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
static void populate_size_list(HWND hSizeListWnd)
static LRESULT OnNotify(HWND hWnd, LPARAM lParam)
#define INVALID_HANDLE_VALUE
#define IDB_STD_SMALL_COLOR
static void update_font_list(void)
DWORD WINAPI GetLastError(VOID)
#define STRING_INVALID_NUMBER
HWND WINAPI SetFocus(_In_opt_ HWND)
static int units_to_twips(UNIT unit, float number)
_In_opt_ PVOID _In_ ULONG bufferLength
BOOL WINAPI SetWindowTextW(_In_ HWND, _In_opt_ LPCWSTR)
void close_preview(HWND hMainWnd)
void registry_set_formatopts_all(DWORD barState[], DWORD wordWrap[])
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
HWND WINAPI CreateToolbarEx(HWND hwnd, DWORD style, UINT wID, INT nBitmaps, HINSTANCE hBMInst, UINT_PTR wBMID, LPCTBBUTTON lpButtons, INT iNumButtons, INT dxButton, INT dyButton, INT dxBitmap, INT dyBitmap, UINT uStructSize)
void registry_set_options(HWND hMainWnd)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
static DWORD CALLBACK stream_out(DWORD_PTR cookie, LPBYTE buffer, LONG cb, LONG *pcb)
int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdParagraph, int nCmdShow)
static void add_font(LPCWSTR fontName, DWORD fontType, HWND hListWnd, const NEWTEXTMETRICEXW *ntmc)
static void store_bar_state(int bandId, BOOL show)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
#define STRING_RICHTEXT_FILES_RTF
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
BOOL WINAPI GetSaveFileNameW(LPOPENFILENAMEW ofn)
struct tagNMHDR * LPNMHDR
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
GLenum const GLvoid * fontName
static void set_statusbar_state(BOOL show)
static WCHAR units_cmW[MAX_STRING_LEN]
int WINAPI lstrcmpiW(LPCWSTR lpString1, LPCWSTR lpString2)
static BOOL validate_endptr(LPCWSTR endptr, UNIT *punit)
#define STRING_TEXT_FILES_TXT
static void preview_exit(HWND hMainWnd)
#define MB_ICONEXCLAMATION
#define REBARBANDINFOW_V6_SIZE
int WINAPI MessageBoxA(_In_opt_ HWND, _In_opt_ LPCSTR, _In_opt_ LPCSTR, _In_ UINT)
static void number_with_units(LPWSTR buffer, int number)
#define sprintf(buf, format,...)
ATOM WINAPI RegisterClassExW(_In_ CONST WNDCLASSEXW *)
GLenum GLuint GLenum GLsizei const GLchar * buf
LRESULT CALLBACK preview_proc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
static HMENU hColorPopupMenu
#define STRING_WRITE_ACCESS_DENIED
BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
void WINAPI SHAddToRecentDocs(UINT uFlags, LPCVOID pv)
basic_ostream< _CharT, _Traits > &_STLP_CALL endl(basic_ostream< _CharT, _Traits > &__os)
static void AddButton(HWND hwndToolBar, int nImage, int nCommand)
HWND WINAPI SetActiveWindow(_In_ HWND)
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)
GLenum const GLfloat * params
#define ERROR_ACCESS_DENIED
LPWSTR file_basename(LPWSTR path)
static const WCHAR wszFile[]
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_ UINT, _In_ int, _In_ int, _In_ UINT)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
static void update_window(void)
static size_t double number
static void DialogOpenFile(void)
LPWSTR WINAPI GetCommandLineW(VOID)
static const WCHAR wszMainWndClass[]
BOOL WINAPI ChooseFontW(LPCHOOSEFONTW lpChFont)
BOOL WINAPI GetOpenFileNameW(OPENFILENAMEW *ofn)
HWND WINAPI CreateStatusWindowW(LONG style, LPCWSTR text, HWND parent, UINT wid)
GLenum GLuint GLenum GLsizei length
#define TB_COMMANDTOINDEX
static BOOL prompt_save_changes(void)
png_const_structrp png_const_inforp int * unit
HACCEL WINAPI LoadAcceleratorsW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
LRESULT CALLBACK ruler_proc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
LONG WINAPI GetWindowLongW(_In_ HWND, _In_ int)
#define CB_GETCOMBOBOXINFO
BOOL WINAPI SetMenuItemInfoW(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOW)
static void add_size(HWND hSizeListWnd, unsigned size)
struct _PROPSHEETPAGEW PROPSHEETPAGEW
struct _PROPSHEETPAGEW * LPPROPSHEETPAGEW
#define CCS_NOPARENTALIGN
BOOL preview_isactive(void)
static void set_size(float size)
VOID WINAPI GetLocalTime(OUT LPSYSTEMTIME lpSystemTime)
#define ICC_USEREX_CLASSES
#define CBEM_GETEDITCONTROL
INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW lppsh)
UCHAR ab[sizeof("Hello World!") -1]
#define STRING_LOAD_RICHED_FAILED
UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int)
static void set_bar_states(void)
#define DialogBoxW(i, t, p, f)
#define STRING_SAVE_LOSEFORMATTING
#define OFN_PATHMUSTEXIST
static void on_fontlist_modified(LPWSTR wszNewFaceName)
BOOL WINAPI SetProcessDefaultLayout(DWORD dwDefaultLayout)
INT replace(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], DWORD dwFlags, BOOL *doMore)
static void update_size_list(void)
static UINT ID_FINDMSGSTRING
static DWORD CALLBACK stream_in(DWORD_PTR cookie, LPBYTE buffer, LONG cb, LONG *pcb)
BOOL WINAPI GetMenuItemInfoW(_In_ HMENU, _In_ UINT, _In_ BOOL, _Inout_ LPMENUITEMINFOW)
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
static BOOL is_bar_visible(int bandId)
int WINAPI MessageBoxW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_ UINT)
static int CALLBACK enum_font_proc(const LOGFONTW *lpelfe, const TEXTMETRICW *lpntme, DWORD FontType, LPARAM lParam)
#define ID_EDIT_CHARFORMAT
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
GLenum const GLvoid GLbitfield fontStyle
HWND WINAPI FindTextW(LPFINDREPLACEW pfr)
BOOL WINAPI SetMenu(_In_ HWND, _In_opt_ HMENU)
#define STRING_ALIGN_RIGHT
BOOL WINAPI SetWindowTextA(_In_ HWND, _In_opt_ LPCSTR)
#define ID_EDIT_DEFCHARFORMAT
#define ID_EDIT_SELECTIONINFO
static BOOL DoSaveFile(LPCWSTR wszSaveFileName, WPARAM format)
static void set_default_font(void)
static WCHAR wszDefaultFileName[MAX_STRING_LEN]
static WCHAR wszSaveChanges[MAX_STRING_LEN]
int WINAPI GetWindowTextLengthW(_In_ HWND)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
#define STRING_OPEN_FAILED
int WINAPI GetSystemMetrics(_In_ int)
static LRESULT OnCreate(HWND hWnd)
DWORD WINAPI CheckMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
#define STRING_VIEWPROPS_RICHTEXT
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
static BOOL number_from_string(LPCWSTR string, float *num, UNIT *punit)
static void dialog_about(void)
unsigned __int3264 UINT_PTR
static LRESULT OnSize(HWND hWnd, WPARAM wParam, LPARAM lParam)
static WCHAR units_inchW[MAX_STRING_LEN]
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
static const WCHAR stringFormat[]
static WPARAM fileformat_flags(int format)
void init_preview(HWND hMainWnd, LPWSTR wszFileName)
#define MB_ICONINFORMATION
int WINAPI TranslateAcceleratorW(_In_ HWND, _In_ HACCEL, _In_ LPMSG)
#define FILE_ATTRIBUTE_NORMAL
static void append_current_units(LPWSTR buffer)
static INT_PTR CALLBACK formatopts_proc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
HWND WINAPI CreateWindowExW(_In_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
#define STRING_PRINTING_NOT_IMPLEMENTED
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
static INT_PTR CALLBACK tabstops_proc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
#define STRING_VIEWPROPS_TEXT
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
_In_ UCHAR _In_ UCHAR _In_ ULONG Code
BOOL WINAPI ShellAboutW(HWND hWnd, LPCWSTR szApp, LPCWSTR szOtherStuff, HICON hIcon)
static int fileformat_number(WPARAM format)
#define memcpy(s1, s2, n)
#define STRING_WRITE_FAILED
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
BOOL WINAPI MoveWindow(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ BOOL)
struct _paraformat PARAFORMAT
static void dialog_viewproperties(void)
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
#define STRING_ALIGN_LEFT
const PROPSHEETPAGEW * LPCPROPSHEETPAGEW
_Check_return_ double __cdecl wcstod(_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr)
#define STRING_ALIGN_CENTER
static void populate_font_list(HWND hListWnd)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
UINT WINAPI RegisterWindowMessageW(_In_ LPCWSTR)
static INT_PTR CALLBACK datetime_proc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
static void DoOpenFile(LPCWSTR szOpenFileName)
static const WCHAR wszAppTitle[]
#define STRING_PROMPT_SAVE_CHANGES
#define STRING_NEWFILE_TXT_UNICODE
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
void target_device(HWND hMainWnd, DWORD wordWrap)
static WCHAR units_ptW[MAX_STRING_LEN]
int WINAPI GetWindowTextW(HWND hWnd, LPWSTR lpString, int nMaxCount)
static float(__cdecl *square_half_float)(float x
void print_quick(HWND hMainWnd, LPWSTR wszFileName)
#define PSH_PROPSHEETPAGE
#define ID_EDIT_PARAFORMAT
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define OFN_OVERWRITEPROMPT
#define ID_TOGGLE_FORMATBAR
#define CBEM_GETCOMBOCONTROL
#define ReadFile(a, b, c, d, e)
static LRESULT handle_findmsg(LPFINDREPLACEW pFr)
LRESULT preview_command(HWND hWnd, WPARAM wParam)
static BOOL DialogSaveFile(void)
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
#define STRING_OLE_STORAGE_NOT_SUPPORTED
static void HandleCommandLine(LPWSTR cmdline)