+
+ // This macro loads PNG from either resources on the platforms that support
+ // this (Windows and OS X) or from in-memory data (coming from cursor_png.c
+ // included above in our case).
+ my_png_from_res = wxBITMAP_PNG(cursor);
+
+ // This one always loads PNG from memory but exists for consistency with
+ // the above one and also because it frees you from the need to specify the
+ // length explicitly, without it you'd have to do it and also spell the
+ // array name in full, like this:
+ //
+ // my_png_from_mem = wxBitmap::NewFromPNGData(cursor_png, WXSIZEOF(cursor_png));
+ my_png_from_mem = wxBITMAP_PNG_FROM_DATA(cursor);