Hi,
I have a main form which will open many other forms with their own handles in Windows TaskBar using the following code:
procedure TCdsEnvEdtFrm.CreateParams(var Params:TCreateParams);
begin
inherited CreateParams(Params);
Params.ExStyle := Params.ExStyle or WS_EX_APPWINDOW;
Params.WndParent := GetDesktopWindow;
end;
But a ShowMessage dialog from these forms will pop-up on top of the main form instead on the respective form. When I click the OK button on the ShowMessage dialog, it then goes back to the respective form.
What happening here. Any solution for this?
Thanks.
regards,
CM
I have a main form which will open many other forms with their own handles in Windows TaskBar using the following code:
procedure TCdsEnvEdtFrm.CreateParams(var Params:TCreateParams);
begin
inherited CreateParams(Params);
Params.ExStyle := Params.ExStyle or WS_EX_APPWINDOW;
Params.WndParent := GetDesktopWindow;
end;
But a ShowMessage dialog from these forms will pop-up on top of the main form instead on the respective form. When I click the OK button on the ShowMessage dialog, it then goes back to the respective form.
What happening here. Any solution for this?
Thanks.
regards,
CM