shiva@well.sf.ca.us (Kenneth Porter) (07/01/91)
I have a dialog box with several entry boxes. The valid values are a range of numbers. Upon receiving EN_KILLFOCUS, I want to pop up a message box if the entered value doesn't meet the requirements and return the focus to the offending entry box. I can get the message box to pop up, but WinSetFocus doesn't return the focus to the offending entry box. I'm using the code from the QuickHelp example that calls WinSetFocus immediately after WinMessageBox from within the EN_KILLFOCUS handler. What am I doing wrong? The focus just goes to the next control (whatever the user selected). Ken (shiva@well.sf.ca.us)