Centering a Control

The following code example shows how to use constraints to center a control.

   CONTROL         "I’m Centered"
   IDC_CTRL,"APC_Label",ASFC_ALIGN_LEFT|ASFC_ALIGN_SINGLELINE,  0,0,0,0
   BEGIN
      // Use the following constraints.
      FA_HORIZONTAL_CENTER, FA_VERTICAL_CENTER
   END