15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


HELP: How to get rid of the close box in a windows title bar

Mao Zhihong -- maozhihong@hotmail.com
Tuesday, December 10, 1996

Environment:  VC++ 4.0 with patch, Win 95

Dear friends,=20
  I find that, in windows 95, the following simple window create code:
...
CWnd::Create(0,title,WS_CAPTION|WS_CHILDWINDOW|WS_THICKFRAME|WS_CLIPSIBLI=
NGS,rc,parent,id);=20
...
  will create a window with a grayed close box on its title bar, I wanna
get rid of this ugly close box, but I don't wanna write my own window
title draw routine, is there any way?

			Yours truly
				Mao
--=20
 "M!cr@$@ft'$ D@vbl $p cE is tHe s=E0fteSt h=E0Rd di k c mPre so@#!"
 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D
      Mao Zhihong ( Robert Mao )  DreamyRainbow Software Studio

      Voc/Fax : 86-25-5408086
      E-Mail  : maozhihong@hotmail.com  mao@seu.edu.cn
      URL     : http://seic3.seu.edu.cn/~mao
 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D



Grant Shirreffs Great Elk -- Grant.S@greatelk.com
Thursday, December 12, 1996

Maybe try creating your own Windows class that has CS_NOCLOSE in its
WNDCLASS.style member.  Just a thought - I haven't tried it under 95 but
it used to work under 3.x OK.

>----------
>From: 	Mao Zhihong
>Sent: 	Tuesday, 10 December 1996 5:08 AM
>To: 	MFC Board
>Subject: 	HELP: How to get rid of the close box in a windows title bar?
>
>Environment:  VC++ 4.0 with patch, Win 95
>
>Dear friends,=20
>  I find that, in windows 95, the following simple window create code:
>...
>CWnd::Create(0,title,WS_CAPTION|WS_CHILDWINDOW|WS_THICKFRAME|WS_CLIPSIBL=

>INGS,rc,parent,id);=20
>...
>  will create a window with a grayed close box on its title bar, I
>wanna
>get rid of this ugly close box, but I don't wanna write my own window
>title draw routine, is there any way?
>
>			Yours truly
>				Mao
>--=20
> "M!cr@$@ft'$ D@vbl $p cE is tHe s=E0fteSt h=E0Rd di k c mPre so@#!"
> =
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D
>      Mao Zhihong ( Robert Mao )  DreamyRainbow Software Studio
>
>      Voc/Fax : 86-25-5408086
>      E-Mail  : maozhihong@hotmail.com  mao@seu.edu.cn
>      URL     : http://seic3.seu.edu.cn/~mao
> =
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D
>




| Вернуться в корень Архива |