-
Notifications
You must be signed in to change notification settings - Fork 0
/
dialog.h
27 lines (20 loc) · 907 Bytes
/
dialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Lev Panov, 2057/2, October 2010 */
#ifndef DIALOG_H
#define DIALOG_H
#include <windows.h>
/* Dialog functions */
void DIALOG_FileNew(void); // New file dialog
void DIALOG_FileOpen(void); // Open file dialog
bool DIALOG_FileSave(void); // Save file dialog
bool DIALOG_FileSaveAs(void); // Save file as dialog
void DIALOG_FileExit(void); // File exit dialog
void DIALOG_EditWrap(void); // Toggle wrap mode dialog
// Format and show a message in a message box
int DIALOG_StringMsgBox(HWND hParent, int formatId, const char *String, DWORD dwFlags);
/* Utility functions */
void ShowLastError(void); // Show last windows error
void UpdateWindowCaption(void); // Update window caption
bool FileExists(const char *Filename); // Check if file exists
bool DoCloseFile(void); // Close file
void DoOpenFile(const char *FileName); // Open file
#endif // DIALOG_H