Click here to Skip to main content
15,913,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: what's function? Pin
Max++28-Jun-07 7:00
Max++28-Jun-07 7:00 
AnswerRe: what's function? Pin
led mike28-Jun-07 7:52
led mike28-Jun-07 7:52 
AnswerRe: what's function? Pin
Adno28-Jun-07 8:55
Adno28-Jun-07 8:55 
GeneralRe: what's function? Pin
led mike28-Jun-07 9:21
led mike28-Jun-07 9:21 
GeneralRe: what's function? Pin
Adno28-Jun-07 9:44
Adno28-Jun-07 9:44 
AnswerRe: what's function? [modified] Pin
led mike28-Jun-07 9:23
led mike28-Jun-07 9:23 
GeneralRe: what's function? Pin
Mark Salsbery28-Jun-07 11:16
Mark Salsbery28-Jun-07 11:16 
Questioncall main view form subclass Pin
Tara1428-Jun-07 5:41
Tara1428-Jun-07 5:41 
Hi,

I have a program, SDI, with FormView, CGreenView written in vc++6. I have created a subclass of CListCtrl named CMyListCtrl.

Now, when the user right-clicks on the listctrl, a menu pops up with options like 'edit', 'delete' etc. When the user selects 'edit' a dialog pops up and some stuff is done. The coding for the handling the right-click, calling the dialog box is done in CMyListCtrl.

After the dialog box closes, I want to call a function which is written in CGreenView the main view class.

Please can you tell me the right way of doing it?
void CMyListCtrl::OnRecordEdit() 
{
	if (nItem != -1)
	{	
		CAddNew *pDlg = new CAddNew();
		pDlg->type = 2;
		Dlg->DoModal();
		delete pDlg;
		// now call the function to update the list
                // which is in CGreenView, the main view class
	}
}


Thanks.


Fortitudine Vincimus!

AnswerRe: call main view form subclass Pin
Matthew Faithfull28-Jun-07 6:27
Matthew Faithfull28-Jun-07 6:27 
GeneralRe: Yipeeeee! Pin
Tara1428-Jun-07 17:27
Tara1428-Jun-07 17:27 
QuestionUsing ShellExecute to launch notepad ??? Pin
ldsdbomber28-Jun-07 5:14
ldsdbomber28-Jun-07 5:14 
AnswerRe: Using ShellExecute to launch notepad ??? Pin
Mark Salsbery28-Jun-07 7:07
Mark Salsbery28-Jun-07 7:07 
GeneralRe: Using ShellExecute to launch notepad ??? Pin
ldsdbomber28-Jun-07 23:30
ldsdbomber28-Jun-07 23:30 
AnswerRe: Using ShellExecute to launch notepad ??? Pin
toxcct28-Jun-07 7:19
toxcct28-Jun-07 7:19 
GeneralRe: Using ShellExecute to launch notepad ??? Pin
ldsdbomber28-Jun-07 23:31
ldsdbomber28-Jun-07 23:31 
QuestionTime and Date Pin
mcsherry28-Jun-07 5:05
mcsherry28-Jun-07 5:05 
Questionscrollbars Pin
Adno28-Jun-07 4:37
Adno28-Jun-07 4:37 
Questionunions and their methods... Pin
zqueezy28-Jun-07 4:24
zqueezy28-Jun-07 4:24 
AnswerRe: unions and their methods... Pin
CPallini28-Jun-07 5:11
mveCPallini28-Jun-07 5:11 
Questionhide java errors/warnings in webbrowser control [modified] Pin
awah28-Jun-07 3:59
awah28-Jun-07 3:59 
QuestionTaking in the string selected from the combo box and then using it for further tasks Pin
lovneet28-Jun-07 3:09
lovneet28-Jun-07 3:09 
AnswerRe: Taking in the string selected from the combo box and then using it for further tasks Pin
CPallini28-Jun-07 3:26
mveCPallini28-Jun-07 3:26 
GeneralRe: Taking in the string selected from the combo box and then using it for further tasks Pin
lovneet28-Jun-07 19:23
lovneet28-Jun-07 19:23 
Questionturning off tab stop for some items Pin
ldsdbomber28-Jun-07 2:45
ldsdbomber28-Jun-07 2:45 
AnswerRe: turning off tab stop for some items Pin
toxcct28-Jun-07 2:47
toxcct28-Jun-07 2:47 

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.