Changeset 108 for trunk/src/helpers/winh.c
- Timestamp:
- Oct 13, 2001, 7:57:58 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/winh.c
r106 r108 195 195 196 196 /* 197 *@@ winhSetWindowText :197 *@@ winhSetWindowText2: 198 198 * 199 199 *@@added V0.9.13 (2001-06-21) [umoeller] 200 200 */ 201 201 202 BOOL winhSetWindowText (HWND hwnd, const char *pcsz)202 BOOL winhSetWindowText2(HWND hwnd, const char *pcsz) 203 203 { 204 204 // put the call in brackets so the macro won't apply here … … 3419 3419 3420 3420 /* 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 3431 BOOL 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 /* 3421 3447 *@@ winhReplaceWindowText: 3422 3448 * this is a combination of winhQueryWindowText
Note:
See TracChangeset
for help on using the changeset viewer.