MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / StatusSetTextID

Function StatusSetTextID

src/Helpers.c:748–760  ·  view source on GitHub ↗

============================================================================= StatusSetTextID()

Source from the content-addressed store, hash-verified

746// StatusSetTextID()
747//
748BOOL 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//=============================================================================

Callers 1

MsgCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected