Ignore:
Timestamp:
Oct 13, 2001, 7:57:58 PM (24 years ago)
Author:
umoeller
Message:

Lots of updates from the last week for conditional compiles and other stuff.

File:
1 edited

Legend:

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

    r106 r108  
    195195
    196196    /*
    197      *@@ winhSetWindowText:
     197     *@@ winhSetWindowText2:
    198198     *
    199199     *@@added V0.9.13 (2001-06-21) [umoeller]
    200200     */
    201201
    202     BOOL winhSetWindowText(HWND hwnd, const char *pcsz)
     202    BOOL winhSetWindowText2(HWND hwnd, const char *pcsz)
    203203    {
    204204        // put the call in brackets so the macro won't apply here
     
    34193419
    34203420/*
     3421 *@@ winhSetWindowText:
     3422 *      like WinSetWindowText, but this one accepts
     3423 *      printf-like arguments.
     3424 *
     3425 *      Note that the total string is limited to
     3426 *      1000 characters.
     3427 *
     3428 *@@added V0.9.16 (2001-10-08) [umoeller]
     3429 */
     3430
     3431BOOL winhSetWindowText(HWND hwnd,
     3432                       const char *pcszFormat,
     3433                       ...)
     3434{
     3435    CHAR szBuf[1000];
     3436    va_list     args;
     3437    int         i;
     3438    va_start(args, pcszFormat);
     3439    i = vsprintf(szBuf, pcszFormat, args);
     3440    va_end(args);
     3441
     3442    return (WinSetWindowText(hwnd,
     3443                             szBuf));
     3444}
     3445
     3446/*
    34213447 *@@ winhReplaceWindowText:
    34223448 *      this is a combination of winhQueryWindowText
Note: See TracChangeset for help on using the changeset viewer.