CM_SHOWINGCHANGED problem in Windows 98

Posted on 2009-02-20
Last Modified: 2012-05-06
I have developed a project using Delphi 2007 and it uses alot of Frames. As you know, there is no OnShow / OnHide events when using TFrames so you have to use a workaround which involves windows messages. The CM_SHOWINGCHANGED message works fine in XP, but since we had to port our application to Win98 we noticed that CM_SHOWINGCHANGED does not work in W98.

We have tried to move the code to overidden Create / Destroy sections, but this causes more problems.

Is there a workaround for this problem ?

Thanks in advance.
Question by:markh51
    LVL 36

    Expert Comment

    by:Geert Gruwez
    what is it you are doing in the TFrame that needs to wait for the show

    Author Comment

    Alot of our Frames are used to display data and when there is alot of data to show it takes a while to show which does not look good. Normaly the data window shows and when its busy loading data it will show "please wait". I cant seem to get this to work in the constructor.

    Accepted Solution

    The only way so far which I can see works, is to use a timer on the frame which checks if it is showing.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
    This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now