Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- class CView : public CWindowImpl<CView, CRichEditCtrl>, public CRichEditCommands<CView>
- {
- HACCEL m_hAccel;
- public:
- DECLARE_WND_SUPERCLASS(NULL, CRichEditCtrl::GetWndClassName())
- CView() :m_hAccel(NULL)
- {
- //
- }
- BOOL PreTranslateMessage(MSG* pMsg)
- {
- //if (m_hAccel != NULL && TranslateAccelerator(m_hWnd, m_hAccel, pMsg))
- // return TRUE;
- return FALSE;
- }
- BEGIN_MSG_MAP(CView)
- MESSAGE_HANDLER(WM_CREATE,OnCreate)
- CHAIN_MSG_MAP_ALT(CRichEditCommands<CView>,1)
- END_MSG_MAP()
- // Handler prototypes (uncomment arguments if needed):
- // LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
- // LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
- // LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/)
- LRESULT OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled)
- {
- //m_hAccel = LoadAccelerators(_Module.GetModuleInstance(), MAKEINTRESOURCE(IDR_MAINFRAME));
- bHandled = FALSE;
- return 0;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement