Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ActivateFrame(int nCmdShow)

Posted on 1997-12-16
1
Medium Priority
?
410 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
kalaru earned 400 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

609 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