Click here to Skip to main content
15,892,643 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: display men bar in dialog box Pin
_AnsHUMAN_ 2-Aug-06 18:39
_AnsHUMAN_ 2-Aug-06 18:39 
GeneralRe: display men bar in dialog box Pin
With_problem2-Aug-06 18:45
With_problem2-Aug-06 18:45 
GeneralRe: display men bar in dialog box Pin
Naveen2-Aug-06 18:43
Naveen2-Aug-06 18:43 
GeneralRe: display men bar in dialog box Pin
Hamid_RT2-Aug-06 18:37
Hamid_RT2-Aug-06 18:37 
QuestionCan I delete CWinThread (m_bAutoDelete = false) even It hasn't finished Pin
yccheok2-Aug-06 17:28
yccheok2-Aug-06 17:28 
AnswerRe: Can I delete CWinThread (m_bAutoDelete = false) even It hasn't finished Pin
Naveen2-Aug-06 17:37
Naveen2-Aug-06 17:37 
AnswerRe: Can I delete CWinThread (m_bAutoDelete = false) even It hasn't finished Pin
Hamid_RT2-Aug-06 19:07
Hamid_RT2-Aug-06 19:07 
QuestionVC++ 6.0 MDI programmatically create a new document Pin
clintalt2-Aug-06 17:20
clintalt2-Aug-06 17:20 
I am in the process of writing a very simple MDI application that uses CDAORecordset and CDAORecordView classes to talk to an Access Database. I have created 2 sets of derived classes CRequestSet, CRequestDoc, CRequestView, CContactSet, CContactDoc, and CContactView. I have created the Document templates for both documents and added them.

CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(Confused | :confused:
IDR_REQUESTTYPE,
RUNTIME_CLASS(CRequestDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CRequestView));
AddDocTemplate(pDocTemplate);
pDocTemplate = new CMultiDocTemplate(
IDR_CONTACTTYPE,
RUNTIME_CLASS(CContactDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame for contact
RUNTIME_CLASS(CContactView));
AddDocTemplate(pDocTemplate);
I have also created the required additional resource files. I have found how to have the application start with no active documents, and how to not have the popup display when I select new from the menu.

I have added new menu entrys in the IDR_MAINFRAME menu resource IDD_ACTION_NEWREQUEST, and IDD_ACTION_NEWCONTACT. What is the code necessary to have the application create a new CContactDoc document when the IDD_ACTION_NEWCONTACT is clicked, and a new CRequestDoc document when the IDD_ACTION_NEWREQUEST is clicked.

I am a newbie so any background information and explaination will be greatly appreciated.

Thanks,

Clint

AnswerRe: VC++ 6.0 MDI programmatically create a new document Pin
Viorel.2-Aug-06 21:56
Viorel.2-Aug-06 21:56 
GeneralRe: VC++ 6.0 MDI programmatically create a new document Pin
clintalt4-Aug-06 7:19
clintalt4-Aug-06 7:19 
QuestionList box Pin
thathvamsi2-Aug-06 17:07
thathvamsi2-Aug-06 17:07 
AnswerRe: List box Pin
Naveen2-Aug-06 17:51
Naveen2-Aug-06 17:51 
GeneralRe: List box Pin
thathvamsi2-Aug-06 17:55
thathvamsi2-Aug-06 17:55 
GeneralRe: List box Pin
_AnsHUMAN_ 2-Aug-06 18:29
_AnsHUMAN_ 2-Aug-06 18:29 
GeneralRe: List box Pin
Hamid_RT2-Aug-06 18:42
Hamid_RT2-Aug-06 18:42 
GeneralRe: List box Pin
thathvamsi2-Aug-06 19:23
thathvamsi2-Aug-06 19:23 
GeneralRe: List box Pin
Naveen2-Aug-06 19:35
Naveen2-Aug-06 19:35 
GeneralRe: List box Pin
Hamid_RT2-Aug-06 19:58
Hamid_RT2-Aug-06 19:58 
QuestionHow to invoke a command in a context menu? Pin
ewighell2-Aug-06 16:42
ewighell2-Aug-06 16:42 
AnswerRe: How to invoke a command in a context menu? Pin
Milton Karimbekallil2-Aug-06 18:09
Milton Karimbekallil2-Aug-06 18:09 
GeneralRe: How to invoke a command in a context menu? Pin
ewighell2-Aug-06 21:54
ewighell2-Aug-06 21:54 
GeneralRe: How to invoke a command in a context menu? Pin
Milton Karimbekallil13-Aug-06 22:44
Milton Karimbekallil13-Aug-06 22:44 
QuestionPlz help.. about CWebBrowser2 class. Pin
NSoft2-Aug-06 12:30
NSoft2-Aug-06 12:30 
QuestionQuestion about the Ethernet Physical Layer Pin
Joel Holdsworth2-Aug-06 9:37
Joel Holdsworth2-Aug-06 9:37 
AnswerRe: Question about the Ethernet Physical Layer Pin
Trollslayer2-Aug-06 10:44
mentorTrollslayer2-Aug-06 10:44 

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.