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. embedded propertysheet in a dialogbar: how to make ON_UPDATE_COMMAND_UI work

embedded propertysheet in a dialogbar: how to make ON_UPDATE_COMMAND_UI work

Scheduled Pinned Locked Moved C / C++ / MFC
hardwarehelptutorialquestion
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.
  • K Offline
    K Offline
    kylur
    wrote on last edited by
    #1

    I've constructed a propertysheet with a working ON_UPDATE_COMMAND_UI system. I've constructed a dialogbar with a working ON_UPDATE_COMMAND_UI system. I've constructed a dialogbar with an embedded propertysheet. Now how do I construct a dialogbar with an embedded propertysheet _AND_ still have ON_UPDATE_COMMAND_UI working in the propertysheet? CMyDialogbar has a CMyPropertySheet member which assume the position of a placeholder control in the dialogbar. The problem seems to be that the idle message does not cascade on from CMyDialogbar into the CMyPropertySheet. Any ideas? Regards, David.

    R 1 Reply Last reply
    0
    • K kylur

      I've constructed a propertysheet with a working ON_UPDATE_COMMAND_UI system. I've constructed a dialogbar with a working ON_UPDATE_COMMAND_UI system. I've constructed a dialogbar with an embedded propertysheet. Now how do I construct a dialogbar with an embedded propertysheet _AND_ still have ON_UPDATE_COMMAND_UI working in the propertysheet? CMyDialogbar has a CMyPropertySheet member which assume the position of a placeholder control in the dialogbar. The problem seems to be that the idle message does not cascade on from CMyDialogbar into the CMyPropertySheet. Any ideas? Regards, David.

      R Offline
      R Offline
      Rage_bla
      wrote on last edited by
      #2

      >The problem seems to be that the idle message does not cascade on from CMyDialogbar into the CMyPropertySheet. Any ideas? Try handling it yourself. afx_msg LRESULT OnKickIdle(WPARAM,LPARAM); ... ON_MESSAGE(WM_KICKIDLE,OnKickIdle) ... LRESULT CMyDialog::OnKickIdle(WPARAM wp, LPARAM lCount) { UpdateDialogControls(this, TRUE); // the dialog // try pMyPropertySheet->UpdateDialogControls(this, TRUE); // or UpdateDialogControls(pMyPropertySheet, TRUE); // or pMyPropertySheet->UpdateDialogControls(pMyPropertySheet, TRUE); // or ::SendMessage(pMyPropertySheet->GetSafeHandle(), WM_KICKIDLE, wp, lp); return 0; } One might work (I am not sure if this is the right way to do this or if it still works - WM_KICKIDLE is/was internal MFC message). Try it... There might be an extra include for the WM_KICKIDLE that is needed... Good luck! H.

      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