Beispiel #1
0
    void run()
    {
        Region region(Vector2<double>(3.5f, 0.0f), Vector2<double>(4.0f, 1.0f),
                      Vector2<int>(2, 2));
        typedef FractalImage<BifCalcThread> Image;
        Image image(region);

        Window::Params wp(&_windows, L"Bifurcation Fractal");
        typedef RootWindow<Window> RootWindow;
        RootWindow::Params rwp(wp);
        typedef ImageWindow<RootWindow, Image> ImageWindow;
        ImageWindow::Params iwp(rwp, &image);
        typedef AnimatedWindow<ImageWindow> AnimatedWindow;
        AnimatedWindow::Params awp(iwp);
        typedef ZoomableWindow<AnimatedWindow> ZoomableWindow;
        ZoomableWindow::Params zwp(awp);
        ZoomableWindow window(zwp);

        window.show(_nCmdShow);
        pumpMessages();
    }
Beispiel #2
0
	integer ServiceApp::startService()
	{
		integer res = pumpMessages();
		return res;
	}