robotgo/window/alert.h
2018-03-02 23:08:12 +08:00

18 lines
451 B
C

#pragma once
#ifndef ALERT_H
#define ALERT_H
#if defined(_MSC_VER)
#include "ms_stdbool.h"
#else
#include <stdbool.h>
#endif
/* Displays alert with given attributes, and blocks execution until the user
* responds. Returns 0 if defaultButton was pressed, 1 if cancelButton was
* pressed, or -1 if an error occurred. */
int showAlert(const char *title, const char *msg,
const char *defaultButton, const char *cancelButton);
#endif /* ALERT_H */