remove the close, maximize and minimize buttons from a dialog
-
Hi Does anybody knows how can I remove the close, maximize and minimize buttons from a dialogduring runtime? (I use the doc/view configuration in my project)
-
Hi Does anybody knows how can I remove the close, maximize and minimize buttons from a dialogduring runtime? (I use the doc/view configuration in my project)
Use
ModifyStyle()
! A. Riazi -
Hi Does anybody knows how can I remove the close, maximize and minimize buttons from a dialogduring runtime? (I use the doc/view configuration in my project)
You can use SetWindowLong. SetWindowLong(this->m_hWnd,GWL_STYLE, GetWindowLong(this->m_hWnd,GWL_STYLE) | WS_MINIMIZEBOX | WS_MAXIMIZEBOX); That code would add the minimize and maximize box. ----- We are what we repeatedly do. Excellence, then, is not an act, but a habit.