Click here to Skip to main content
15,920,217 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Focus problem on windows 2000 Pin
4-Mar-02 22:16
suss4-Mar-02 22:16 
GeneralRe: Focus problem on windows 2000 Pin
Joaquín M López Muñoz4-Mar-02 22:35
Joaquín M López Muñoz4-Mar-02 22:35 
QuestionHow to make a batch file interactive Pin
Dave Midgley4-Mar-02 4:18
Dave Midgley4-Mar-02 4:18 
AnswerRe: How to make a batch file interactive Pin
Tomasz Sowinski4-Mar-02 4:32
Tomasz Sowinski4-Mar-02 4:32 
GeneralRe: How to make a batch file interactive Pin
Dave Midgley4-Mar-02 4:38
Dave Midgley4-Mar-02 4:38 
GeneralRe: How to make a batch file interactive Pin
Tomasz Sowinski4-Mar-02 4:47
Tomasz Sowinski4-Mar-02 4:47 
AnswerRe: How to make a batch file interactive Pin
56789012344-Mar-02 5:12
56789012344-Mar-02 5:12 
GeneralCToolBar Problem Pin
4-Mar-02 3:55
suss4-Mar-02 3:55 
This is a common problem I face in MFC, and presumably theres a simple answer.

I created a dialog template, and loaded this fine from my CMainFrame, docking it also:

CDlgBar *Dlg = new CDlgBar();
Dlg->Create( this, IDD_DIALOG1, CBRS_LEFT | WS_CHILD, IDD_DIALOG1 );
Dlg->ShowWindow( SW_SHOW );

However, I then wanted to add some code to the Dialog template. So I press ctrl+w in the dialog designer and create a class to hold the dialog template. First problem is that I cant create an MFC class to inherit from CDlgBar. Why?!!! Anyway, I decided to inherit from CDialog and change all references to CDialog to CDialogBar manually. This is a lot of work (as we have to change the base class call etc.)

Being as Visual Studio doesnt let me inherit from CDlgBar I presume there is a reason I shouldnt be doing this?

I just found this note at Microsoft:

Because ClassWizard does not support deriving a class from CDialogBar, this
article shows the steps necessary to create a class from CDialog and then
"convert" the class to CDialogBar.

I guess my question is why doesnt ClassWizard support it?

Thanks
Chris
GeneralRe: CToolBar Problem Pin
4-Mar-02 4:01
suss4-Mar-02 4:01 
GeneralMFC dll acting strange when using &Data in exported f() parameters Pin
4-Mar-02 3:24
suss4-Mar-02 3:24 
GeneralRe: MFC dll acting strange when using &Data in exported f() parameters Pin
Prem Kumar4-Mar-02 3:33
Prem Kumar4-Mar-02 3:33 
GeneralRe: MFC dll acting strange when using &Data in exported f() parameters Pin
Tomasz Sowinski4-Mar-02 3:41
Tomasz Sowinski4-Mar-02 3:41 
Generalsomeone who knows about blocking a packet at network layer using vc++ Pin
4-Mar-02 3:15
suss4-Mar-02 3:15 
GeneralManually opening a document Pin
benjymous4-Mar-02 3:02
benjymous4-Mar-02 3:02 
GeneralRe: Manually opening a document Pin
Prem Kumar4-Mar-02 3:26
Prem Kumar4-Mar-02 3:26 
GeneralCDateTimeCtrl and CTime Pin
User 66584-Mar-02 2:59
User 66584-Mar-02 2:59 
GeneralRe: CDateTimeCtrl and CTime Pin
Prem Kumar4-Mar-02 3:11
Prem Kumar4-Mar-02 3:11 
GeneralRe: CDateTimeCtrl and CTime Pin
Tomasz Sowinski4-Mar-02 3:26
Tomasz Sowinski4-Mar-02 3:26 
GeneralRe: CDateTimeCtrl and CTime Pin
Prem Kumar4-Mar-02 3:28
Prem Kumar4-Mar-02 3:28 
GeneralRe: CDateTimeCtrl and CTime Pin
Tomasz Sowinski4-Mar-02 3:30
Tomasz Sowinski4-Mar-02 3:30 
GeneralRe: CDateTimeCtrl and CTime Pin
User 66584-Mar-02 3:43
User 66584-Mar-02 3:43 
Generalsocket backlog problem Pin
4-Mar-02 2:02
suss4-Mar-02 2:02 
GeneralRe: socket backlog problem Pin
Tim Smith4-Mar-02 2:14
Tim Smith4-Mar-02 2:14 
GeneralRe: socket backlog problem Pin
Joaquín M López Muñoz4-Mar-02 2:17
Joaquín M López Muñoz4-Mar-02 2:17 
GeneralCopy system registry files in win 2k Pin
4-Mar-02 1:35
suss4-Mar-02 1:35 

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.