C++ Builder Snippets  


TButton: Horizontale Ausrichtung der Caption ändern:
 
//---------------------------------------------------------------------------
// Horizontale Ausrichtung der Caption des TButtons ändern:
//---------------------------------------------------------------------------

DWORD dwStyle = GetWindowLong(Button1->Handle, GWL_STYLE);
dwStyle = dwStyle | BS_RIGHT; //(oder BS_LEFT, oder BS_CENTER)
SetWindowLong(Button1->Handle, GWL_STYLE, dwStyle);
Button1->Invalidate();


© '99-2001 by S. Kreutzmann