While both GDI and GDI+ continue to be supported in Windows, Direct2D and DirectWrite are recommended for new programs. In some cases, a mix of technologies might be more practical. For these situations, Direct2D and DirectWrite are designed to interoperate with GDI.
I would like to add that when I learned Win32API (still learning) from Petzhold's book I also learn GDI, and I don't regreat becouse of time invested into that...
I don't want to learn GDI as it seems useless compared to opengl/directx? this correct?
Yes and no, however learning GDI and GDI+ before direct2D and Direct3D is like learning C before C++, that means you won't have hard time learning directX once you know GDI :)