You need to pick up an API thats being used on your system. On Windows this api is Win32API. On linux I THINK (its been awhile) that there is KDE, and GTK as the prominent user interface api's. Qt is a wrapper for cross platform programming and may suit your needs.
Win32's paint program uses GDI, the graphics component of win32api. So KDE and GTK would need that functionality. Not sure how useful OpenGL or the like would be to you.
Hey I cannot understand anything of this am new and I'm using linux ubuntu and want to use graphics library and mouse library and my notepad(gedit) to make such as prgoram
-Where can I get graphics c++ library
-From where can start(making first window or windows and buttons how to make window in c++)