Click here to Skip to main content
15,914,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Error In TerminateProcess() Pin
Hamid_RT1-Jul-06 2:28
Hamid_RT1-Jul-06 2:28 
GeneralRe: Error In TerminateProcess() Pin
Sameer_Thakur3-Jul-06 19:21
Sameer_Thakur3-Jul-06 19:21 
GeneralRe: Error In TerminateProcess() Pin
Sameer_Thakur4-Jul-06 1:12
Sameer_Thakur4-Jul-06 1:12 
GeneralRe: Error In TerminateProcess() Pin
Hamid_RT4-Jul-06 2:22
Hamid_RT4-Jul-06 2:22 
QuestionHow We Add Popup to listbox Items Pin
muravi30-Jun-06 23:32
muravi30-Jun-06 23:32 
AnswerRe: How We Add Popup to listbox Items [modified] Pin
_AnsHUMAN_ 30-Jun-06 23:37
_AnsHUMAN_ 30-Jun-06 23:37 
GeneralRe: How We Add Popup to listbox Items Pin
muravi30-Jun-06 23:40
muravi30-Jun-06 23:40 
GeneralRe: How We Add Popup to listbox Items [modified] Pin
_AnsHUMAN_ 1-Jul-06 0:56
_AnsHUMAN_ 1-Jul-06 0:56 
Derive a class from CListBox(CMyList)and override the OnContextMenu function.
Create a menu in the resource editor as ID_POPUP
Add items and add handlers to those menu items.
IN the OnContextMenu Add the following lines of code
CMenu* myMenu=new CMenu();
myMenu->LoadMenu( ID_POPUP );
// Deleted the line here
myMenu->TrackPopupMenu( TPM_LEFTALIGN|TPM_RIGHTBUTTON,point.x,point.y,this );

When you declare the variable for CListBox change it to CMyList and add the header file (MyList.h where you declare the variable in the header file)

Somethings seem HARD to do, until we know how to do them.
Wink | ;-)
_AnShUmAn_


-- modified at 7:35 Saturday 1st July, 2006
GeneralRe: How We Add Popup to listbox Items [modified] Pin
muravi1-Jul-06 1:32
muravi1-Jul-06 1:32 
GeneralRe: How We Add Popup to listbox Items Pin
_AnsHUMAN_ 1-Jul-06 1:37
_AnsHUMAN_ 1-Jul-06 1:37 
GeneralRe: How We Add Popup to listbox Items Pin
muravi1-Jul-06 1:43
muravi1-Jul-06 1:43 
GeneralRe: How We Add Popup to listbox Items Pin
_AnsHUMAN_ 1-Jul-06 1:46
_AnsHUMAN_ 1-Jul-06 1:46 
GeneralRe: How We Add Popup to listbox Items Pin
happy_ram1-Jul-06 1:47
happy_ram1-Jul-06 1:47 
GeneralRe: How We Add Popup to listbox Items Pin
_AnsHUMAN_ 1-Jul-06 1:54
_AnsHUMAN_ 1-Jul-06 1:54 
GeneralRe: How We Add Popup to listbox Items Pin
happy_ram1-Jul-06 1:58
happy_ram1-Jul-06 1:58 
AnswerRe: How We Add Popup to listbox Items Pin
Hamid_RT1-Jul-06 2:05
Hamid_RT1-Jul-06 2:05 
QuestionAdd In's Pin
arunperi30-Jun-06 23:31
arunperi30-Jun-06 23:31 
AnswerRe: Add In's Pin
_AnsHUMAN_ 30-Jun-06 23:35
_AnsHUMAN_ 30-Jun-06 23:35 
QuestionAbout fax answering in visual C++ Pin
mt_samiei30-Jun-06 22:19
mt_samiei30-Jun-06 22:19 
AnswerRe: About fax answering in visual C++ Pin
Naveen30-Jun-06 22:39
Naveen30-Jun-06 22:39 
GeneralRe: About fax answering in visual C++ Pin
mt_samiei30-Jun-06 22:40
mt_samiei30-Jun-06 22:40 
AnswerRe: About fax answering in visual C++ Pin
Rilhas9-Jul-06 5:30
Rilhas9-Jul-06 5:30 
Questioncan we make a particuler item of menu coloured Pin
cancerion30-Jun-06 20:50
cancerion30-Jun-06 20:50 
AnswerRe: can we make a particuler item of menu coloured [modified] Pin
Don Box30-Jun-06 20:54
Don Box30-Jun-06 20:54 
AnswerRe: can we make a particuler item of menu coloured Pin
Hamid_RT30-Jun-06 21:21
Hamid_RT30-Jun-06 21:21 

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.