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. ATL / WTL / STL
  4. WTL eats up the messages

WTL eats up the messages

Scheduled Pinned Locked Moved ATL / WTL / STL
c++helptutorialquestion
3 Posts 2 Posters 5 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.
  • A Offline
    A Offline
    AlexO
    wrote on last edited by
    #1

    Example one: I create custom (dialog based) toolbar. CMainFrame winproc eats up RBN_AUTOSIZE, so my view has resizing problems. Temp Fix NOTIFY_CODE_HANDLER(RBN_AUTOSIZE, ...) at the beginning of the message map. Example two: on a property page (CPropertyPageImpl) I try to create owner drown combo. CPropertyPageImpl winproc eats up WM_DRAWITEM for the edit part. Fix is similar to intercept WM_DRAWITEM and ::SendMessage(((LPDRAWITEMSTRUCT)lParam)->hwndItem .... There is obviously something that I am doing wrong in my code that makes WTL/ATL winprocs to eat up the messages. Any ideas?

    E 1 Reply Last reply
    0
    • A AlexO

      Example one: I create custom (dialog based) toolbar. CMainFrame winproc eats up RBN_AUTOSIZE, so my view has resizing problems. Temp Fix NOTIFY_CODE_HANDLER(RBN_AUTOSIZE, ...) at the beginning of the message map. Example two: on a property page (CPropertyPageImpl) I try to create owner drown combo. CPropertyPageImpl winproc eats up WM_DRAWITEM for the edit part. Fix is similar to intercept WM_DRAWITEM and ::SendMessage(((LPDRAWITEMSTRUCT)lParam)->hwndItem .... There is obviously something that I am doing wrong in my code that makes WTL/ATL winprocs to eat up the messages. Any ideas?

      E Offline
      E Offline
      Ed Gadziemski
      wrote on last edited by
      #2

      Perhaps adding the REFLECT_NOTIFICATIONS() macro to the message map would be helpful.

      A 1 Reply Last reply
      0
      • E Ed Gadziemski

        Perhaps adding the REFLECT_NOTIFICATIONS() macro to the message map would be helpful.

        A Offline
        A Offline
        AlexO
        wrote on last edited by
        #3

        done that - does not help:((

        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