MCPcopy Create free account
hub / github.com/bbbradsmith/nsfplay / OnInitDialog

Method OnInitDialog

nsfplug_ui/KeyWindow.cpp:146–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144
145// KeyWindow ���b�Z�[�W �n���h��
146BOOL 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
170void KeyWindow::OnSize(UINT nType, int cx, int cy)
171{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected