Article View: borland.public.cppbuilder.nativeapi
Article #9004How to Move (Drag & Drop) a no-titlebar Window?
From: PC Hua
Date: Tue, 17 Aug 2004 02:30
Date: Tue, 17 Aug 2004 02:30
23 lines
1720 bytes
1720 bytes
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). I think (1) is harder to implement or even not possible. In (2) I can use the system menu. My questions: 1) How can I access the system menu 'Move','Size' etc.? 2) When the cross appears after selecting 'Move', I have to press any arrow key. Then the window can be place by mouse pointer. Can this be done in the program? thanks Phuoc Can HUA -- _/\__/\__/\__/\__/\__/\_ www.folksfun.com
Technical Details
Message-ID:
<opscuulsqrpmxkmr@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c9d83d815dc3e377,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Newsgroups: borland.public.cppbuilder.nativeapi Subject: How to Move (Drag & Drop) a no-titlebar Window? From: PC Hua <home-AT-huaonline.DOT.com> Content-Type: text/plain; format=flowed; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Tue, 17 Aug 2004 12:30:54 +1000 Message-ID: <opscuulsqrpmxkmr@newsgroups.borland.com> User-Agent: Opera7.21/Win32 M2 build 3218 NNTP-Posting-Host: 203.194.21.162 X-Trace: newsgroups.borland.com 1092709854 203.194.21.162 (16 Aug 2004 19:30:54 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail