Hi all,
Recently I use Crystal Report for my reporting tool. As it has its own
preview window, I can not respond to its form_activate event. However, I
still can obtain the window's handle. Capturing the form_activate event is
an absolute need since I want to adjust the toolbars in the MDI Form accordingly
if the preview window activates. I put the preview window as MDI child window.

Can the API SendMessage function with WM_MDIACTIVATE or WM_GETACTIVE message
achieve this ?

Could someone give me some sample codes to achieve this ?

Any help would be greatly appreciated.

Thanks in advance


Setya