Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Minimize button for the application

Minimize button for the application

Scheduled Pinned Locked Moved C / C++ / MFC
help
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shir_k
    wrote on last edited by
    #1

    Hi, Dialog box properties are set as below STYLE DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU Problem is with minimize button, Dialog box gets minimized task bar when i press on minimize button but when i press left click of the mouse the application is not restoring back and also when i use alt+tab am not able to restore back the application.Only i can restore by pressing right click of the mouse on the application and select "restore" option. Thanks in advance

    D 1 Reply Last reply
    0
    • S shir_k

      Hi, Dialog box properties are set as below STYLE DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU Problem is with minimize button, Dialog box gets minimized task bar when i press on minimize button but when i press left click of the mouse the application is not restoring back and also when i use alt+tab am not able to restore back the application.Only i can restore by pressing right click of the mouse on the application and select "restore" option. Thanks in advance

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Does this happen with a brand new project (i.e., one that you've added no code to), also?


      "A good athlete is the result of a good and worthy opponent." - David Crow

      "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

      S 1 Reply Last reply
      0
      • D David Crow

        Does this happen with a brand new project (i.e., one that you've added no code to), also?


        "A good athlete is the result of a good and worthy opponent." - David Crow

        "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

        S Offline
        S Offline
        shir_k
        wrote on last edited by
        #3

        No, i tried with new project it works fine with those setting.

        S 1 Reply Last reply
        0
        • S shir_k

          No, i tried with new project it works fine with those setting.

          S Offline
          S Offline
          shir_k
          wrote on last edited by
          #4

          Hi, when i tried with single dialog box it is working but when i include another it is not working. This is how i did 1)Create an SDI application (as our project is done using SDI application) 2)2 new dialog boxes 3)On execution first dialog box opens with OK and CANCEL button (minimize is working fine).On pressing OK button second dialog box opens whose mimimize is not working. 4)Code changes which i have made is as below 1) BOOL CTest_minimizebutApp::InitInstance() { CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CTest_minimizebutDoc), RUNTIME_CLASS(CMainFrame), // main SDI frame window RUNTIME_CLASS(CTest_minimizebutView)); dlg.DoModal(); // AddDocTemplate(pDocTemplate); // Parse command line for standard shell commands, DDE, file open CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); } 2) void CmainDialog::OnOK() { // TODO: Add extra validation here dlg1.DoModal(); CDialog::OnOK(); }

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups