home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0040 - 0049 / ibm0040-0049 / ibm0040.tar / ibm0040 / ZINC_6.ZIP / DOSSRC.ZIP / D_CTRL3.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1991-06-01  |  781 b   |  21 lines

  1. //    Zinc Interface Library - D_CTRL3.CPP
  2. //    COPYRIGHT (C) 1990, 1991.  All Rights Reserved.
  3. //    Zinc Software Incorporated.  Pleasant Grove, Utah  USA
  4.  
  5. #include "ui_dsn.hpp"
  6. #include "d_help.hlh"
  7. #include <stdio.h>
  8.  
  9. #pragma argsused
  10. void UI_DESIGN_MANAGER::ResourceControl(void *data, UI_EVENT &event)
  11. {
  12.     UIW_POP_UP_ITEM *item = (UIW_POP_UP_ITEM *)data;
  13.     UI_STORAGE_ELEMENT *element = _storage->Seek(item->DataGet(TRUE));
  14.     UI_WINDOW_OBJECT *(*newFunction)(const char *name, UI_STORAGE *file, USHORT loadFlags);
  15.     UI_JUMP_LIST::_jumpList.GetFunction(element->search.type, &newFunction);
  16.     _currentObject = newFunction(element->search.stringID, _storage, L_NO_FLAGS);
  17.     _currentObject->woAdvancedStatus |= WOAS_EDIT_MODE;
  18.     item->windowManager->Add(_currentObject);
  19. }
  20.  
  21.