bool WdeSBNoodleSize( OBJPTR obj, bool recreate ) { HWND hWnd; WdeSBarObject *sb_obj; if( obj == NULL ) { return( FALSE ); } sb_obj = (WdeSBarObject *)obj; if( recreate ) { Forward( obj, DESTROY_WINDOW, FALSE, NULL ); Forward( obj, CREATE_WINDOW, FALSE, NULL ); } if( Forward( (OBJPTR)sb_obj->object_handle, GET_WINDOW_HANDLE, &hWnd, NULL ) ) { WdeResInfo *rinfo; rinfo = WdeGetCurrentRes(); if( rinfo != NULL ) { RECT rect; GetWindowRect( hWnd, &rect ); MapWindowPoints( (HWND)NULL, rinfo->forms_win, (POINT *)&rect, 2 ); HideSelectBoxes(); Resize( sb_obj->control, &rect, FALSE ); WdeUpdateCDialogUnits( sb_obj->control, &rect, NULL ); ShowSelectBoxes(); } } return( TRUE ); }
void WdeHandleTabEvent( bool up ) { OBJPTR obj; if( !WdeGetNumRes() ) { return; } if( (obj = WdeGetNextObject( up, NULL, NULL )) != NULL ) { MakeObjectCurrent( obj ); HideSelectBoxes(); WdeHandleGotoCurrentObject(); ShowSelectBoxes(); } }