home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / window / ultrawin / uw_help3.hlp < prev    next >
Encoding:
Text File  |  1992-01-12  |  20.0 KB  |  622 lines

  1. `co(4,7);──────────────────────── /// The Keyboard/Mouse ──────────────────────────────`co();
  2.  
  3.  ┌──────────────────────────────────────────────────────────────────────────┐    
  4.  │        `keyword(init_mouse,/// init_mouse);              `keyword(end_mouse ,/// end_mouse);            `keyword(m_reset     ,/// m_reset);        │
  5.  │        `keyword(set_idle_func,/// set_idle_func);           `keyword(wait_event,/// wait_event);            `keyword(event_pending,/// event_pending);       │
  6.  │        `keyword(wait_ticks,/// wait_ticks);              `keyword(check_key ,/// check_key);            `keyword(get_key     ,/// get_key);        │
  7.  │        `keyword(m_hide,/// m_hide);                  `keyword(m_show    ,/// m_show);            `keyword(m_pos    ,/// m_pos);           │
  8.  │        `keyword(m_moveto,/// m_moveto);                `keyword(m_pressed ,/// m_pressed);            `keyword(m_released  ,/// m_released);        │
  9.  │        `keyword(m_colrange,/// m_colrange);              `keyword(m_rowrange,/// m_rowrange);            `keyword(m_motion     ,/// m_motion);       │
  10.  │        `keyword(m_lpen_on,/// m_lpen_on);               `keyword(m_lpen_off,/// m_lpen_off);            `keyword(m_ratio      ,/// m_ratio);       │
  11.  └──────────────────────────────────────────────────────────────────────────┘
  12.  
  13.         The UltraWin library interfaces to the user through either the keyboard,
  14.     mouse, or both.  The keyboard routines support all possible key presses
  15.     which include left and right Shift, Alt, and Ctrl key combinations.  The
  16.     mouse routines allow complete control of a two or three button mouse, and
  17.     is Microsoft driver compatible.    The event routines handle detecting both
  18.     mouse and keyboard presses for you, so making your programs support a
  19.     mouse is a snap!  In addition, UltraWin allows you to define your own
  20.     background function, which is called any place in the library that waits
  21.     for user input.  This allows you to write your own processing routines to
  22.     be performed in the background, then call one function to notify the
  23.     library of your routine, then just forget all about it!  Refer to the
  24.     set_idle_func and wait_event functions for details.
  25.  
  26. `co(10,1);/// init_mouse`co();   `keyword(source,[UW_EVENT.C]~init_mouse);
  27.         Call this function just after init_video or force_video if you wish to
  28.     use the mouse in your program.  If the mouse is connected and a driver is
  29.     installed, then the global variable Mouse_exists is set to TRUE (1). In
  30.     addition the mouse cursor column and row ranges are set to cover the
  31.     entire text screen.    After calling this function you may show the mouse on
  32.     the screen using the function m_show.
  33.  
  34. Prototype:
  35.     void init_mouse();
  36.  
  37. Parameters:
  38.     None.
  39.  
  40. Usage:
  41.     init_mouse();
  42.  
  43. `co(10,1);/// end_mouse`co();   `keyword(source,[UW_EVENT.C]~end_mouse);
  44.         If the mouse was found to be present in init_mouse, this function turns
  45.     the mouse back off.  This keeps the mouse from being active at the DOS
  46.     prompt.  Call this prior to exiting your program if your program called
  47.     init_mouse or the lower level m_reset function.
  48.  
  49. Prototype:
  50.     void end_mouse();
  51.  
  52. Parameters:
  53.     None.
  54.  
  55. Usage:
  56.     end_mouse();
  57.  
  58. `co(10,1);/// m_reset`co();   `keyword(source,[UW_EVENT.C]~m_reset);
  59.         This is the lower level function called by both init_mouse and
  60.     end_mouse. It is used both to determine if the mouse exists, and also to
  61.     reset the mouse prior to program exit.
  62.     
  63. Prototype:
  64.     void m_reset(M_RESET *m)
  65.  
  66. Parameters:
  67. `co(11,1);    M_RESET *m`co();
  68.         A variable of type M_RESET.  Refer to the structures/globals topic for
  69.         information on the members of this structure.
  70.  
  71. Usage:
  72.     M_RESET m;
  73.     ...
  74.     m_reset(&m);
  75.  
  76. `co(10,1);/// set_idle_func`co();   `keyword(source,[UW_EVENT.C]~set_idle_func);
  77.         Allows you to define your own background process. Simply write your own
  78.     C function, keeping in mind that to remain responsive to the keyboard you
  79.     should keep your code tight and fast.  Then call set_idle_func with the
  80.     pointer to your function.
  81.  
  82. Prototype:
  83.     void set_idle_func( int (*func_ptr)() );
  84.  
  85. Parameters:
  86. `co(11,1);    int (*func_ptr)()`co();
  87.         A pointer to the function you wish to install as the idle function.
  88.         
  89. Usage:
  90.     process()
  91.     {
  92.         ...
  93.     }
  94.     ...
  95.     set_idle_func( process );
  96.  
  97. `co(10,1);/// wait_event`co();   `keyword(source,[UW_EVENT.C]~wait_event);
  98.         Waits until either a key is pressed, or a mouse button is clicked.    The
  99.     global variable Event will contain the information about the event.    If it
  100.     is a keyboard event, the key or combination of keys pressed is saved.  If
  101.     a mouse event, then the button that was pressed, how many times it was
  102.     pressed, and the x and y coordinate at which the press occurred is saved.
  103.  
  104.         While UltraWin waits for user input, it is free to perform background
  105.     processing.    If a user defined function has been installed with
  106.     set_idle_func, that function will be called during idle time.
  107.     
  108. Prototype:
  109.     void wait_event();
  110.  
  111. Parameters:
  112.     None.
  113.  
  114. Usage:
  115.     wait_event();
  116.  
  117. `co(10,1);/// event_pending`co();   `keyword(source,[UW_EVENT.C]~event_pending);
  118.         Checks for an event, and returns TRUE (1) if an event has occurred or
  119.     FALSE (0) if no event has occurred.    If an event has occurred, then the
  120.     information about the event, which includes the event type (keyboard or
  121.     mouse), the key and modifier, or the mouse location and button status is
  122.     returned in the global Event variable.  Refer to `keyword(Structures/Globals,[uw_help1.hlp]/// Structures/Globals); for
  123.     information about the EVENT structure and member names for extracting
  124.     this information.
  125.  
  126. Prototype:
  127.     int event_pending();
  128.  
  129. Parameters:
  130.     None.
  131.  
  132. Usage:
  133.     int status;
  134.     ...
  135.     status = event_pending();
  136.  
  137. `co(10,1);/// wait_ticks`co();   `keyword(source,[UW_EVENT.C]~wait_event);
  138.         Waits for a given number of system ticks.    There are 18.2 system ticks
  139.     per second.  If you have defined a background process with the
  140.     set_idle_func function, it will call your process function while it waits
  141.     for the given ticks to pass.  UltraWin now has enhanced timer support.
  142.     See `keyword(Timer/Sound Support,[uw_help6.hlp]/// Timer/Sound Support); for further details.
  143.     
  144. Prototype:
  145.     void wait_ticks( int ticks );
  146.  
  147. Parameters:
  148. `co(11,1);    int ticks`co();
  149.         The number of system ticks to wait.
  150.  
  151. Usage:
  152.     wait_ticks( 9 );
  153.  
  154. `co(10,1);/// check_key`co();   `keyword(source,[UW_EVENT.C]~check_key);
  155.         Checks to see if a key has been pressed, and returns the key without
  156.     pulling it out of the keyboard buffer.  The key value is returned (see
  157.     UW_KEYS.H for key defines).  If no key has been pressed, then check_key
  158.     will return FALSE (0).
  159.  
  160. Prototype:
  161.     int check_key();
  162.  
  163. Parameters:
  164.     None.
  165.  
  166. Usage:
  167.     int key;
  168.     ...
  169.     key = check_key();
  170.  
  171. `co(10,1);/// get_key`co();   `keyword(source,[UW_EVENT.C]~get_key);
  172.         Waits until a key has been pressed, and returns the key value (see
  173.     UW_KEYS.H for key defines).
  174.  
  175. Prototype:
  176.     int get_key();
  177.  
  178. Parameters:
  179.     None.
  180.  
  181. Usage:
  182.     int key;
  183.     ...
  184.     key = get_key();
  185.  
  186. `co(10,1);/// m_hide`co();   `keyword(source,[UW_EVENT.C]~m_hide);
  187.         Hides the mouse cursor.  Call this function to remove the mouse cursor
  188.     temporarily from the screen when you are doing window output. Call the
  189.     m_show function after your window output to put the cursor back on the
  190.     screen.
  191.  
  192.         NOTE: Even though the mouse is not shown on the screen, the cursor will
  193.     still track with the mouse, and mouse buttons are still active.
  194.  
  195. Prototype:
  196.     void m_hide();
  197.  
  198. Parameters:
  199.     None.
  200.  
  201. Usage:
  202.     m_hide();
  203.  
  204. `co(10,1);/// m_show`co();   `keyword(source,[UW_EVENT.C]~m_show);
  205.     Shows the mouse cursor.    This is used to undo the affect of m_hide.
  206.  
  207. Prototype:
  208.     void m_show();
  209.  
  210. Parameters:
  211.     None.
  212.  
  213. Usage:
  214.     m_show();
  215.  
  216. `co(10,1);/// m_pos`co();   `keyword(source,[UW_EVENT.C]~m_pos);
  217.         Gets the current location of the mouse, as well as the status of the
  218.     buttons.
  219.  
  220. Prototype:
  221.     void m_pos( M_LOC *m )
  222.  
  223. Parameters:
  224. `co(11,1);    M_LOC *m`co();
  225.         A pointer to a variable of type M_LOC that contains the position and
  226.         button status information.    Refer to the structures/globals topic above
  227.         for information about the M_LOC structure.
  228.  
  229. Usage:
  230.     M_LOC m;
  231.     ...
  232.     m_pos( &m );
  233.  
  234. `co(10,1);/// m_moveto`co();   `keyword(source,[UW_EVENT.C]~m_moveto);
  235.         Moves the mouse to the position specified by column and row.
  236.  
  237. Prototype:
  238.     void m_moveto( int col, int row );
  239.  
  240. Parameters:
  241. `co(11,1);    int col, row`co();
  242.         The column and row at which the mouse cursor is to be placed.
  243.  
  244. Usage:
  245.     m_moveto( 10, 25 );
  246.  
  247. `co(10,1);/// m_pressed`co();   `keyword(source,[UW_EVENT.C]~m_pressed);
  248.         Checks to see if the button passed has been pressed since the last call
  249.     to this function, and return the button count (number of clicks) and the
  250.     location where the click occurred. A press has occurred when the M_LOC
  251.     count member is greater than 0.
  252.  
  253. Prototype:
  254.     void m_pressed( int button, M_LOC *m );
  255.  
  256. Parameters:
  257. `co(11,1);    int button`co();
  258.         The button to test for being pressed.  This can be one of the defines
  259.         (in UW.H) LB, MB, or RB.
  260. `co(11,1);    M_LOC *m`co();
  261.         A pointer to a variable of type M_LOC that the function will use to
  262.         place the position and button status information.
  263.  
  264. Usage:
  265.     M_LOC m;
  266.     ...
  267.     m_pressed( LB, &m );
  268.  
  269. `co(10,1);/// m_released`co();   `keyword(source,[UW_EVENT.C]~m_released);
  270.         Performs the same function as m_pressed, but is used to test when the
  271.     mouse button is released.
  272.  
  273. Prototype:
  274.     void m_released( int button, M_LOC *m );
  275.  
  276. Parameters:
  277. `co(11,1);    int button`co();
  278.         The button to test for being released.    This can be one of the defines
  279.         (in UW.H) LB, MB, or RB.
  280. `co(11,1);    M_LOC *m`co();
  281.         A pointer to a variable of type M_LOC that the function will use to
  282.         place the position and button status information.
  283.  
  284. Usage:
  285.     M_LOC m;
  286.     ...
  287.     m_released( LB, &m );
  288.  
  289. `co(10,1);/// m_colrange`co();   `keyword(source,[UW_EVENT.C]~m_colrange);
  290.         Allows you to set the range of columns that the mouse will be allowed to
  291.     move within.  Typically this will be from 0 to V_cols-1, but you may set
  292.     it to a range less than this if you wish to keep the mouse inside a
  293.     subrange of the screen.
  294.  
  295. Prototype:
  296.     void m_colrange( int col_min, int col_max );
  297.  
  298. Parameters:
  299. `co(11,1);    int col_min, col_max`co();
  300.         The column mininum and maximum values.
  301.  
  302. Usage:
  303.     m_colrange( 0, V_cols );
  304.  
  305. `co(10,1);/// m_rowrange`co();   `keyword(source,[UW_EVENT.C]~m_rowrange);
  306.         Is the complement to m_colrange.     Typically this will be from 0 to
  307.     V_rows-1, but like m_colrange you may set it to a range less than this if
  308.     you wish to keep the mouse inside a subrange of the screen.
  309.  
  310. Prototype:
  311.     void m_rowrange( int row_min, int row_max );
  312.  
  313. Parameters:
  314. `co(11,1);    int row_min, row_max`co();
  315.         The row mininum and maximum values.
  316.  
  317. Usage:
  318.     m_rowrange( 0, V_rows );
  319.  
  320. `co(10,1);/// m_motion`co();   `keyword(source,[UW_EVENT.C]~m_motion);
  321.         Reports the net motion of cursor since last call to this function. A
  322.     pointer to a variable of type M_MOVE is used to pass back the information.
  323.  
  324. Prototype:
  325.     void m_motion( M_MOVE *m );
  326.  
  327. Parameters:
  328. `co(11,1);    M_MOVE *m`co();
  329.         A pointer to a variable of type M_MOVE.  See `keyword(Structures/Globals,[uw_help1.hlp]/// Structures/Globals); for
  330.         information on the M_MOVE members.
  331.  
  332. Usage:
  333.     M_MOVE mv;
  334.     ...
  335.     m_motion( &mv );
  336.  
  337. `co(10,1);/// m_lpen_on`co();   `keyword(source,[UW_EVENT.C]~m_lpen_on);
  338.         Turns on light pen emulation.     This is the default.
  339.  
  340. Prototype:
  341.     void m_lpen_on();
  342.  
  343. Parameters:
  344.     None.
  345.  
  346. Usage:
  347.     m_lpen_on();
  348.  
  349. `co(10,1);/// m_lpen_off`co();   `keyword(source,[UW_EVENT.C]~m_lpen_off);
  350.         Turns off light pen emulation.
  351.  
  352. Prototype:
  353.     void m_lpen_off();
  354.  
  355. Parameters:
  356.     None.
  357.  
  358. Usage:
  359.     m_lpen_off();
  360.  
  361. `co(10,1);/// m_ratio`co();   `keyword(source,[UW_EVENT.C]~m_ratio);
  362.         Sets mouse to pixel ratio.  The default values are 16 for horizontal and
  363.     8 for vertical.
  364.  
  365. Prototype:
  366.     void m_ratio( int horiz, int vert );
  367.  
  368. Parameters:
  369. `co(11,1);    int horiz, vert`co();
  370.         The values for the new horizontal and vertical ratios.
  371.  
  372. Usage:
  373.     m_ratio( 12, 8 );
  374.  
  375. `co(4,7);──────────────────────── /// The Window Manager ──────────────────────────────`co();
  376.  
  377.  ┌──────────────────────────────────────────────────────────────────────────┐    
  378.  │      `keyword(add_window,/// add_window);              `keyword(remove_window,/// remove_window);         `keyword(make_top_window,/// make_top_window);       │
  379.  │      `keyword(cr_inwindow,/// cr_inwindow);             `keyword(move_wn_left,/// move_wn_left);          `keyword(move_wn_right,/// move_wn_right);         │
  380.  │      `keyword(move_wn_up,/// move_wn_up);              `keyword(move_wn_down,/// move_wn_down);          `keyword(reset_all_masks,/// reset_all_masks);       │
  381.  │      `keyword(refresh_desktop,/// refresh_desktop);         `keyword(refresh_column,/// refresh_column);        `keyword(refresh_row,/// refresh_row);           │
  382.  │      `keyword(refresh_rect,/// refresh_rect);                                                        │
  383.  └──────────────────────────────────────────────────────────────────────────┘
  384.  
  385.         The window manager is a set of routines that make having multiple
  386.     windows on the screen at once a snap!  By using the window manager, you
  387.     bypass having to keep track of window masking and refreshing, as the
  388.     manager takes care of all the nitty gritty details of multiple overlapping
  389.     windows!    To use the manager, first create a window with wn_create that is
  390.     the size of the screen, and call add_window with that window.    This is your
  391.     background, or desktop window.  Then you can add any number (limited only
  392.     by the amount of memory you have in your computer) of windows of any size,
  393.     regardless of whether they overlap each other, and output text to that
  394.     window using any of the window I/O routines.  Please note that when using
  395.     the window manager you do not need to call wn_destroy, as remove_window
  396.     does this for you.
  397.  
  398. `co(10,1);/// add_window`co();   `keyword(source,[UW_ENTRY.C]~add_window);
  399.         Takes the window created with wn_create by pointer and adds it to the
  400.     window manager's linked list. The window is placed on the screen, and if
  401.     it overlaps any other window, then their masks are set to prevent output
  402.     to the area that overlaps. The window is then drawn on the video screen.
  403.  
  404. Prototype:
  405.     WINDOW *add_window( WINDOW *wnp )
  406.  
  407. Parameters:
  408. `co(11,1);    WINDOW *wnp;`co();
  409.         A pointer to the window created with wn_create.
  410.  
  411. Usage:
  412.     WINDOW wn;
  413.     ...
  414.     add_window( &wn );
  415.  
  416. `co(10,1);/// remove_window`co();   `keyword(source,[UW_WIN.C]~remove_window);
  417.         Takes the window by pointer, and removes it from the linked list, resets
  418.     any window's masks that were overlapped by the removed window, and redraws
  419.     any portion of any window that was covered by the removed window.  Please
  420.     note that this function calls wn_destroy, so it is not necessary to
  421.     destroy the window once it has been removed from the linked list!
  422.  
  423. Prototype:
  424.     int remove_window( WINDOW *wnp );
  425.  
  426. Parameters:
  427. `co(11,1);    WINDOW *wnp;`co();
  428.         A pointer to the window to remove.
  429.  
  430. Usage:
  431.     WINDOW wn;
  432.     ...
  433.     remove_window( &wn );
  434.  
  435. `co(10,1);/// make_top_window`co();   `keyword(source,[UW_WIN.C]~make_top_window);
  436.         Takes a pointer to the window, and if that window is not the top window,
  437.     it makes it the top window.  All adjustments in the masks for all windows
  438.     are made, and the window is drawn to the screen.
  439.  
  440. Prototype:
  441.     int make_top_window( WINDOW *wnp );
  442.  
  443. Parameters:
  444. `co(11,1);    WINDOW *wnp;`co();
  445.         A pointer to the window to bring to the top.
  446.  
  447. Usage:
  448.     WINDOW *wnp;
  449.     ...
  450.     make_top_window(wnp);
  451.  
  452. `co(10,1);/// cr_inwindow`co();   `keyword(source,[UW_WIN.C]~cr_inwindow);
  453.         Takes a location on the screen, and returns the topmost window that
  454.     contains that location.  If there is no window under the location, then a
  455.     NULL is returned.
  456.  
  457. Prototype:
  458.     WINDOW *cr_inwindow( int col, int row )
  459.  
  460. Parameters:
  461. `co(11,1);    int col, row`co();
  462.         The col,row coordinate (x,y) to check.
  463.  
  464. Usage:
  465.     WINDOW *wnp;
  466.     ...
  467.     wnp = cr_inwindow( 20, 37 );
  468.  
  469. `co(10,1);/// move_wn_left`co();   `keyword(source,[UW_WIN.C]~move_wn_left);
  470.         Takes a window in the manager's linked list, and moves it smoothly to
  471.     the left a given number of columns.
  472.  
  473. Prototype:
  474.     void move_wn_left( int cols, WINDOW *wnp );
  475.  
  476. Parameters:
  477. `co(11,1);    int cols`co();
  478.         The number of columns to move left.
  479. `co(11,1);    WINDOW *wnp;`co();
  480.         A pointer to the window to move.
  481.  
  482. Usage:
  483.     WINDOW *wnp;
  484.     ...
  485.     move_wn_left( 3, wnp );
  486.  
  487. `co(10,1);/// move_wn_right`co();   `keyword(source,[UW_WIN.C]~move_wn_right);
  488.         Takes a window in the manager's linked list, and moves it smoothly to
  489.     the right a given number of columns.
  490.  
  491. Prototype:
  492.     void move_wn_right( int cols, WINDOW *wnp );
  493.  
  494. Parameters:
  495. `co(11,1);    int cols`co();
  496.         The number of columns to move right.
  497. `co(11,1);    WINDOW *wnp;`co();
  498.         A pointer to the window to move.
  499.  
  500. Usage:
  501.     WINDOW *wnp;
  502.     ...
  503.     move_wn_right( 2, wnp );
  504.  
  505. `co(10,1);/// move_wn_up`co();   `keyword(source,[UW_WIN.C]~move_wn_up);
  506.         Takes a window in the manager's linked list, and moves it smoothly up a
  507.     given number of rows.
  508.  
  509. Prototype:
  510.     void move_wn_up( int rows, WINDOW *wnp );
  511.  
  512. Parameters:
  513. `co(11,1);    int rows`co();
  514.         The number of rows to move up.
  515. `co(11,1);    WINDOW *wnp;`co();
  516.         A pointer to the window to move.
  517.  
  518. Usage:
  519.     WINDOW *wnp;
  520.     ...
  521.     move_wn_up( 1, wnp );
  522.  
  523. `co(10,1);/// move_wn_down`co();   `keyword(source,[UW_WIN.C]~move_wn_down);
  524.         Takes a window in the manager's linked list, and moves it smoothly down
  525.     a given number of rows.
  526.  
  527. Prototype:
  528.     void move_wn_down( int rows, WINDOW *wnp );
  529.  
  530. Parameters:
  531. `co(11,1);    WINDOW *wnp;`co();
  532.         A pointer to the window to move.
  533. `co(11,1);    int rows`co();
  534.         The number of rows to move down.
  535.  
  536. Usage:
  537.     WINDOW *wnp;
  538.     ...
  539.     move_wn_down( 1, wnp );
  540.  
  541. `co(10,1);/// reset_all_masks`co();   `keyword(source,[UW_WIN.C]~reset_all_masks);
  542.         Walks through all the windows in the manager's linked list, and resets
  543.     their output masks so that only the areas of the windows visible get
  544.     written upon window output.  Calling this function is not necessary unless
  545.     you adjust a window's mask yourself, and want to set all window masks back
  546.     to their default state.
  547.  
  548. Prototype:
  549.     void reset_all_masks();
  550.  
  551. Parameters:
  552.     None.
  553.  
  554. Usage:
  555.     reset_all_masks();
  556.  
  557. `co(10,1);/// refresh_desktop`co();   `keyword(source,[UW_WIN.C]~refresh_desktop);
  558.         Walks through the linked list of windows and redraws each. This is a
  559.     quick way to redisplay the screen.  It can be useful when returning from
  560.     executing another program, returning from graphics mode, etc...
  561.  
  562. Prototype:
  563.     void refresh_desktop();
  564.  
  565. Parameters:
  566.     None
  567.  
  568. Usage:
  569.     refresh_desktop();
  570.  
  571. `co(10,1);/// refresh_column`co();   `keyword(source,[UW_WIN.C]~refresh_column);
  572.         Walks through the linked list of windows checks to see if each window
  573.     contains a particular column.     If the window contains the column, then
  574.     only that column is refreshed.  This function is used internally by
  575.     wn_move_left and wn_move_right.
  576.         
  577. Prototype:
  578.     void refresh_column( int col )
  579.  
  580. Parameters:
  581. `co(11,1);    int col`co();
  582.         The column to refresh (redraw).
  583.  
  584. Usage:
  585.     refresh_column( 20 );
  586.  
  587. `co(10,1);/// refresh_row`co();   `keyword(source,[UW_WIN.C]~refresh_row);
  588.         Walks through the linked list of windows checks to see if each window
  589.     contains a particular row.     If the window contains the row, then only
  590.     that row is refreshed.  This function is used internally by wn_move_up and
  591.     wn_move_down.
  592.         
  593. Prototype:
  594.     void refresh_row( int row )
  595.  
  596. Parameters:
  597. `co(11,1);    int row`co();
  598.         The row to refresh (redraw).
  599.  
  600. Usage:
  601.     refresh_row( 5 );
  602.  
  603. `co(10,1);/// refresh_rect`co();   `keyword(source,[UW_WIN.C]~refresh_rect);
  604.         Refreshes a rectangular portion of the manager's screen, defined by a
  605.     variable of type RECT.  The window manager calls this function when a
  606.     window is removed with remove_window. The window's pane is used as the
  607.     rectangular area passed.
  608.  
  609.     NOTE: Use the set_rect function to define a variable of type RECT.
  610.  
  611. Prototype:
  612.     void refresh_rect( RECT r );
  613.  
  614. Parameters:
  615. `co(11,1);    RECT r`co();
  616.         The rectangular area to refresh.
  617.  
  618. Usage:
  619.     RECT r;
  620.     ...
  621.     refresh_rect( r );
  622.