|
I was on the wrong track. Someone has put me
on the right track now, but I'm not sure how best to implement it.
I can now get DLL forms to handle tabs!!! But
this requires taking over the processing of all windows messages for the
application. I put this in the Application.OnIdle event.
Handle := FindWindow(...); // handle to DLL
dialog ...
var
LMsg: TMsg;
begin
while GetMessage(LMsg, 0, 0, 0) do
begin
if not IsDialogMessage(Handle,LMsg) then
begin
TranslateMessage(LMsg); DispatchMessage(LMsg); end; end; end; This works great for the DLL window, but the
main application now does not process any windows messages.
Is there a better way? I don't understand why
it will not process window messages for the main app. I thought
it should be similar to doing an Application.ProcessMessages.
Thoughts?
Thanks,
Ross.
|
_______________________________________________ Delphi mailing list [email protected] http://ns3.123.co.nz/mailman/listinfo/delphi
