Click here to Skip to main content
15,891,673 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Crypto API Question Pin
Richard MacCutchan16-Sep-14 5:36
mveRichard MacCutchan16-Sep-14 5:36 
QuestionCMenus : How to use menu handles instead of menu resource ID when needed ? Pin
sdancer7515-Sep-14 20:45
sdancer7515-Sep-14 20:45 
AnswerRe: CMenus : How to use menu handles instead of menu resource ID when needed ? Pin
Richard MacCutchan15-Sep-14 21:19
mveRichard MacCutchan15-Sep-14 21:19 
AnswerRe: CMenus : How to use menu handles instead of menu resource ID when needed ? Pin
CPallini15-Sep-14 21:22
mveCPallini15-Sep-14 21:22 
GeneralRe: CMenus : How to use menu handles instead of menu resource ID when needed ? Pin
sdancer7515-Sep-14 22:07
sdancer7515-Sep-14 22:07 
GeneralRe: CMenus : How to use menu handles instead of menu resource ID when needed ? Pin
CPallini15-Sep-14 23:04
mveCPallini15-Sep-14 23:04 
GeneralRe: CMenus : How to use menu handles instead of menu resource ID when needed ? Pin
Richard MacCutchan16-Sep-14 2:30
mveRichard MacCutchan16-Sep-14 2:30 
GeneralRe: CMenus : How to use menu handles instead of menu resource ID when needed ? Pin
sdancer7516-Sep-14 21:35
sdancer7516-Sep-14 21:35 
Richard MacCutchan wrote:
I suspect you are getting your terminology wrong, and as suggested please show the code that you are having problems with, and why you think it needs this id.



Yes, there was a terminology wrong from my side..... The misunderstanding was done when I tried to initialize a CXTPBrowseButton from Codejock's framework and I needed a resource ID menu but I only create that menu dynamically.


The code example I tried to customize is :
C++
m_edit1.Initialize(this, BES_XTP_POPUPMENU, IDR_POPUP);


and is declared like

C++
virtual bool Initialize(CWnd* pParentWnd, DWORD dwBStyle, UINT nMenu = 0, int nSubMenuIndx = 0);


It seems that I dont have an option in this situation to pass an object handle !!!!

My worng thoughts was that I just needed an ID just to make an object unique for the internal use of the MFC framework but I didn't thought that it was merely a unique RESOURCE ID.

Thanks for clarifying this..... I just dazed and confused.
sdancer75

GeneralRe: CMenus : How to use menu handles instead of menu resource ID when needed ? Pin
Richard MacCutchan16-Sep-14 21:57
mveRichard MacCutchan16-Sep-14 21:57 
GeneralRe: CMenus : How to use menu handles instead of menu resource ID when needed ? Pin
Richard MacCutchan16-Sep-14 2:29
mveRichard MacCutchan16-Sep-14 2:29 
GeneralRe: CMenus : How to use menu handles instead of menu resource ID when needed ? Pin
CPallini16-Sep-14 2:45
mveCPallini16-Sep-14 2:45 
QuestionPassing a class to a sprintf() and similar Pin
Crazy Joe Devola14-Sep-14 19:45
Crazy Joe Devola14-Sep-14 19:45 
AnswerRe: Passing a class to a sprintf() and similar Pin
CPallini14-Sep-14 20:01
mveCPallini14-Sep-14 20:01 
GeneralRe: Passing a class to a sprintf() and similar Pin
Crazy Joe Devola14-Sep-14 20:07
Crazy Joe Devola14-Sep-14 20:07 
GeneralRe: Passing a class to a sprintf() and similar Pin
CPallini15-Sep-14 2:15
mveCPallini15-Sep-14 2:15 
GeneralRe: Passing a class to a sprintf() and similar Pin
Richard MacCutchan16-Sep-14 2:59
mveRichard MacCutchan16-Sep-14 2:59 
GeneralRe: Passing a class to a sprintf() and similar Pin
CPallini16-Sep-14 3:11
mveCPallini16-Sep-14 3:11 
GeneralRe: Passing a class to a sprintf() and similar Pin
Richard MacCutchan16-Sep-14 3:40
mveRichard MacCutchan16-Sep-14 3:40 
GeneralRe: Passing a class to a sprintf() and similar Pin
Richard MacCutchan16-Sep-14 4:04
mveRichard MacCutchan16-Sep-14 4:04 
GeneralRe: Passing a class to a sprintf() and similar Pin
Bram van Kampen16-Sep-14 16:45
Bram van Kampen16-Sep-14 16:45 
AnswerRe: Passing a class to a sprintf() and similar Pin
Richard MacCutchan16-Sep-14 4:04
mveRichard MacCutchan16-Sep-14 4:04 
GeneralRe: Passing a class to a sprintf() and similar Pin
CPallini16-Sep-14 4:33
mveCPallini16-Sep-14 4:33 
GeneralRe: Passing a class to a sprintf() and similar Pin
Richard MacCutchan16-Sep-14 5:03
mveRichard MacCutchan16-Sep-14 5:03 
GeneralRe: Passing a class to a sprintf() and similar Pin
CPallini16-Sep-14 5:13
mveCPallini16-Sep-14 5:13 
GeneralRe: Passing a class to a sprintf() and similar Pin
Richard MacCutchan16-Sep-14 5:30
mveRichard MacCutchan16-Sep-14 5:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.