| 42 | // KeyHeader ���b�Z�[�W �n���h�� |
| 43 | |
| 44 | BOOL KeyHeader::OnInitDialog() |
| 45 | { |
| 46 | CDialog::OnInitDialog(); |
| 47 | |
| 48 | CDC *pDC = GetDC(); |
| 49 | |
| 50 | m_hedBitmap.LoadBitmap(IDB_KEYHEADER); |
| 51 | m_hedDC.CreateCompatibleDC(pDC); |
| 52 | m_hedDC.SelectObject(&m_hedBitmap); |
| 53 | m_memBitmap.CreateCompatibleBitmap(pDC,MaxWidth(),MinHeight()); |
| 54 | m_memDC.CreateCompatibleDC(pDC); |
| 55 | m_memDC.SelectObject(&m_memBitmap); |
| 56 | m_memDC.SelectObject(&softgray_pen); |
| 57 | |
| 58 | ReleaseDC(pDC); |
| 59 | return TRUE; // return TRUE unless you set the focus to a control |
| 60 | } |
| 61 | |
| 62 | void KeyHeader::OnPaint() |
| 63 | { |
nothing calls this directly
no outgoing calls
no test coverage detected