Thread: activation

  1. #1


    Hi all, is there anyway to make a windows program active so no other program can interfere with it. I need to show a welcome screen for about 5 seconds, and if the user tries to switch to a different program it won't allow them to. The user should be able to switch programs once the welcome screen has finished. Iíve tried using the onhide event but to no avail. Any ideas would be appreciate, thanks.

  2. #2
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    >if the user tries to switch to a different program it won't allow them to

    If your program does this, don't expect people to use it.

    This thread should really be under 'Windows' I think. However:

    You could try intercepting an application deactivation message & re-active your app when it receives one.

    This is a really nasty thing to do however, and I would advise against it. Sounds like marketroids are designing your software.
    Last edited by Davros; 12-17-2002 at 02:49 PM.

  3. #3
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    That is not behaviour that should be built into programs to run on a multitasking OS.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :-

  4. #4
    Well if i can't fix the application, i need the application to pause some how until the application becomes active again. Therefore, the process which is performing the welcome screen would have to constantly check for an application deactivation event, and resume where it was on an application onactivation event. The welcome process is quite complicated, and i can't see any other way of doing this, other than freezing the app for about 4 seconds until the welcome screen is finished.

  5. #5
    Ok what about this? I hold the welcome code within a thread, and pause the thread with (suspend). The pause should occur when an ondeactivation event has occurred, and the thread will be re-enabled when the application becomes active again. Would this be a valid approach?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. activation code for windows
    By xddxogm3 in forum Tech Board
    Replies: 4
    Last Post: 10-24-2005, 01:01 PM
  2. XP Activation problems.....
    By jverkoey in forum A Brief History of
    Replies: 11
    Last Post: 01-27-2005, 05:43 PM
  3. Voice activation (change from dictation to commands)
    By the_head in forum C++ Programming
    Replies: 3
    Last Post: 12-23-2004, 05:35 PM