🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Custom button in title bar (MDI)

#4233
From: Kent
Date: Thu, 09 Mar 2006 04:50
22 lines
1812 bytes
> My problem: My form is an MDI sheet. When I maximize it, my
> button gets painted over. There must be another event just like


From Windows help:

"An application sends the WM_MDIMAXIMIZE message to a multiple
document interface (MDI) client window to maximize an MDI child
window. Windows resizes the child window to make its client area fill
the client window. Windows places the child window's window menu icon
in the rightmost position of the frame window's menu bar, and places
the child window's restore icon in the leftmost position. Windows also
appends the title bar text of the child window to that of the frame
window."

Unless I'm missing something, when you maximize your window the title
bar is not shown hence the child's title bar text is appended to that
of the frame window.  So wouldn't your custom button need to be drawn
on the title bar of the main window when the child is maximized?

Kent
Technical Details
Message-ID: <440fb3f6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <440db4f7$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c1474b588c71f3fa
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Kent" <kentav@accessus.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <440db4f7$1@newsgroups.borland.com>
Subject: Re: Custom button in title bar (MDI)
Date: Wed, 8 Mar 2006 22:50:06 -0600
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.206.177.237
Message-ID: <440fb3f6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1141879798 207.206.177.237 (8 Mar 2006 20:49:58 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail