Supported Browsers Home   
PM_suspendAppCodesType Previous   
PM_suspendApp_cb Next   
Type Definitions Up   

PM_suspendAppFlagsType

Declaration

typedef enum {
    PM_DEACTIVATE   = 0x0001,
    PM_REACTIVATE   = 0x0002
    } PM_suspendAppFlagsType

Prototype In

pmapi.h

Description

Defines the suspend application callback flags, passed to the suspend application callback registered with the PM library. This callback is called when the user presses one of the system key sequences indicating that they wish to change the active application. The PM library will catch these events and if you have registered a callback, will call the callback to save the state of the application so that it can be properly restored when the user switches back to your application.

Note:    Your application suspend callback may get called twice with the PM_DEACTIVATE flag in order to test whether the switch should occur.

Note:    When your callback is called with the PM_DEACTIVATE flag, you cannot assume that you have access to the display memory surfaces as they may have been lost by the time your callback has been called.

Members

PM_DEACTIVATE

Application losing active focus

PM_REACTIVATE

Application regaining active focus

 

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com