MacGyverS2000
Programmer
Modifying an existing program...
The child window is a 2x10 frame with some pull-down menus at the top. I'm trying to get rid of the minimize, maximize, and close buttons at the top. The same buttons on the parent window should be the only ones available to the user.
The window is created with the following style:
[tt]cs.style = WS_CHILD | WS_VISIBLE | WS_OVERLAPPED | WS_SYSMENU | FWS_ADDTOTITLE;[/tt]
The close and minimize buttons seem to have no effect. The maximize button initially comes up shown as maximized, with the first press partially shrinking the window as if it could overlap with others. Once partially shrunk, all of the buttons disappear.
I've searched for more styles, but nothing seems to be for turning off the buttons. I know WS_SYSMENU is needed to use the pull-down menus, but using it automatically adds in the buttons. Catch-22.
The child window is a 2x10 frame with some pull-down menus at the top. I'm trying to get rid of the minimize, maximize, and close buttons at the top. The same buttons on the parent window should be the only ones available to the user.
The window is created with the following style:
[tt]cs.style = WS_CHILD | WS_VISIBLE | WS_OVERLAPPED | WS_SYSMENU | FWS_ADDTOTITLE;[/tt]
The close and minimize buttons seem to have no effect. The maximize button initially comes up shown as maximized, with the first press partially shrinking the window as if it could overlap with others. Once partially shrunk, all of the buttons disappear.
I've searched for more styles, but nothing seems to be for turning off the buttons. I know WS_SYSMENU is needed to use the pull-down menus, but using it automatically adds in the buttons. Catch-22.