| typedef struct window_struct | /*Defined in vv_struc.h | */ | ||
| { | ||||
| UINT | tag; | /*sentinel | */ | |
| UCHAR | *vvd_stbuff; | /*VV Designer permanent string buffer | */ | |
| int | id; | /*id number | */ | |
| ULONG | flags; | /*window flags | */ | |
| struct | window_struct *parent_wnp; | /*pointer to parent (base) window | */ | |
| struct | window_struct *next_sib; | /*next lower child of same parent | */ | |
| struct | window_struct *top_child; | /*top child of this window | */ | |
| PTR | ownerp; | /*parent of window (form, menu, etc.) | */ | |
| SCRPTR | destp; | /*memory/video screen that output goes to | */ | |
| int | vidpage; | /*graphics card alpha mode page # | */ | |
| int | scrl_q; | /*max number of lines to scroll | */ | |
| short | rbf; | /*top row of FULL window | */ | |
| short | ref; | /*bottom row of FULL window | */ | |
| short | cbf; | /*leftmost row of FULL window | */ | |
| short | cef; | /*rightmost row of FULL window | */ | |
| int | rb; | /*top row of window | */ | |
| int | re; | /*bottom row of window | */ | |
| int | cb; | /*left hand column of window | */ | |
| int | ce; | /*right hand column of window | */ | |
| int | r; | /*virtual cursor row-position | */ | |
| int | c; | /*virtual cursor column-position | */ | |
| UCHAR | *lattarray; | /*pointer to logical attribute array | */ | |
| LFONTPTR | *lfontarray; | /*Pointer to logical font array | (Windows/Web only) | */ |
| UCHAR | fill_char; | /*window fill character | */ | |
| UCHAR | att; | /*window video attribute | */ | |
| UCHAR | mg_char; | /*character to use for margins | */ | |
| UCHAR | mg_att; | /*attribute to use for margins | */ | |
| int | lft_mg; | /*left margin | */ | |
| int | rt_mg; | /*right margin | */ | |
| int | top_mg; | /*top margin | */ | |
| int | bot_mg; | /*bottom margin | */ | |
| SBARP | sbarp; | /*scroll bar structure | */ | |
| BORDERPTR | bdr_linep; | /*ptr to window border line structure | */ | |
| UCHAR | dummy; | /*word alignment dummy variable | */ | |
| UCHAR | bdr_att; | /*border attribute | */ | |
| short | bdr_vstlen; | /*length of buffer for VSTs | */ | |
| UCHAR | *bdr_vstp; | /*pointer to formatted border VSTs | */ | |
| BDRTXT | bdr_txt; | /*first border text structure | */ | |
| int | row_org; | /*origin row coordinate | */ | |
| int | col_org; | /*origin column coordinate | */ | |
| int | horzscrlq; | /*horizontal scrolling quantity | */ | |
| int | vertscrlq; | /*vertical scrolling quantity | */ | |
| SCRPTR | bufp; | /*buffer screen pointer | */ | |
| MFILEPTR | mfp; | /*memory file pointer | */ | |
| UCHAR | *storp; | /*pointer to window storage | */ | |
| PFI | procfp; | /*process function | */ | |
| PFI | io_fp; | /*window interior drawing function | */ | |
| PFI | upfp; | /*pointer to set function | */ | |
| PFI | dnfp; | /*pointer to unset function | */ | |
| PFI | susfp; | /*suspend window function pointer | */ | |
| PFI | actfp; | /*activate window function pointer | */ | |
| SHADOW | (*shadp)[2]; | /*pointer to array of shadows | */ | |
| long | userp; | /*four bytes for user's use | */ | |
| long | userp1; | /*two pointers reserved for users | */ | |
| UCHAR | *actfunc; | /*activate function | */ | |
| UCHAR | *susfunc; | /*suspend function | */ | |
| ULONG | ioflags; | /*flags for when to call io_fp | */ | |
| UCHAR | *name; | /*pointer to name of window | */ | |
| struct | window_struct *nd_wnp; | /*linked list of windows | */ | |
| UCHAR | *lib_name; | /*pointer to vvd library name | */ | |
| UCHAR | *gsetbufp; | /*pointer to underlying graphics image | (VVPlus only) | */ |
| FLDLOOKUP | *fldLUp; | /*Field Lookup Pointer | (Web only) | */ |
| HWND | hwnd; | /*Client window | (Windows only) | */ |
| HWND | hwndClient; | /*Frame window | (Windows only) | */ |
| HMENU | hmenu; | (Windows only) | ||
| void | *mfmp; | /*?? | (Windows only) | */ |
| LFONTPTR | lfontp; | /*Font for this window | (Windows/Web only) | */ |
| ULONG | flagsEx; | /*extended Window flags | (Windows/Web only) | */ |
| int | state; | /*state flags | (Windows/Web only) | */ |
| ULONG_ | WinMessage; | /*internal VV info - DON'T CHANGE!! | (Windows only) | */ |
| int | cell_height, cell_width; | (Windows/Web only) | ||
| POINT | pixelmargin; | (Windows/Web only) | ||
| // Callback functions | (Windows only) | |||
| int | (FASTCALL *CanClose_fp)(struct window_struct *); | /*Pointer to CanClose function | (Windows only) | */ |
| int | (FASTCALL *OnSize_fp)(struct window_struct *); | /*Pointer to OnSize function | (Windows only) | */ |
| } WINDOW, *WINDOWPTR; | ||||