Article View: borland.public.cppbuilder.nativeapi
Article #9005Re: How to Move (Drag & Drop) a no-titlebar Window?
From: Chris Hill
Date: Tue, 17 Aug 2004 07:34
Date: Tue, 17 Aug 2004 07:34
22 lines
1668 bytes
1668 bytes
On Tue, 17 Aug 2004 12:30:54 +1000, PC Hua <home-AT-huaonline.DOT.com> wrote: >I'm using a NOFRAME window of SDL-libraries. After I've googled and >submitted my question to the SDL group and I still haven't got a solution, >now I'm thinking of following solutions: >1) If I can dectect the drag action in the SDL-window can I tell the >system (sending message) and pretend that the user is draging the >titlebar, so that the system will start moving the window? >2) I allow user to select 'Move' from menu just like the system menu (at >the window's corner). Since you posted in this group, I assume you are looking for a Win32 answer. (1) involves handling the WM_NCHITTEST message for the window and returning HTCAPTION (2) can be done by sending the window a WM_SYSCOMMAND message with a wParam of SC_MOVE Chris Hill Chris244@aol.com
Technical Details
Message-ID:
<4121b315.761882309@forums.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<opscuulsqrpmxkmr@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c9d83d815dc3e377 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Chris244@aol.com (Chris Hill) Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: How to Move (Drag & Drop) a no-titlebar Window? Date: Tue, 17 Aug 2004 07:34:31 GMT Message-ID: <4121b315.761882309@forums.borland.com> References: <opscuulsqrpmxkmr@newsgroups.borland.com> X-Newsreader: Forte Free Agent 1.21/32.243 NNTP-Posting-Host: 12.221.66.183 X-Trace: newsgroups.borland.com 1092728068 12.221.66.183 (17 Aug 2004 00:34:28 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail