If FillRect(hdc,rect) is the only thing that you need from it then it will work for you, yes.
But GDI does not support antialiasing so, let's say, Ellipse(hdc) will just draw an illustration to Brezenham algorithm but not that you would want to present to the user.
Same thing about alpha channel - no transparency in GDI.
So forget GDI for UI purposes. You may try to use that GDI+ horse... But it is pure CPU rasterizer and so forget it too on modern high-DPI monitors.
Yes, GDI is still with us but the chorus is here already to sing "Sic transit gloria mundi".
If FillRect(hdc,rect) is the only thing that you need from it then it will work for you, yes.
But GDI does not support antialiasing so, let's say, Ellipse(hdc) will just draw an illustration to Brezenham algorithm but not that you would want to present to the user.
Same thing about alpha channel - no transparency in GDI.
So forget GDI for UI purposes. You may try to use that GDI+ horse... But it is pure CPU rasterizer and so forget it too on modern high-DPI monitors.
Yes, GDI is still with us but the chorus is here already to sing "Sic transit gloria mundi".