Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Message Mapping Problem

Message Mapping Problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++question
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Md Mazharul Islam Khan
    wrote on last edited by
    #1

    I wrote a class CCamCtrl. I use a Custom message WM_CAPTURE_IMAGE and used message mapping. A dll is to post message. I think dll does not post messsage, sothat OnCaptureData(WPARAM wParam, LPARAM lParam ) event can't be called. Are there any problem in my code or in dll. here i mention that dll works well for dialog based application. Can anyone help me? Thanks in Advance Mazhar header file class CCamCtrl : public COleControl { //some code /// /// // Message maps //{{AFX_MSG(CCamCtrl) afx_msg void OnCaptureData(WPARAM wParam, LPARAM lParam ); afx_msg void OnShowWindow(BOOL bShow, UINT nStatus); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnTimer(UINT nIDEvent); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; in cpp i wrote BEGIN_MESSAGE_MAP(CCamCtrl, COleControl) //{{AFX_MSG_MAP(CCamCtrl) ON_MESSAGE(WM_CAPTURE_IMAGE,OnCaptureData) ON_WM_SHOWWINDOW() ON_WM_LBUTTONDOWN() ON_WM_TIMER() //}}AFX_MSG_MAP ON_MESSAGE(OCM_COMMAND, OnOcmCommand) ON_OLEVERB(AFX_IDS_VERB_PROPERTIES, OnProperties) END_MESSAGE_MAP()

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups