a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 intuition.library
  ActivateGadget
  ActivateWindow
  AddClass
  AddGList
  AddGadget
  AllocRemember
  AllocScreenBuffer
  AutoRequest
  BeginRefresh
  BuildEasyRequestArgs
  BuildSysRequest
  ChangeScreenBuffer
  ChangeWindowBox
  ClearDMRequest
  ClearMenuStrip
  ClearPointer
  CloseScreen
  CloseWindow
  CloseWorkBench
  CurrentTime
  DisplayAlert
  DisplayBeep
  DisposeObject
  DoGadgetMethodA
  DoubleClick
  DrawBorder
  DrawImage
  DrawImageState
  EasyRequestArgs
  EndRefresh
  EndRequest
  EraseImage
  FreeClass
  FreeRemember
  FreeScreenBuffer
  FreeScreenDrawInfo
  FreeSysRequest
  GadgetMouse
  GetAttr
  GetDefPrefs
  GetDefaultPubScreen
  GetPrefs
  GetScreenData
  GetScreenDrawInfo
  HelpControl
  InitRequester
  IntuiTextLength
  ItemAddress
  LendMenus
  LockIBase
  LockPubScreen
  LockPubScreenList
  MakeClass
  MakeScreen
  ModifyIDCMP
  ModifyProp
  MoveScreen
  MoveWindow
  MoveWindowInFrontOf
  NewModifyProp
  NewObject
  NextObject
  NextPubScreen
  ObtainGIRPort
  OffGadget
  OffMenu
  OnGadget
  OnMenu
  OpenScreen
  OpenScreenTagList
  OpenWindow
  OpenWindowTagList
  OpenWorkBench
  PointInImage
  PrintIText
  PubScreenStatus
  QueryOverscan
  RefreshGList
  RefreshGadgets
  RefreshWindowFrame
  ReleaseGIRPort
  RemakeDisplay
  RemoveClass
  RemoveGList
  RemoveGadget
  ReportMouse
  Request
  ResetMenuStrip
  RethinkDisplay
  ScreenDepth
  ScreenPosition
  ScreenToBack
  ScreenToFront
  ScrollWindowRaster
  SetAttrsA
  SetDMRequest
  SetDefaultPubScreen
  SetEditHook
  SetGadgetAttrsA
  SetMenuStrip
  SetMouseQueue
  SetPointer
  SetPrefs
  SetPubScreenModes
  SetWindowPointerA
  SetWindowTitles
  ShowTitle
  SizeWindow
  SysReqHandler
  TimedDisplayAlert
  UnlockIBase
  UnlockPubScreen
  UnlockPubScreenList
  ViewAddress
  ViewPortAddress
  WBenchToBack
  WBenchToFront
  WindowLimits
  WindowToBack
  WindowToFront
  ZipWindow
Include
GuruMeditation
Docs » Autodocs » intuition.library » CloseWorkBench

NAME

	CloseWorkBench -- Closes the Workbench screen.

SYNOPSIS

	Success = CloseWorkBench() 
D0
LONG CloseWorkBench( VOID );

FUNCTION

	This routine attempts to close the Workbench screen:
- Test whether or not any applications have opened windows on the
Workbench, and return FALSE if so. Otherwise ...
- Clean up all special buffers
- Close the Workbench screen
- Make the Workbench program mostly inactive (it will still
monitor disk activity)
- Return TRUE

INPUTS

	None 

RESULT

	TRUE if the Workbench screen closed successfully 
FALSE if the Workbench was not open, or if it has windows
open which are not Workbench drawers.

NOTES

	This routine has been drastically rewritten for V36.
It is much more solid, although we haven't eliminated
all the problem cases yet.

BUGS

	The name of this function is improperly spelled.  It ought
to have been CloseWorkbench().
It might be more convenient to have it return TRUE if the
Workbench wasn't opened when called. The idea as it is now
is probably this: if you want to free up the memory of the
Workbench screen when your program begins, you can call
CloseWorkBench(). The return value of that call indicates
whether you should call OpenWorkBench() when your program
exits: if FALSE, that means either the the Workbench existed
but you could not close it, or that it wasn't around to
begin with, and you should not try to re-open it.
We would prefer that you provide a user selection to attempt
to open or close the Workbench screen from within your application,
rather than your making assumptions like these.

SEE ALSO

OpenWorkBench()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Razor 1911

ANA
CSL
RZR
DJ

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se