Re: [GD-Windows] Newbie Windows question
Brought to you by:
vexxed72
From: <bwa...@bt...> - 2001-11-23 22:37:50
|
You wrote: >I'd like to either remove the "X" close box from the titlebar, or >possibly gray it out. I still need the minimize button though. Is this >type of thing possible? I couldn't see anything in the various window >styles for this. The solution is to add CS_NOCLOSE to your window class style. IE wcex.style =3D CS_HREDRAW | CS_VREDRAW | CS_NOCLOSE; but you will need WS_SYSMENU|WS_MINIMIZEBOX|WS_OVERLAPPED (within CreateWindow) to get the minimize box showing at all. This isn't perfect - you still have a close button but its disabled. = (Close in the system menu is also disabled). Hope this helps. Benedict -- Reality is Insanity |