Ignore:
Timestamp:
Mar 14, 2001, 7:57:34 PM (24 years ago)
Author:
umoeller
Message:

misc changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/winh.c

    r47 r48  
    8686#include "helpers\undoc.h"
    8787#include "helpers\xstring.h"            // extended string helpers
     88
     89/*
     90 *@@category: Helpers\PM helpers\Rectangle helpers
     91 */
     92
     93/* ******************************************************************
     94 *
     95 *   Rectangle helpers
     96 *
     97 ********************************************************************/
     98
     99/*
     100 *@@ winhOffsetRect:
     101 *      like WinOffsetRect, but doesn't require
     102 *      an anchor block to be passed in. Why
     103 *      the original would need an anchor block
     104 *      for this awfully complicated task is
     105 *      a mystery to me anyway.
     106 *
     107 *@@added V0.9.9 (2001-03-13) [umoeller]
     108 */
     109
     110VOID winhOffsetRect(PRECTL prcl,
     111                    LONG lx,
     112                    LONG ly)
     113{
     114    prcl->xLeft += lx;
     115    prcl->xRight += lx;
     116    prcl->yBottom += ly;
     117    prcl->yTop += ly;
     118}
    88119
    89120/*
     
    36823713
    36833714/*
     3715 *@@ winhCreateControl:
     3716 *      creates a control with a size and position of 0.
     3717 *
     3718 *@@added V0.9.9 (2001-03-13) [umoeller]
     3719 */
     3720
     3721HWND winhCreateControl(HWND hwndParentAndOwner,     // in: owner and parent window
     3722                       const char *pcszClass,       // in: window class (e.g. WC_BUTTON)
     3723                       const char *pcszText,        // in: window title
     3724                       ULONG ulStyle,               // in: control style
     3725                       ULONG ulID)                  // in: control ID
     3726{
     3727    return (WinCreateWindow(hwndParentAndOwner,
     3728                            (PSZ)pcszClass,
     3729                            (PSZ)pcszText,
     3730                            ulStyle,
     3731                            0, 0, 0, 0,
     3732                            hwndParentAndOwner,
     3733                            HWND_TOP,
     3734                            ulID,
     3735                            NULL,
     3736                            NULL));
     3737}
     3738
     3739/*
    36843740 *@@ winhRepaintWindows:
    36853741 *      this repaints all children of hwndParent.
Note: See TracChangeset for help on using the changeset viewer.