#include <w32dlib/common.h>
Static Public Member Functions | |
| static void | Initialise () |
| Initialises any Windows APIs required by W32DLib. | |
| static void | MessageTitle (const char *title) |
| Sets the default titles for message boxes. | |
| static void | Message (HWND parent, const char *title, const char *msg) |
| Displays a message box. | |
| static void | Message (HWND parent, const char *title, const std::string &msg) |
| Displays a message box. | |
| static void | Error (HWND parent, const char *title, const char *msg) |
| Displays an error message box. | |
| static void | Error (HWND parent, const char *title, const std::string &msg) |
| Displays an error message box. | |
| static bool | Query (HWND parent, const char *title, const char *msg) |
| Displays a Yes/No message box. | |
| static bool | Query (HWND parent, const char *title, const std::string &msg) |
| Displays a Yes/No message box. | |
| static bool | OpenFile (HWND parent, const char *title, std::string &path, const char *filter) |
| Requests a file to open. | |
| static bool | SaveFile (HWND parent, const char *title, std::string &path, const char *filter) |
| Requests a file to save. | |
| static bool | SelectDir (HWND parent, const char *title, std::string &path) |
| Selects a directory. | |
| static std::string | GetOSError () |
| Returns the last error as a readable string. | |
| static HINSTANCE | GetInstance () |
| Get an HINSTANCE. | |
| static HWND | GetAppWindow () |
| Get an application's top-level window. | |
This class provides common dialogs and useful routines.
|
||||||||||||||||
|
Displays an error message box.
|
|
||||||||||||||||
|
Displays an error message box.
|
|
|
Get an application's top-level window. This finds the top-level window for the application. This is mainly a helper for when you're in a DLL, cannot access the applications window handle any other way and wish to display a modal Dialog.
|
|
|
Get an HINSTANCE. This should (though it hasn't been proved in all cases) get the apropriate HINSTANCE for the application or DLL the library has be linked into.
|
|
|
Returns the last error as a readable string.
|
|
|
Initialises any Windows APIs required by W32DLib.
|
|
||||||||||||||||
|
Displays a message box.
|
|
||||||||||||||||
|
Displays a message box.
|
|
|
Sets the default titles for message boxes. All MessageBox type calls provide a default title if non is provided. Using this you can set the default title to an application specific one.
|
|
||||||||||||||||||||
|
Requests a file to open.
|
|
||||||||||||||||
|
Displays a Yes/No message box.
|
|
||||||||||||||||
|
Displays a Yes/No message box.
|
|
||||||||||||||||||||
|
Requests a file to save.
|
|
||||||||||||||||
|
Selects a directory.
|
1.4.1