Name
DetermineBorderSizes -- obtain information about window border sizes (V6.0)
Synopsis
void DetermineBorderSizes(ULONG flags, int *left, int *right,
         int *top, int *bottom);
Function
Hollywood will call this function before OpenDisplay() to determine the border sizes of the display your plugin is about to open. Hollywood needs this information prior to opening the display in order to align the display on its host screen or center it. You have to write the border size values in pixels to the integer pointers passed to this function.

Additionally, Hollywood passes some flags to this function that tell you something about the display's style. Flags can be a combination of the following bits:

HWDISPFLAGS_BORDERLESS:
Display should be opened without any border decoration.

HWDISPFLAGS_SIZEABLE:
Display should be resizeable.

HWDISPFLAGS_FIXED:
Display dragging should be disabled.

HWDISPFLAGS_NOHIDE:
Display should not have a widget for minimizing.

HWDISPFLAGS_NOCLOSE:
Display should not have a close widget.

Inputs
flags
flags describing the display facilities
left
integer pointer to receive width of the left window border
right
integer pointer to receive width of the right window border
top
integer pointer to receive height of the top window border
bottom
integer pointer to receive height of the bottom window border

Show TOC