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. Simulating ToolBar Press

Simulating ToolBar Press

Scheduled Pinned Locked Moved C / C++ / MFC
csharpquestion
3 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.
  • J Offline
    J Offline
    Jawache
    wrote on last edited by
    #1

    How can I simulate a toolbar press, not just the PressButton function since this does not call the function, but the actuall calling of the function related to the toolbar button. Cheers Asim Asim Hussain e: asim@jawache.net w: www.jawache.net

    R 1 Reply Last reply
    0
    • J Jawache

      How can I simulate a toolbar press, not just the PressButton function since this does not call the function, but the actuall calling of the function related to the toolbar button. Cheers Asim Asim Hussain e: asim@jawache.net w: www.jawache.net

      R Offline
      R Offline
      Roger Allen
      wrote on last edited by
      #2

      Can you not just send yourself the correct WM_COMMAND message? AfxGetApp()->SendMessage(WM_COMMAND, ID_TOOLBAR_BUTTON, 0); Roger Allen Sonork 100.10016 WHats brown and sticky? A stick or some smelly stuff!

      J 1 Reply Last reply
      0
      • R Roger Allen

        Can you not just send yourself the correct WM_COMMAND message? AfxGetApp()->SendMessage(WM_COMMAND, ID_TOOLBAR_BUTTON, 0); Roger Allen Sonork 100.10016 WHats brown and sticky? A stick or some smelly stuff!

        J Offline
        J Offline
        Jawache
        wrote on last edited by
        #3

        Thanks... Just figured that one out for myself.. i was using AfxGetApp()->SendMessage(ID_TOOLBAR_BUTTON, 0, 0); and wondering why it wasn't working?!?!?!? Thanks again... Asim. Asim Hussain e: asim@jawache.net w: www.jawache.net

        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