how to ask a yes or no question
-
Hello I need to ask a Yes or No question in a message box . like Application->MessageBoxA() but with two buttons : Yes and No I am working with Borland C++Builder. thanks
Specify MB_YESNO for uType parameter of the MessageBox function. More info here[^]
Cédric Moonen Software developer
Charting control [Updated - v1.1] -
Specify MB_YESNO for uType parameter of the MessageBox function. More info here[^]
Cédric Moonen Software developer
Charting control [Updated - v1.1] -
Hello I need to ask a Yes or No question in a message box . like Application->MessageBoxA() but with two buttons : Yes and No I am working with Borland C++Builder. thanks
If you search for MessageBox on the msdn.microsoft.com website you will see that it takes four input parameters like this: MessageBox(HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType); HWND is the window handle lpText is the text that is going to ask the question lpCaption is the title of the message box uType is the type of box (for a yes/no box set it to MB_YESNO in visual studio) make sure you include the required header file Windows.h for the defines
Chipper Martin
-
Hello I need to ask a Yes or No question in a message box . like Application->MessageBoxA() but with two buttons : Yes and No I am working with Borland C++Builder. thanks