How to make an application which is resolution Independent

Alignments should be changed according o the resolution of the screen

Plz give the solution which uses Windows API