Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Timer in a Dialog Box Pin
RobJones30-May-01 6:03
RobJones30-May-01 6:03 
GeneralRe: Timer in a Dialog Box Pin
RobJones30-May-01 8:53
RobJones30-May-01 8:53 
General"Preloading" a driver Pin
29-May-01 12:12
suss29-May-01 12:12 
General'default' button Pin
29-May-01 11:03
suss29-May-01 11:03 
GeneralRe: 'default' button Pin
Hesham Desouky29-May-01 20:26
Hesham Desouky29-May-01 20:26 
GeneralMFC custom control with child Pin
Kayan29-May-01 10:17
Kayan29-May-01 10:17 
GeneralRe: MFC custom control with child Pin
Michael A Barnhart30-May-01 12:02
Michael A Barnhart30-May-01 12:02 
GeneralMFC MDI 2nd main window problem Pin
Peter Jones29-May-01 10:07
Peter Jones29-May-01 10:07 
I have an MFC MDI application that works fine. I'm trying to add another window, outside of the main MDI window. When I create the child view for this 2nd window, a new blank view appears in the main MDI window, leaving the 2nd window frame blank. The frame, and view class are different for the 2nd window. I've tried tracing through the code and I can't figure out how the main window takes my new child window. There's something built into MFC that is causing this. What am I missing, how can I work around it? Naturally, I can create the window and ignore the frame/document/view architecture, but I'd rather not do that. If the following looks a bit strange, I'm following the example of an MFC wizard generated app without document and view support (the document isn't needed). I'm using this approach to try and reduce the ties to frame/document/view and make this work. Tried it the standard way and it didn't go either.

{
CMDIFrameWnd* pFrame2 = new CCalendarFrame;

// create secondary MDI frame window
if (!pFrame2->LoadFrame(IDR_CALENDARTYPE)) return;

// create a new MDI child window
pFrame2->CreateNewChild(
RUNTIME_CLASS(CCalChildFrm), IDR_CALENDARTYPE, NULL, NULL);

// The main window has been initialized, so show and update it.
pFrame2->ShowWindow(SW_SHOWNORMAL);
pFrame2->UpdateWindow();
}

Thanks!
GeneralExplorer does not load shell extension.. Pin
J Patel29-May-01 9:06
J Patel29-May-01 9:06 
GeneralRe: Explorer does not load shell extension.. Pin
Michael Dunn29-May-01 9:38
sitebuilderMichael Dunn29-May-01 9:38 
GeneralRe: Explorer does not load shell extension.. Pin
J Patel29-May-01 9:47
J Patel29-May-01 9:47 
GeneralWebBrowser document Automation capabilities. Pin
Alex Chmakotine29-May-01 8:15
Alex Chmakotine29-May-01 8:15 
GeneralDialog to Doc or Dialog to View update Pin
29-May-01 7:39
suss29-May-01 7:39 
GeneralRe: Dialog to Doc or Dialog to View update Pin
Christian Graus29-May-01 13:16
protectorChristian Graus29-May-01 13:16 
GeneralGetting links in Internet Explorer Pin
Crocmort29-May-01 6:44
Crocmort29-May-01 6:44 
GeneralRe: Getting links in Internet Explorer Pin
Ghazi H. Wadi29-May-01 7:26
Ghazi H. Wadi29-May-01 7:26 
GeneralDDBs, DIBs and printing Pin
Richard Jones29-May-01 6:37
Richard Jones29-May-01 6:37 
GeneralRe: DDBs, DIBs and printing Pin
Chris Losinger29-May-01 6:49
professionalChris Losinger29-May-01 6:49 
GeneralRe: DDBs, DIBs and printing Pin
Christian Graus29-May-01 13:01
protectorChristian Graus29-May-01 13:01 
GeneralIterating Arrays Pin
29-May-01 6:13
suss29-May-01 6:13 
GeneralRe: Iterating Arrays Pin
Michael Dunn29-May-01 9:41
sitebuilderMichael Dunn29-May-01 9:41 
GeneralDriver communicating with a service Pin
DB29-May-01 5:41
DB29-May-01 5:41 
GeneralRe: Driver communicating with a service Pin
Anders Molin29-May-01 9:05
professionalAnders Molin29-May-01 9:05 
GeneralMove the menubar and toolbars permanently in SDI app Pin
29-May-01 5:08
suss29-May-01 5:08 
GeneralWMA File Format Pin
James Spibey29-May-01 4:36
James Spibey29-May-01 4:36 

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.