Sack Library Documentation
ContentsIndexReferenceHome
PreviousUpNext
sack::PSI::OnMotionCommon Macro
C++
void (__cdecl * PositionChanging)(PSI_CONTROL pc, LOGICAL bStart);
#define OnMotionCommon(name) \
    __DefineRegistryMethodP(PSI_PRELOAD_PRIORITY,PSI_ROOT_REGISTRY,unused_name,WIDE("control"),name WIDE("/rtti"),WIDE("some_parents_position_changing"),void,(PSI_CONTROL,LOGICAL), __LINE__)

move_starting is TRUE when the position starts changing and is false when the change is done... this allows a critical section to be entered and left around the resize.

Registers under 

/psi/control/<name>/rtti/some_parents_position_changing=(PSI_CONTROL,LOGICAL)@void@_@some_parents_position_changing

static void OnMotionCommon(name)( PSI_CONTROL control, LOGICAL move_starting )
{
    if( move_starting )
    {
       // move is starting, but still in old location
    }
    else
    {
       // move has completed and control is in its target location.
    }
}
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!