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