CMP EMBEDDED.COM

Login | Register     Welcome Guest  
HOME DESIGN PRODUCTS COLUMNS E-LEARNING CONFERENCES CODE FORUMS/BLOGS NEWSLETTERS CONTACT FEATURES RSS RSS

Listing 7: The constructor (cbutton.c) Listing 7: The constructor (cbutton.c)


#include "cbutton.h"
/* Private Data Members */
static POSITION posTemp = 0;
/* Class Constructor */
extern void mButtonConstructor(CButton *this, CButtonResource *pResourceInit) 
{
/* Initialize the command object */
this->m_posX = pResourceInit->m_posX;
this->m_posY = pResourceInit->m_posY;
this->m_posWidth = pResourceInit->m_posWidth;
this->m_posHeight = pResourceInit->m_posHeight;
this->m_colHighLight = pResourceInit->m_colHighLight;
this->m_colShadow = pResourceInit->m_colShadow;
this->m_colObjKeyUp = pResourceInit->m_colObjKeyUp;
this->m_colTxtKeyUp = pResourceInit->m_colTxtKeyUp;
this->m_colObjKeyDown = pResourceInit->m_colObjKeyDown;
this->m_colTxtKeyDown = pResourceInit->m_colTxtKeyDown;
this->m_strCaption = pResourceInit->m_strCaption;
}

Embedded.com Career Center
Looking for a new job?
SEARCH JOBS

Browse all jobs

SPONSOR
RECENT JOB POSTINGS





 :