Simply substitute your API based message pump for the DIALOG DOEVENTS loop. There is no "problem" having more than one message pump in your code running at the same.
BTW (for the lurkers), there is an example of implementing a standard DDT modeless dialog in the ADDRESS.BAS example.
Code:
'Psuedocode CALLBACK MyCallBack SELECT CASE CBMSG CASE %WM_COMMAND IF CBCTL = ... DIALOG NEW... CONTROL ADD... DIALOG SHOW MODELESS... DO DIALOG DOEVENTS DIALOG GET SIZE... LOOP UNTIL dialogsize = 0 END IF
Lance
PowerBASIC Support
mailto:[email protected][email protected]</A>
Leave a comment: