I learned that DIALOG END hDlg from the current Dialog is also to be avoided, for the same reason.
In general terms, windows ignores some (API) functions if used during processing of certain messages... for example, DIALOG END should not be performed during processing %WM_INITDIALOG.
------------------
Lance
PowerBASIC Support
mailto:[email protected][email protected]</A>
Leave a comment: