Курсовая работа: Характеристика Win32
{
}
// –
// PreCreateWindow
BOOL
CMainFrame: PreCreateWindow (
CREATESTRUCT& cs
)
{
if (! CFrameWnd: PreCreateWindow(cs))
return FALSE;
cs.dwExStyle &= ~WS_EX_CLIENTEDGE;
cs.lpszClass = AfxRegisterWndClass (0, NULL, NULL,
AfxGetApp()->LoadIcon (IDR_MAINFRAME));
return TRUE;
}
// –
void
CMainFrame: OnContextMenu (
CWnd * pWnd,
CPoint point
)
{
if (pWnd!= &m_wndView)
return;
int nSel = m_wndView. GetNextItem (-1, LVNI_SELECTED);
if (nSel == -1)
return;
if (point.x == -1 && point.y == -1)