add messagebox

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@261 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-11 08:37:24 +00:00
parent 6361381214
commit c6b81aff02
9 changed files with 228 additions and 8 deletions

View File

@@ -68,4 +68,44 @@ enum MwALIGNMENT {
*/
#define MwMB_ICONNEWS 0x5
/*!
* %brief Button mask
*/
#define MwMB_BUTTONMASK 0xf0
/*!
* %brief OK button
*/
#define MwMB_BUTTONOK 0x10
/*!
* %brief Cancel button
*/
#define MwMB_BUTTONCANCEL 0x20
/*!
* %brief Yes button
*/
#define MwMB_BUTTONYES 0x40
/*!
* %brief No button
*/
#define MwMB_BUTTONNO 0x80
/*!
* %brief Ok and Cancel button
*/
#define MwMB_BUTTONOKCANCEL (MwMB_BUTTONCANCEL | MwMB_BUTTONOK)
/*!
* %brief Yes and No button
*/
#define MwMB_BUTTONYESNO (MwMB_BUTTONYES | MwMB_BUTTONNO)
/*!
* %brief Yes, No and Cancel button
*/
#define MwMB_BUTTONYESNOCANCEL (MwMB_BUTTONYES | MwMB_BUTTONNO | MwMB_BUTTONCANCEL)
#endif

View File

@@ -14,6 +14,7 @@ extern "C" {
#endif
/*!
* %brief Creates a message box
* %param handle Widget
* %param text Text
* %param title Title text
@@ -22,6 +23,13 @@ extern "C" {
*/
MWDECL MwWidget MwMessageBox(MwWidget handle, const char* text, const char* title, unsigned int flag);
/*!
* %brief Gets a child of the message box
* %param handle Widget
* %param child Child
*/
MWDECL MwWidget MwMessageBoxGetChild(MwWidget handle, int child);
#ifdef __cplusplus
}
#endif