[MSPAINT_NEW] Convert to C++, update header comments