A second tutorial: Part 6 Add Predefined Code
This tutorial makes a  simple wxWidgets program to edit XPM format files

Insert Code blocks
Common code is needed to do regular tasks; and patterns are provided in the Insert | Code menu. The code is automatically inserted at the correct place in the .cpp and .h files, together with any extra include files needed

Try these now:

            /*
            strVal = parser.GetParam(iParams);
            frame->DoOpenFile(strVal);
            */
to
            strVal = parser.GetParam(iParams);
            frame->myBitmap = wxBitmap(wxImage(strVal));
            frame->canvas->Refresh();
Next
Back


wxHatch Home link to wxhatch help index