Click here to Skip to main content
15,889,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Multiplication from int value to float value is not giving proper result. Pin
tagopi20-Feb-11 17:16
tagopi20-Feb-11 17:16 
AnswerRe: Multiplication from int value to float value is not giving proper result. Pin
Richard MacCutchan21-Feb-11 0:38
mveRichard MacCutchan21-Feb-11 0:38 
QuestionHow to use Windows forms in unmanaged C++ Pin
Danzy8320-Feb-11 14:12
Danzy8320-Feb-11 14:12 
AnswerRe: How to use Windows forms in unmanaged C++ Pin
csrss20-Feb-11 14:52
csrss20-Feb-11 14:52 
GeneralRe: How to use Windows forms in unmanaged C++ Pin
Danzy8321-Feb-11 1:14
Danzy8321-Feb-11 1:14 
GeneralRe: How to use Windows forms in unmanaged C++ Pin
_AnsHUMAN_ 21-Feb-11 1:49
_AnsHUMAN_ 21-Feb-11 1:49 
QuestionTrackPopupMenu question Pin
csrss19-Feb-11 5:07
csrss19-Feb-11 5:07 
AnswerRe: TrackPopupMenu question Pin
Code-o-mat19-Feb-11 5:24
Code-o-mat19-Feb-11 5:24 
Well, once you have the ID of the menu item, you can use GetMenuItemInfo[^] to retrieve its text. However, since -as far as i understood- you fill the menu with the items yourself you have a way to know which ID represents which text, so you could also try e.g. putting the strings in an array and store their index in some way in the menu item ID, like, 1+index, and then when you got the ID from TrackPopup..., you subtract one and get the array index and don't need to fiddle around with GetMenuItemInfo.

p.s: in case you try the array thing, don't use 0 as a menu item ID (dunno if you can do that or not) because then you would not be able to distinguish between that menu item and the user dismissing the menu without a selection. That's why i suggested index+1...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> //TODO: Implement signature here<

GeneralRe: TrackPopupMenu question Pin
csrss19-Feb-11 5:38
csrss19-Feb-11 5:38 
GeneralRe: TrackPopupMenu question Pin
Code-o-mat19-Feb-11 5:45
Code-o-mat19-Feb-11 5:45 
GeneralRe: TrackPopupMenu question Pin
Niklas L20-Feb-11 20:28
Niklas L20-Feb-11 20:28 
QuestionScroll Bar in CEdit (GetScrollBarCtrl) Pin
Shivanand Gupta19-Feb-11 4:41
Shivanand Gupta19-Feb-11 4:41 
AnswerRe: Scroll Bar in CEdit (GetScrollBarCtrl) Pin
Hans Dietrich19-Feb-11 6:07
mentorHans Dietrich19-Feb-11 6:07 
QuestionHow can I use SetWindowLongPtr function in VC6 ? Pin
mesajflaviu19-Feb-11 2:39
mesajflaviu19-Feb-11 2:39 
AnswerRe: How can I use SetWindowLongPtr function in VC6 ? Pin
Richard MacCutchan19-Feb-11 2:53
mveRichard MacCutchan19-Feb-11 2:53 
AnswerRe: How can I use SetWindowLongPtr function in VC6 ? Pin
User 742933819-Feb-11 21:33
professionalUser 742933819-Feb-11 21:33 
GeneralRe: How can I use SetWindowLongPtr function in VC6 ? Pin
Richard MacCutchan19-Feb-11 21:48
mveRichard MacCutchan19-Feb-11 21:48 
QuestionRe: How can I use SetWindowLongPtr function in VC6 ? Pin
David Crow19-Feb-11 3:22
David Crow19-Feb-11 3:22 
AnswerRe: How can I use SetWindowLongPtr function in VC6 ? Pin
User 742933819-Feb-11 21:35
professionalUser 742933819-Feb-11 21:35 
AnswerRe: How can I use SetWindowLongPtr function in VC6 ? Pin
mesajflaviu20-Feb-11 7:22
mesajflaviu20-Feb-11 7:22 
Question891130 - capturing an image from a camera Pin
ilostmyid219-Feb-11 2:25
professionalilostmyid219-Feb-11 2:25 
QuestionVISUAL C++ resource.h/rc madness mess Pin
andwan018-Feb-11 12:24
andwan018-Feb-11 12:24 
AnswerRe: VISUAL C++ resource.h/rc madness mess Pin
Hans Dietrich18-Feb-11 12:47
mentorHans Dietrich18-Feb-11 12:47 
AnswerRe: VISUAL C++ resource.h/rc madness mess Pin
Albert Holguin18-Feb-11 14:09
professionalAlbert Holguin18-Feb-11 14:09 
QuestionPlugin for activex Pin
S p k 52118-Feb-11 5:48
S p k 52118-Feb-11 5:48 

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.