| 144 | |
| 145 | // KeyWindow ���b�Z�[�W �n���h�� |
| 146 | BOOL KeyWindow::OnInitDialog() |
| 147 | { |
| 148 | CDialog::OnInitDialog(); |
| 149 | |
| 150 | CDC *pDC = GetDC(); |
| 151 | |
| 152 | m_digBitmap.LoadBitmap(IDB_DIGIT); |
| 153 | m_digDC.CreateCompatibleDC(pDC); |
| 154 | m_digDC.SelectObject(&m_digBitmap); |
| 155 | m_keyBitmap.CreateCompatibleBitmap(pDC,MaxWidth(),MaxWidth()/14); |
| 156 | m_keyDC.CreateCompatibleDC(pDC); |
| 157 | m_keyDC.SelectObject(&m_keyBitmap); |
| 158 | m_memBitmap.CreateCompatibleBitmap(pDC,MaxWidth(),MaxWidth()/14); |
| 159 | m_memDC.CreateCompatibleDC(pDC); |
| 160 | m_memDC.SelectObject(&m_memBitmap); |
| 161 | |
| 162 | ReleaseDC(pDC); |
| 163 | m_bInit = true; |
| 164 | SetWindowPos(NULL,0,0,MinWidth(),24,SWP_NOMOVE|SWP_NOZORDER); |
| 165 | |
| 166 | return TRUE; // return TRUE unless you set the focus to a control |
| 167 | // ��O : OCX �v���p�e�B �y�[�W�͕K�� FALSE ��Ԃ��܂��B |
| 168 | } |
| 169 | |
| 170 | void KeyWindow::OnSize(UINT nType, int cx, int cy) |
| 171 | { |
nothing calls this directly
no outgoing calls
no test coverage detected