MDIChild Flicker

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35850
    Fausto Jr.
    Participant

    I want to share you a technique about how to Show a MDIChild or alternate between them with no Flicker.

    try

    SendMessage(Application.MainForm.ClientHandle, WM_SETREDRAW, 0, 0);

    Show;

    finally

    SendMessage(Application.MainForm.ClientHandle, WM_SETREDRAW, 1, 0);

    RedrawWindow(Application.MainForm.ClientHandle, nil, 0, RDW_ERASE or RDW_FRAME or RDW_INVALIDATE or RDW_ALLCHILDREN or RDW_NOINTERNALPAINT);

    end;

    Enjoy it!!! It works very well.

    #50875
    Support
    Keymaster

    Thank you, maybe this info will be useful. 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.