StaticRect
StaticRect is a rectangle used to delimit screen items in a dialog box where a GroupBox would not be wanted.
Window Structure Details
- int x,y,w,h:
These valuse determine the coordinates (x,y) to display the rectangle at and the size (w,h) of it.
- PLHRES Title: Not used.
- PLHDATA Data: Not used.
- UINT LogicalSize: Not used.
- UINT Style:
If the style RECT_SHADOW is being used,StaticRect displays the rectangle with a shadow around the right and bottom edges of it.
- PLHWINDOW Parent: Used by the Object class handler.
- PLHFKEYS FKeys: Used by the Object class handler.
- PLHMENU Menu: Used by the Object class handler.
- UINT Selection: Not used.
- UINT WindowTop: Not used.
Messages
- KEYSTROKE: Passed to the Object class handler.
- CREATE:
StaticRect sets the STYLE_NOFOCUS bit while clearing the STYLE_LEAF bit.
- APPEAR:
If STYLE_WHCHAR is being used, StaticRect converts the window client size, specified in terms of text characters, to the size of the entire window in terms of display units. This is done by multiplying w and h by the width of the specified window font and then ad ding the size of any window border and shadow. StaticRect always passs the message to the Object class handler.
- DISAPPEAR:
If STYLE_WHCHAR is being used, StaticRect converts w and h back to the size of just the window's client area, which doesn't include and border or shadow size, in terms of text characters. StaticRect passes the message to the Object class handler.
- DRAW:
The StaticRect handler draws the rectangle with or without a border, depending on STYLE_NOBORDER. If a border is specified, the rectangle is drawn with or without shadow, depending on the RECT_SHADOW style. SaticRect always draws the rectangle as a white box with a black outline, with a gray shadow that appears to the right and below the rectangle. Note that both the shadow and border size are included in the total w and h of the window. The StaticRect handler responds to the Data parameter submessage DRAW_FRAME.
- SETFOCUS: Passed to the Object class handler.
- LOSEFOCUS: Passed to the Object class handler.
- NULLEVENT: Passed to the Object class handler.
- DESTROY: Passed to the Object class handler.
- TERMINATE: Passed to the Object class handler.
- ACTIVATE: Passed to the Object class handler.
- DEACTIVATE: Passed to the Object class handler.
- NOTIFY: Passed to the Object class handler.
- COMMAND: Passed to the Object class handler.