[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 256
  • Last Modified:

Maximize on Execute

I want the view that pops up when you execute the program to be maximized when  it pops up, How to do that?Or How do you increase the size of the client space?
0
sram
Asked:
sram
  • 3
  • 2
1 Solution
 
jhanceCommented:
Use: CWnd::ShowWindow(SW_SHOWMAXIMIZED) in your program to maximize the application window.
0
 
sramAuthor Commented:
Where do I do this ?(In what file? In What function/class...)
0
 
sramAuthor Commented:
Where do I do this ?(In what file? In What function/class...)
0
 
jhanceCommented:
I can't tell you based on what you have posted.  About all I know is that you have an MFC app since this is the area where you posted your question.  Is it a dialog application, MDI, SDI?  
0
 
jhanceCommented:
You can call CWnd::ShowWindow() anywhere in your application where there is a valid CWnd object to call it against.  Once your main windows has been created you have a CWnd and can call it.  
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now