an advice about Direct2D is needed please

Hello all, im experimenting now with Direct2D, its prety simple but i realy cant figure out which is the most efficient and comfortable way to implement D2D within a WindowProc callback function, im coding small tools in C++, so im not always using Classes and resources. just a wWinMain and WindowProc.

is it better to wrap D2D functionality in a class? but where to initialize it? WM_CREATE? or in wWinMain and somehow control it from within WindowProc?
greets, Igor
Initialize the direct2d objects wherever you initialize the rest of your application. There's no harm giving them file scope.
thanks
Topic archived. No new replies allowed.