Example #1
0
    pick_ACTS( WdeLBoxObject )
#undef pick

/****************************************************************************/
/* static variables                                                         */
/****************************************************************************/
static HINSTANCE                WdeApplicationInstance;
static DISPATCH_FN              *WdeLBoxDispatch;
static WdeDialogBoxControl      *WdeDefaultLBox = NULL;
static int                      WdeLBoxWndExtra;
static WNDPROC                  WdeOriginalLBoxProc;
//static WNDPROC                WdeLBoxProc;

static DISPATCH_ITEM WdeLBoxActions[] = {
    #define pick(e,n,c) {e, (DISPATCH_RTN *)WdeLBox ## n},
    pick_ACTS( WdeLBoxObject )
    #undef pick
};

#define MAX_ACTIONS      (sizeof( WdeLBoxActions ) / sizeof( DISPATCH_ITEM ))

OBJPTR CALLBACK WdeLBoxCreate( OBJPTR parent, RECT *obj_rect, OBJPTR handle )
{
    if( handle == NULL ) {
        return( WdeMakeLBox( parent, obj_rect, handle, LBS_STANDARD, "", LISTBOX_OBJ ) );
    } else {
        return( WdeLBCreate( parent, obj_rect, NULL, LISTBOX_OBJ, (WdeDialogBoxControl *)handle ) );
    }
}

OBJPTR WdeMakeLBox( OBJPTR parent, RECT *obj_rect, OBJPTR handle,
Example #2
0
/****************************************************************************/
/* static variables                                                         */
/****************************************************************************/
static HINSTANCE                WdeApplicationInstance;
static DISPATCH_FN              *WdeTViewDispatch;
static WdeDialogBoxControl      *WdeDefaultTView = NULL;
static int                      WdeTViewWndExtra;
static WNDPROC                  WdeOriginalTViewProc;
//static WNDPROC                WdeTViewProc;

#define WWC_TREEVIEW     WC_TREEVIEW

static DISPATCH_ITEM WdeTViewActions[] = {
    #define pick(e,n,c) {e, (DISPATCH_RTN *)WdeTView ## n},
    pick_ACTS( WdeTViewObject )
    #undef pick
};

#define MAX_ACTIONS     (sizeof( WdeTViewActions ) / sizeof( DISPATCH_ITEM ))

OBJPTR CALLBACK WdeTViewCreate( OBJPTR parent, RECT *obj_rect, OBJPTR handle )
{
    if( handle == NULL ) {
        return( WdeMakeTView( parent, obj_rect, handle, 0, "", TVIEW_OBJ ) );
    } else {
        return( WdeTVCreate( parent, obj_rect, NULL, TVIEW_OBJ, (WdeDialogBoxControl *)handle ) );
    }
}

OBJPTR WdeMakeTView( OBJPTR parent, RECT *obj_rect, OBJPTR handle, DialogStyle style, char *text, OBJ_ID id )
Example #3
0
/****************************************************************************/
/* static variables                                                         */
/****************************************************************************/
static HINSTANCE                WdeApplicationInstance;
static DISPATCH_FN              *WdeTrakDispatch;
static WdeDialogBoxControl      *WdeDefaultTrak = NULL;
static int                      WdeTrakWndExtra;
static WNDPROC                  WdeOriginalTrakProc;
//static WNDPROC                WdeTrakProc;

#define WTRACKBAR_CLASS  TRACKBAR_CLASS

static DISPATCH_ITEM WdeTrakActions[] = {
    #define pick(e,n,c) {e, (DISPATCH_RTN *)WdeTrak ## n},
    pick_ACTS( WdeTrakObject )
    #undef pick
};

#define MAX_ACTIONS     (sizeof( WdeTrakActions ) / sizeof( DISPATCH_ITEM ))

OBJPTR CALLBACK WdeTrakCreate( OBJPTR parent, RECT *obj_rect, OBJPTR handle )
{
    if( handle == NULL ) {
        return( WdeMakeTrak( parent, obj_rect, handle, 0, "", TRACKBAR_OBJ ) );
    } else {
        return( WdeTrackCreate( parent, obj_rect, NULL, TRACKBAR_OBJ,
                                (WdeDialogBoxControl *)handle ) );
    }
}