You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
%MB_YES = &H6& (replaced by %MB_CANCELTRYCONTINUE = &H00000006&)
%MB_NO = &H7&
In Win32api.inc those two "equates" has disappeared
So also from MSDN WINUSER.H
Someone know why?
Message box %MB_YESNO still return "6" or "7"
I have no record of there ever having been separate %MB_YES and %MB_NO
equates. The equates you'd use in defining the available options would
be %MB_YESNO or %MB_YESNOCANCEL, if you're looking for Yes/No options.
I have dusted off an old TCP Client/server application i wrote back in january 2000.
It did not work on WIN2000 then, and I thought I try to trace down the problems..
I hardly ever use "messageboxes" so Eric is probably right.
MB_YES is probably %IDYES (reply from MsgBox style %MB_YESNO when clicking YES-button)
Back in januari 2000 I might have added them to Win32Api.inc, I am not doing
that kind of addition to standard include-files anymore....
Thanks
You mean like "Format hard drive now ?" + OK button ? In a sort-of similar vein, I remember
an excerpt from a series of Windows howlers - a message box that pops up after a long delay
and says -
"Sorry, I forgot to tell you, that takes a long time"
THis is the way I've always done it, much like the NT event log...
Code:
If IsTrue g_lPromptFlag Then
g_Result = MsgBox("Are you sure you wish to delete the log?",%IDOK,g_szMINE)
If g_Result <> %IDOK Then Exit Function
g_Result = MsgBox("Would you like to save a copy?",%MB_YESNOCANCEL,g_szMINE)
If g_Result = %IDCANCEL Then Exit Function
If g_Result = %IDYES Then
g_Result = SaveLogAsText
If IsFalse g_Result Then Exit Function 'Don't delete logfile
End If
End If
------------------
Scott Turchin
MCSE, MCP+I
Computer Creations Software
http://www.tngbbs.com/ccs
Scott Turchin
MCSE, MCP+I http://www.tngbbs.com
---------------------- True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment