Constructor/Destructor
| 109 | |
| 110 | // Constructor/Destructor |
| 111 | CBitmapButtonImpl(DWORD dwExtendedStyle = BMPBTN_AUTOSIZE, HIMAGELIST hImageList = NULL) : |
| 112 | m_dwExtendedStyle(dwExtendedStyle), m_ImageList(hImageList), |
| 113 | m_lpstrToolTipText(NULL), |
| 114 | m_fMouseOver(0), m_fFocus(0), m_fPressed(0), m_fChecked(0) |
| 115 | { |
| 116 | m_nImage[_nImageNormal] = -1; |
| 117 | m_nImage[_nImagePushed] = -1; |
| 118 | m_nImage[_nImageFocusOrHover] = -1; |
| 119 | m_nImage[_nImageDisabled] = -1; |
| 120 | |
| 121 | #ifdef _DEBUG |
| 122 | if(((m_dwExtendedStyle & BMPBTN_AUTOFIRE) != 0) && IsCheckMode()) |
| 123 | ATLTRACE2(atlTraceUI, 0, _T("CBitmapButtonImpl - Check mode and BMPBTN_AUTOFIRE cannot be used together, BMPBTN_AUTOFIRE will be ignored.\n")); |
| 124 | #endif // _DEBUG |
| 125 | } |
| 126 | |
| 127 | ~CBitmapButtonImpl() |
| 128 | { |
nothing calls this directly
no test coverage detected