次の方法で共有


Window Manipulation Routines

These API routines allow you to create, manipulate, and release windows, and manipulate the main Visual FoxPro window.

_Dialog( )

Presents the user with a dialog that is the specified color scheme number scheme and contains the specified body text and button text.

_FindWindow( )

Places the WHANDLE of the window that the point pt belongs to on the screen into wh.

_FindWindowP( )

Places the handle of the window that the point pt belongs to on the screen into wh.

_GlobalToLocal( )

Translates a point in screen-relative coordinates to window-relative coordinates.

_GlobalToLocalP( )

Translates a point in screen-relative coordinates to window-relative pixel coordinates.

_PutChr( )

Writes one character char to the current output window in its normal attribute (color 0).

_PutStr( )

Writes a null-terminated string to the current output window in its normal attribute (color 0).

_PutValue( )

Formats the value val and writes it to the current output window.

_WAttr( )

Returns the attribute byte for the color index in the specified window's scheme.

_WBottom( )

Returns the row on the screen where the bottom of the window is located.

_WBottomP( )

Returns the position on the screen in pixels where the bottom of the specified window is located.

_WClear( )

Erases the contents of the specified window by changing the content area to the default background color.

_WClearRect( )

Erases a rectangular area of a window by changing it to the default background color.

_WClearRectP( )

Erases the specified rectangular portion of a window by changing it to the default background color.

_WClose( )

Closes a window and releases all memory associated with that window.

_WFindTitle( )

Passes the title of a window, and returns the WHANDLE.

_WGetCursor( )

Returns the position of the logical cursor in the specified window.

_WGetCursorP( )

Returns in pixels the current output position in the specified window.

_WGetPort( )

Returns the WHANDLE of the window that's currently selected for user output.

_WHeight( )

Returns the number of rows in the content area of a window.

_WHeightP( )

Returns the height in pixels of the content area of the specified window.

_WHide( )

Removes a window from the screen but keeps track of its contents so that it can be displayed again if desired.

_WLeft( )

Returns the column on the screen where the left edge of the window is located.

_WLeftP( )

Returns the position on the screen in pixels where the left edge of the window is located.

_WMainWindow( )

Returns the WHANDLE of the main Visual FoxPro window.

_WMove( )

Moves the specified window to a new location specified by pt.

_WMoveP( )

Moves the specified window to a new location specified by pt.

_WhToHwnd( )

Passes the WHANDLE, and returns the Windows HWND.

_WOnTop( )

Returns the WHANDLE of the frontmost window.

_WOpen( )

Creates a new window at the coordinates specified by top, left, bottom and right.

_WOpenP( )

Creates a new window at the coordinates specified by top, left, bottom and right.

_WPosCursor( )

Positions the logical cursor of the specified window at the location specified by pt.

_WPosCursorP( )

Positions the logical cursor of the specified window at the location specified in pixels by pt.

_WPutChr( )

Writes one character char to the specified window in the current color.

_WPutStr( )

Writes a null-terminated string to the specified window in the current color.

_WRight( )

Returns the column on the screen where the right edge of the window is located.

_WRightP( )

Returns the position on the screen in pixels where the right edge of the window is located.

_WScroll( )

Scrolls a portion of the contents of a window left or right and up or down.

_WScrollP( )

Scrolls a portion of the contents of a window left or right and up or down.

_WSetAttr( )

Changes the attribute for the specified color scheme index in the indicated window's color scheme to the new attribute attr.

_WSelect( )

Brings the specified window to the frontmost position on the screen.

_WSendBehind( )

Sends the specified window to the rearmost position on the screen.

_WSetPort( )

Changes the user output window to be the specified window.

_WSetTitle( )

Changes the title of a window.

_WShow( )

Redisplays a hidden window on the screen.

_WSize( )

Sets the new dimensions of the window to the height and width specified by h and v in pt.

_WSizeP( )

Sets the new dimensions of the window to the height and width specified by h and v in pt.

_WTitle( )

Puts the null-terminated title of the window wh in title.

_WTop( )

Returns the row on the screen where the top of the window is located.

_WTopP( )

Returns the position on the screen in pixels where the top of the window is located.

_WWidth( )

Returns the number of columns in the content area of a window.

_WWidthP( )

Returns the width in pixels of the content area of the specified window.

_WZoom( )

Zooms a window to a new state.