Compare Two CharFont's





-3
Date Submitted Wed. Oct. 26th, 2005 10:33 PM
Revision 1 of 1
Coder mattrmiller
Tags CharFont | Compare | CPlusPlus
Comments 1 comments
Compare Two CharFont's
BOOL CompareCharFont(CHARFORMAT cfA, CHARFORMAT cfB)
{
        // Copy parts
        if (cfA.cbSize != cfB.cbSize)
        {
                return FALSE;
        }
        if (cfA.dwMask != cfB.dwMask)
        {
                return FALSE;
        }
        if (cfA.dwEffects != cfB.dwEffects)
        {
                return FALSE;
        }
        if (cfA.yHeight != cfB.yHeight)
        {
                return FALSE;
        }
        if (cfA.yOffset != cfB.yOffset)
        {
                return FALSE;
        }
        if (cfA.crTextColor != cfB.crTextColor)
        {
                return FALSE;
        }
        if (cfA.bCharSet != cfB.bCharSet)
        {
                return FALSE;
        }
        if (cfA.bPitchAndFamily != cfB.bPitchAndFamily)
        {
                return FALSE;
        }
        if (strcmp(cfA.szFaceName, cfB.szFaceName) == FALSE)
        {
                return FALSE;
        }

        return TRUE;
}

Matthew R. Miller

www.bluecreststudios.com
=================
Matthew R. Miller

http://bluecreststudios.com
http://www.codeandcoffee.com

Comments

Comments No.
Fri. Jul. 21st, 2006 1:20 AM    Beginner hello2usir

Voting