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

C / C++ / MFC

 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
valikac15-Apr-02 16:24
valikac15-Apr-02 16:24 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
Diarrhio15-Apr-02 16:48
Diarrhio15-Apr-02 16:48 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
valikac15-Apr-02 16:58
valikac15-Apr-02 16:58 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
Diarrhio15-Apr-02 17:08
Diarrhio15-Apr-02 17:08 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
valikac15-Apr-02 17:30
valikac15-Apr-02 17:30 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
valikac15-Apr-02 18:04
valikac15-Apr-02 18:04 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
Diarrhio15-Apr-02 18:50
Diarrhio15-Apr-02 18:50 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
Diarrhio15-Apr-02 18:48
Diarrhio15-Apr-02 18:48 
Well, that is what I was gonna ask you. You might want to the dialog to be modeless. You can still do that with a class derived from CDialog. Just call Create on the dialog instead of DoModal. After you call create, you can access all the controls in the dialog from outside the dialog itself (i.e. from the View). Be sure to create the dialog on the heap using new rather than creating it on the stack. You also have to destroy the dialog yourself when you are done with it. Also be sure to override OnOK and OnCancel in the modeless version of the dialog and comment out the calls to the base class version.

Dialogbars are also cool, but they don't sound like what you need. A modeless dialog should be just fine. Dialogbars also require a bit more overhead in your code.

Good luck
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
valikac16-Apr-02 4:50
valikac16-Apr-02 4:50 
GeneralRe: Before or After Pin
valikac16-Apr-02 12:46
valikac16-Apr-02 12:46 
GeneralBitBlt problem Pin
Jack Handy15-Apr-02 15:26
Jack Handy15-Apr-02 15:26 
GeneralRe: BitBlt problem Pin
Paul M Watt15-Apr-02 18:51
mentorPaul M Watt15-Apr-02 18:51 
GeneralRe: BitBlt problem Pin
Jack Handy15-Apr-02 19:12
Jack Handy15-Apr-02 19:12 
GeneralRe: BitBlt problem Pin
Paul M Watt15-Apr-02 20:08
mentorPaul M Watt15-Apr-02 20:08 
GeneralRe: BitBlt problem Pin
Jack Handy15-Apr-02 21:20
Jack Handy15-Apr-02 21:20 
GeneralRe: BitBlt problem Pin
Paul M Watt15-Apr-02 21:33
mentorPaul M Watt15-Apr-02 21:33 
Generallinker error cant find mfc42u.lib Pin
15-Apr-02 15:15
suss15-Apr-02 15:15 
GeneralRe: linker error cant find mfc42u.lib Pin
Matt Newman15-Apr-02 15:25
Matt Newman15-Apr-02 15:25 
GeneralRe: linker error cant find mfc42u.lib Pin
15-Apr-02 15:40
suss15-Apr-02 15:40 
GeneralUnderstanding The Future of MFC Pin
valikac15-Apr-02 14:56
valikac15-Apr-02 14:56 
GeneralRe: Understanding The Future of MFC Pin
Matt Newman15-Apr-02 15:28
Matt Newman15-Apr-02 15:28 
GeneralRe: Understanding The Future of MFC Pin
Stan Shannon15-Apr-02 16:03
Stan Shannon15-Apr-02 16:03 
GeneralRe: Understanding The Future of MFC Pin
Michael P Butler15-Apr-02 23:58
Michael P Butler15-Apr-02 23:58 
GeneralMore VC7 nonsense: Add Resource Pin
Jim A. Johnson15-Apr-02 14:04
Jim A. Johnson15-Apr-02 14:04 
GeneralRe: More VC7 nonsense: Add Resource Pin
Mike Nordell15-Apr-02 14:33
Mike Nordell15-Apr-02 14:33 

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.