============================================================================= StatusSetTextID()
| 746 | // StatusSetTextID() |
| 747 | // |
| 748 | BOOL StatusSetTextID ( HWND hwnd, UINT nPart, UINT uID ) |
| 749 | { |
| 750 | WCHAR szText[256]; |
| 751 | UINT uFlags = ( nPart == 255 ) ? nPart | SBT_NOBORDERS : nPart; |
| 752 | if ( !uID ) { |
| 753 | SendMessage ( hwnd, SB_SETTEXT, uFlags, 0 ); |
| 754 | return TRUE; |
| 755 | } |
| 756 | if ( !GetString ( uID, szText, 256 ) ) { |
| 757 | return FALSE; |
| 758 | } |
| 759 | return ( BOOL ) SendMessage ( hwnd, SB_SETTEXT, uFlags, ( LPARAM ) szText ); |
| 760 | } |
| 761 | |
| 762 | |
| 763 | //============================================================================= |