Fernando_Fiore

mdi cut,copy and paste

Sep 16th, 2020
37
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma once
  2.  
  3. class CChildFrame : public CMDIChildWindowImpl<CChildFrame>
  4. {
  5. public:
  6.     DECLARE_FRAME_WND_CLASS(NULL, IDR_MDICHILD)
  7.  
  8.     CView m_view;
  9.     CFont m_font;
  10.  
  11.     virtual void OnFinalMessage(HWND /*hWnd*/);
  12.  
  13.     BEGIN_MSG_MAP(CChildFrame)
  14.         MESSAGE_HANDLER(WM_CREATE, OnCreate)
  15.         MESSAGE_HANDLER(WM_FORWARDMSG, OnForwardMsg)
  16.         CHAIN_CLIENT_COMMANDS()
  17.         CHAIN_MSG_MAP(CMDIChildWindowImpl<CChildFrame>)
  18.     END_MSG_MAP()
  19.  
  20. // Handler prototypes (uncomment arguments if needed):
  21. //  LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
  22. //  LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
  23. //  LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/)
  24.  
  25.     LRESULT OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled);
  26.     LRESULT OnForwardMsg(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/);
  27. };
  28.  
RAW Paste Data