CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2006
    Posts
    344

    [RESOLVED] More Automate dialog app

    I am in need of assistance again.

    I automated a small app that was never designed to be automated via a thread. To hide it I had it call a function that moved the window off-screen.

    However this isn't satisfactory as it still flashes on screen, however briefly.

    I kept moving the message to hide the app as far back as it could go - it resides at the very start of OnInitDialog but it still flickers.

    I first tried to override PreCreateWindow to change the window parameters but that seemingly doesn't get called in a dialog, so I turned my attention to OnCreate and modifying the CREATESTRUCT there before it is passed to the CWnd. However while that function gets called the code had no effect - the dialog is still shown.

    So I need some way of hiding the window before it is visible, but still interactive to the thread that performs the automation.

    Thanks, G.

  2. #2
    Join Date
    Jan 2006
    Posts
    344

    Re: More Automate dialog app

    Manage to find the answer - you need to override the ON_WM_WINDOWPOSCHANGING message.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured