🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13491

Re: Disable Minimize and Maximize on window

#13491
From: Remy Lebeau (TeamB)
Date: Fri, 10 Oct 2003 20:55
14 lines
1431 bytes
"Bob" <Bob@NoSpam.com> wrote in message
news:3f871a31@newsgroups.borland.com...

> How do I disable the Minimize and Maximize
> controls on a Window, using the WIN32 API?

Use Get/SetWindowLong() to remove the WS_MAXIMIZEBOX  and WS_MINIMIZEBOX
styles.  You may also need to call GetSystemMenu() and then EnableMenuItem()
or Remove/DeleteMenu() to disable/remove the items from the window's system
menu (assuming the window has the WS_SYSMENU style).


Gambit
Technical Details
Message-ID: <3f871c5d$2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!kibo.news.demon.net!demon!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f871a31@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,86f1243541f6800d
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-10 14:09:46 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f871a31@newsgroups.borland.com>
Subject: Re: Disable Minimize and Maximize on window
Date: Fri, 10 Oct 2003 13:55:43 -0700
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.137.75
Message-ID: <3f871c5d$2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1065819229 67.22.137.75 (10 Oct 2003 13:53:49 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!kibo.news.demon.net!demon!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail