Article View: borland.public.cppbuilder.nativeapi
Article #5473Re: How to make a window at *runtime* topmost via:-SetWindowPos() & UpdateWindow()
From: Remy Lebeau (TeamB)
Date: Thu, 18 Aug 2005 18:56
Date: Thu, 18 Aug 2005 18:56
17 lines
1613 bytes
1613 bytes
"Oren Halvani" <xx@xx.com> wrote in message news:4304d052@newsgroups.borland.com... > the Foreground-CheckBox is on a another form, NOT the main form That makes no difference at all. > SetWindowPos(frmMainUnit->Handle, (bForeground) ? HWND_TOPMOST : HWND_NOTOPMOST,0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); > /*...THIS */ SetWindowPos(frmOptions->Handle, (bForeground) ? HWND_TOPMOST : HWND_NOTOPMOST,0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); Why are you setting two separate windows to be top-most at the same time? Gambit
Technical Details
Message-ID:
<4304d9be$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43033a7e$1@newsgroups.borland.com> <430382c4$1@newsgroups.borland.com> <4304d052@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,175ffbbcf7a4552c X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <43033a7e$1@newsgroups.borland.com> <430382c4$1@newsgroups.borland.com> <4304d052@newsgroups.borland.com> Subject: Re: How to make a window at *runtime* topmost via:-SetWindowPos() & UpdateWindow() Date: Thu, 18 Aug 2005 11:56:09 -0700 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <4304d9be$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1124391358 68.69.17.41 (18 Aug 2005 11:55:58 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail