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. Get icon/bitmap from CMenu on Owner Draw Menu ??

Get icon/bitmap from CMenu on Owner Draw Menu ??

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphicshelp
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
    karhong
    wrote on last edited by
    #1

    How do i get the icon/bitmap from CMenu and then draw it on void CMyMenu::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct) { } Currently i able to get the check mark with ODS_CHECKED But i don't know how do i get the icon/bitmap from the original CMenu Any help would be appriciated Regards, KH

    good

    modified on Friday, December 19, 2008 2:10 AM

    S 1 Reply Last reply
    0
    • K karhong

      How do i get the icon/bitmap from CMenu and then draw it on void CMyMenu::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct) { } Currently i able to get the check mark with ODS_CHECKED But i don't know how do i get the icon/bitmap from the original CMenu Any help would be appriciated Regards, KH

      good

      modified on Friday, December 19, 2008 2:10 AM

      S Offline
      S Offline
      Sarath C
      wrote on last edited by
      #2

      You can call CMenu::GetMenuItemInfo[^] Please follow the link, it describes how to use the API

      -Sarath. "Great hopes make everything great possible" - Benjamin Franklin

      My blog - Sharing My Thoughts, An Article - Understanding Statepattern

      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