WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   Schließen Ja/Nein in C++ (http://www.wcm.at/forum/showthread.php?t=127399)

Chrisi99 05.03.2004 14:13

Schließen Ja/Nein in C++
 
hm ich stehe grade vor einem Problem: wie bekomme ich es hin, dass in einem VC++ Programm wenn ich auf das [X] klicke so ein "wollen sie wirklich beenden Ja/Nein" Fenster kommt.

gibts das vorgefertigt oder soll man sowas selbst machen... ??


mfg

Flink 06.03.2004 20:10

Code:

if (MessageBox(hwndDlg, "Wollen Sie wirklich beenden?", "Programm beenden",
        MB_YESNO)==IDYES)
      exit(0);

Visual C++ 6.0 Programm-Beispiele


Alle Zeitangaben in WEZ +2. Es ist jetzt 17:14 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag