Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"ON_SAM_Validate" Stopp messagebox

Status
Not open for further replies.

Wolf67

Programmer
Mar 18, 2005
11
SE
I have an combox that i validate for example if it´s empty with "ON_SAM_Validate".
If i have no value in the box it sends a SAL_Messagebox that say that the box is empty. I have also
an Abort button that destroys the window. When I stand in the combobox an press the button "Abort"
the "ON_SAM_Validate" goes of and the messagebox appears. Could i check in the ON_SAM_Validate if the Abort button
was pressed an the stop the messagebox to appear. Or stop it on any other way?
 
hello,
you will get a return-value from message-boxes which button you have clicked (f.e. a message box with "yes" and "no" button returns IDYES or IDNO when you click the buttons.
this return value you can use to handle the validate message!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top