Alignment

Define os parâmetros de alinhamento do controle.

void  Alignment(
   const int  flags,      // alignment flags
   const int  left,       // offset from the left border
   const int  top,        // offset from the top border
   const int  right,      // offset from the right border
   const int  bottom      // offset from the bottom border
   )

Parâmetros

flags

[in]  Flags de alinhamento.

left

[in]  Deslocamento fixo a partir da borda esquerda.

top

[in]  Deslocamento fixo a partir da borda superior.

right

[in]  Deslocamento fixo a partir da borda direita.

bottom

[in]  Deslocamento fixo a partir da borda inferior.

Valor de retorno

Nenhum.

Observação

Flags de alinhamento:

enum WND_ALIGN_FLAGS
{
   WND_ALIGN_NONE=0,                                  // no align
   WND_ALIGN_LEFT=1,                                  // align left
   WND_ALIGN_TOP=2,                                   // align top
   WND_ALIGN_RIGHT=4,                                 // align right
   WND_ALIGN_BOTTOM=8,                                // align bottom
   WND_ALIGN_WIDTH = WND_ALIGN_LEFT|WND_ALIGN_RIGHT,  // align width
   WND_ALIGN_HEIGHT=WND_ALIGN_TOP|WND_ALIGN_BOTTOM,   // align height
   WND_ALIGN_CLIENT=WND_ALIGN_WIDTH|WND_ALIGN_HEIGHT// align height and width
   }