Fernando_Fiore

Untitled

Sep 2nd, 2020
60
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma once
  2.  
  3. class CView : public CWindowImpl<CView, CRichEditCtrl>, public CRichEditCommands<CView>
  4. {
  5.     HACCEL m_hAccel;
  6. public:
  7.     DECLARE_WND_SUPERCLASS(NULL, CRichEditCtrl::GetWndClassName())
  8.     CView() :m_hAccel(NULL)
  9.     {
  10.         //
  11.     }
  12.  
  13.     BOOL PreTranslateMessage(MSG* pMsg)
  14.     {
  15.         //if (m_hAccel != NULL && TranslateAccelerator(m_hWnd, m_hAccel, pMsg))
  16.         //  return TRUE;
  17.         return FALSE;
  18.     }
  19.  
  20.     BEGIN_MSG_MAP(CView)
  21.         MESSAGE_HANDLER(WM_CREATE,OnCreate)
  22.         CHAIN_MSG_MAP_ALT(CRichEditCommands<CView>,1)
  23.     END_MSG_MAP()
  24.  
  25. // Handler prototypes (uncomment arguments if needed):
  26. //  LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
  27. //  LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
  28. //  LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/)
  29.  
  30.     LRESULT OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled)
  31.     {
  32.         //m_hAccel = LoadAccelerators(_Module.GetModuleInstance(), MAKEINTRESOURCE(IDR_MAINFRAME));
  33.         bHandled = FALSE;
  34.         return 0;
  35.     }
  36. };
  37.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×