Sack Library Documentation
ContentsIndexReferenceHome
PreviousUpNext
sack::PSI::OnDrawCommon Macro
C++
int (__cdecl * draw)(PSI_CONTROL);
#define OnDrawCommon(name) \
    __DefineRegistryMethodP(PSI_PRELOAD_PRIORITY,PSI_ROOT_REGISTRY,unused_name,WIDE("control"),name WIDE("/rtti"),WIDE("draw"),int,(PSI_CONTROL), __LINE__)

Event given to a control when it needs to draw.

Registers under 

/psi/control/<name>/rtti/draw=(PSI_CONTROL)@void@_@draw

static int OnDrawCommon(name)( PSI_CONTROL control )
{
   // draw (or nto) to a control.
   // return TRUE to update, otherwise FALSE, and update will not be performed.
   // but then, child controls also do not draw, because their parent is not dirty?
}
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!