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. Dialogbars event mapping

Dialogbars event mapping

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiodesignhelpquestion
2 Posts 2 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.
  • I Offline
    I Offline
    ilgale
    wrote on last edited by
    #1

    I've developed a single document application and I use Dialog bars. I've derived a class from CDialogBar in order to map OnCtlColor and I use that class as base class. Then I've derived a class (from my base class)for any dialog bar and I use its instances in CMainFrame instead of default CDialogBar instance created by Visual Studio. I've written a specific class for any dialog bar in order to manage its events in that class instead of in CMainFrame class. (Otherwise, having many dialog bars CMainframe class becomes a very big and complex class). My problem is the following: Visual Studio allows me to create methods for any event of my dialog bar in the specific class but at runtime that methods are never called. It seems that there is no real association between UI controls and methods written in my class (and added with class wizard). All works if I copy that methods and the related MESSAGE_MAP code in CMainframe class. Why my classes doesn't catch dialog bars event while CMainframe do it ?? Thanks a lot.

    D 1 Reply Last reply
    0
    • I ilgale

      I've developed a single document application and I use Dialog bars. I've derived a class from CDialogBar in order to map OnCtlColor and I use that class as base class. Then I've derived a class (from my base class)for any dialog bar and I use its instances in CMainFrame instead of default CDialogBar instance created by Visual Studio. I've written a specific class for any dialog bar in order to manage its events in that class instead of in CMainFrame class. (Otherwise, having many dialog bars CMainframe class becomes a very big and complex class). My problem is the following: Visual Studio allows me to create methods for any event of my dialog bar in the specific class but at runtime that methods are never called. It seems that there is no real association between UI controls and methods written in my class (and added with class wizard). All works if I copy that methods and the related MESSAGE_MAP code in CMainframe class. Why my classes doesn't catch dialog bars event while CMainframe do it ?? Thanks a lot.

      D Offline
      D Offline
      Dennis Gourjii
      wrote on last edited by
      #2

      Visual Studio 7.0 I presume? It's full of such bugs and once in a while I think of rolling back to my favorite 6.0. :((

      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