//Formview.cpp
BEGIN_MESSAGE_MAP(Formview, CFormView)
ON_BN_CLICKED(IDC_BUTTON_TEST, &Formview::OnBnClickedButtonTest)
END_MESSAGE_MAP()
void Formview::OnBnClickedButtonTest()
{
// TODO: 在此添加控件通知处理程序代码
SendMessage(ON_COMMAND_TEST, 0, 0);
}
//CMainFrame.cpp
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
ON_COMMAND_TEST(WM_COMMAND_TEST, &CMainFrame::OnCommandTest)
END_MESSAGE_MAP()
void CMainFrame::OnCommandTest(WPARAM wParam, LPARAM lParam)
{
// TODO: 在此处添加消息处理程序代码
}
CTabshadow* CMainFrame::GetRightPane()
{
CWnd* pWnd = m_Splitter->GetPane(0, 1);
CTabshadow* pView = DYNAMIC_DOWNCAST(CTabshadow, pWnd);
CPicture *m_page = (CPicture*)pView->GetTabControl().GetTabWndNoWrapper(1);
CClientDC dc(m_page);
CPen f_pen;
f_pen.CreatePen(PS_SOLID, 5, RGB( 255, 0, 255));
dc.SelectObject(f_pen);
dc.MoveTo(0, -255);
dc.LineTo(255, 0);
return pView;
}
AddView(RUNTIME_CLASS(CFormView),"Display",101,&context);
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。