Solved

ActivateFrame(int nCmdShow)

Posted on 1997-12-16
1
353 Views
Last Modified: 2013-11-19
when I create a default MDI app with appwiz, and add
ActivateFrame() by classwiz to mainMDIframe
this function is not visited at all. I put a stop by debugger
ant initiate the app, and close the app, no visit. why ?
I need to use this function to initilize my MDIframe size,
and status etc ? for a good solution I will give 50pts extra
0
Comment
Question by:hasmet
1 Comment
 

Accepted Solution

by:
kalaru earned 100 total points
ID: 1312506
hasmet,
   
      In the case of an MDI appln, the mainframe object is created in the InitInstance of the App class. And after loading the frame , the ShowWindow function is called for that function.
To initialise the size , u can always do that in the ShowWindow Function. To change the styles of the window , u can do that either in the LoadFrame function or in the PreCreateWindow function of the Mainframe class.

In the case of an SDI application , u donot explicitly create the Mainframe object anywhere. Hence all size initialisations are done in the ActivateFrame function which gets called.

In MDI appln , since u're specifically calling the ShowWindow function , u do not need to call the ActivateFrame().
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
repeatSeparator  java  challenge 13 56
Adapt this command to show who installed 29 106
isEverywhere  challenge 19 72
has77  challenge 9 72
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now