Mercurial > dwindows
comparison mac/dw.c @ 413:2e6c28ee4794
Skeletal changes to the MacOS file, this would be a good starting point
for a port. :)
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 13 May 2003 08:01:03 +0000 |
parents | 456c13a6e332 |
children | 4be57ee7e006 |
comparison
equal
deleted
inserted
replaced
412:a8015e02b590 | 413:2e6c28ee4794 |
---|---|
648 * Parameters: | 648 * Parameters: |
649 * title: The title of the message box. | 649 * title: The title of the message box. |
650 * format: printf style format string. | 650 * format: printf style format string. |
651 * ...: Additional variables for use in the format. | 651 * ...: Additional variables for use in the format. |
652 */ | 652 */ |
653 int API dw_messagebox(char *title, char *format, ...) | 653 int API dw_messagebox(char *title, int flags, char *format, ...) |
654 { | 654 { |
655 va_list args; | 655 va_list args; |
656 char outbuf[1024]; | 656 char outbuf[1024]; |
657 | 657 |
658 va_start(args, format); | 658 va_start(args, format); |
662 #if 0 | 662 #if 0 |
663 WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, outbuf, title, 0, MB_OK | MB_INFORMATION | MB_MOVEABLE); | 663 WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, outbuf, title, 0, MB_OK | MB_INFORMATION | MB_MOVEABLE); |
664 #endif | 664 #endif |
665 | 665 |
666 return strlen(outbuf); | 666 return strlen(outbuf); |
667 } | |
668 | |
669 /* | |
670 * Displays a Message Box with given text and title.. | |
671 * Parameters: | |
672 * title: The title of the message box. | |
673 * text: The text to display in the box. | |
674 * Returns: | |
675 * True if YES False of NO. | |
676 */ | |
677 int API dw_yesno(char *title, char *text) | |
678 { | |
679 return FALSE; | |
680 } | 667 } |
681 | 668 |
682 /* | 669 /* |
683 * Makes the window topmost. | 670 * Makes the window topmost. |
684 * Parameters: | 671 * Parameters: |