#pragma comment(lib, "fltk.lib") #pragma comment(lib, "wsock32.lib") #pragma comment(lib, "comctl32.lib") #pragma comment(linker, "/NODEFAULTLIB:LIBCMTD.lib") #include #include #include #include #include #define window_size 400 /*****************************************************************************/ /* This class provides a view to copy the offscreen surface to */ class My_Window : public Fl_Window{ int x,y,button; int handle(int e) { switch (e) { case FL_MOVE: x = Fl::event_x(); y = Fl::event_y(); std::cout<<"Postion X:"<< x <<" Postion Y:"<< y <begin(); Fl_PNG_Image* background = new Fl_PNG_Image("../image/background.png"); std::cout<Fl_Image::fail()<image(background); box->redraw(); window->end(); window->show(argc,argv); return Fl::run(); } // main