TerSetFlags
Set certain flags or retrieve the values of the flags.
DWORD TerSetFlags(hWnd, set, flags)
HWND hWnd; | The handle of the window to be accessed. If hWnd is set to NULL, this function sets the common initialization flags. When a new window is created, it inherits all common flags. |
BOOL set; | TRUE to set the given flags, FALSE to reset the given flags |
DWORD flags; | Flags (bits) to set or reset. Currently, the following flag values are available: |
TFLAG_RESIZE_BITMAP: | Resize the bitmap when inserted into a frame. |
TFLAG_METRIC: | Show the ruler and dialog measurements in metric units. |
TFLAG_APPLY_PRT_ORIENT: | This flags overrides the paper orientation of the document with the paper orientation of the currently selected printer. |
TFLAG_RETURN_MSG_ID : | Store the message ids so that they can be retrieved by using the TerGetLastMessage function. |
TFLAG_IGNORE_PICT_LINK: | This flag instructs the save functions not to write the file name of the linked pictures to the disk file. |
TFLAG_DISABLE_ACCEL: | Disable the internal editor accelerator table. |
TFLAG_SHOW_CARET: | Show caret even in the read-only mode. |
TFLAG_UNPROTECTED_DEL: | Allows for unprotected deletion of text blocks |
TFLAG_NO_HOUR_GLASS: | Do not display the hour glass cursor during lengthy operations. |
TFLAG_NO_CHILD_TOP: | Don't force child to the top of Z order. |
TFLAG_NO_WRAP: | Turn-off word wrapping temporarily. This flag should not be used in the Page Mode. |
TFLAG_EXCLUDE_HIDDEN_SEL: | Exclude hidden text from both ends of a selected block of text. |
TFLAG_AUTO_VSCROLL_BAR: | Enable/disable vertical scroll bar depending upon the height of the text in the window. This option is not available in Page Mode. |
TFLAG_NO_PALETTE: | This flag disables the internal use of the color palettes for the picture display. |
TFLAG_KEEP_PICT_ASPECT: | This flag maintains the picture aspect ratio when being resized using the mouse. |
TFLAG_KEEP_FRAME_ASPECT: | This flag maintains the frame aspect ratio when being resized using the mouse. |
TFLAG_PICT_IN_FRAME: | This flag creates a frame around the picture being dropped into the editor. |
TFLAG_NO_PRINTER: | Disable the use of the printer. |
TFLAG_NO_DRAG_TEXT: | Disable the drag/drop feature for text. |
TFLAG_BETTER_256: | Improves the 256 color picture production at a small cost of picture load performance. This flags is effective only when displaying a 256 colors bitmap in the 256 color display mode. |
TFLAG_NO_EDIT_OLE: | Disable the editing of OLE objects |
TFLAG_NO_EDIT_PICT: | Disable the editing of picture objects. |
TFLAG_SHOW_BREAKS: | Show the break lines even in the read-only mode. |
TFLAG_SELECT_FULL_HLINK: | Select complete hypertext phrase during text selection. |
TFLAG_NO_OLE: | Disable the OLE features. |
TFLAG_ROW_PASTE: | Paste the table data in the control as rows instead of as columns. |
TFLAG_NO_AUTO_FULL_CELL_SEL: | Do not select the entire cell when the last character of the cell is highlighted. |
TFLAG_SWAP_DECIMAL: | Swap decimal and comma characters in the dialog boxes. |
Return value: This function returns the new value of all the flags. Call this function with the 'flags' parameter set to zero to retrieve flag values without modifying it.