CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2001
    Posts
    126

    Minimize/Maximize programatically

    How would I go about minimizing or maximizing my dialog programatically?
    Thanx


  2. #2
    Join Date
    Aug 2001
    Location
    WA, Bellevue, USA
    Posts
    86

    Re: Minimize/Maximize programatically

    ShowWindow(SW_MINIMIZE);
    Best Regards
    Agha Shujaa Khan


  3. #3
    Join Date
    Jun 2001
    Posts
    126

    Re: Minimize/Maximize programatically

    Thank you very much.


  4. #4
    Join Date
    Aug 1999
    Posts
    281

    Re: Minimize/Maximize programatically

    use this code:



    CMydialog dlg;
    dlg.ShowWindow(SW_MINIMIZE);

    // to restore:

    dlg.ShowWindow(SW_RESTORE);






    HTH,

    Jan

    Please let me know if I helped...


  5. #5
    Join Date
    Jun 2001
    Posts
    126

    Re: Minimize/Maximize programatically

    Ok, I have another one for ya. I need to be able to programatically check if the window is already maximized, but I cannot find a property/method for it in MSDN. Help?


  6. #6
    Join Date
    Jun 2001
    Posts
    126

    Re: Minimize/Maximize programatically

    Perfect! Although now I need a property or function that will tell me if the dialog is currently maximized. I cant find one in MSDN. Ideas?


  7. #7
    Join Date
    Aug 2000
    Location
    West Virginia
    Posts
    7,725

    Re: Minimize/Maximize programatically

    Look at :

    IsIconic()
    IsZoomed()



  8. #8
    Join Date
    Jun 2001
    Posts
    126

    Re: Minimize/Maximize programatically

    Thanks.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured