mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-05 09:00:54 +00:00
add messagebox
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@261 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user