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

C / C++ / MFC

 
QuestionMultiplication from int value to float value is not giving proper result. Pin
Amrit Agr20-Feb-11 16:34
Amrit Agr20-Feb-11 16:34 
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 
Is there any possibility to retrieve clicked menu item text?
In this example i can only get an ID, like:

unsigned in clicked = TrackPopupMenu(hContextMenu,
		TPM_RETURNCMD | 
		TPM_VERPOSANIMATION,
		rectangle.left+2, rectangle.bottom-2,
	        0,
		hParent,
		NULL);


So "clicked" contains ID now, like:
switch(clicked)
{
    case MY_ID: // #define MY_ID 666
    {
        do_something();
    }
}

I am interested in getting selected item text instead, because trying to implement dynamic popup menu. Lets say, there are some items in database, they could be changed, added, removed, and when i click a button - it should show a context menu with current items from DB (there are just about 10 items max).
Is there any "easy" way to do it? Or i am better off using combobox for that particular task?
011011010110000101100011011010000110100101101110
0110010101110011

AnswerRe: TrackPopupMenu question Pin
Code-o-mat19-Feb-11 5:24
Code-o-mat19-Feb-11 5:24 
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 

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.