soccer jersey forums.silverfrost.com :: View topic - Dragging window by it's client area?
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dragging window by it's client area?

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
jalih



Joined: 30 Jul 2012
Posts: 196

PostPosted: Thu Nov 01, 2012 6:06 pm    Post subject: Dragging window by it's client area? Reply with quote

Anyone figured out a simple way to drag window by it's client area?

Currently I modify shape of the window by setting the new window region and use right mouse button click to alternate between normal and "skinned" window mode.

Simple clock example here

Is there some simple trick to fool Clearwin+ and Windows to think window client area to be the caption bar? That way skinned window could be moved easily by dragging with mouse.
Back to top
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2393
Location: Yateley, Hants, UK

PostPosted: Fri Nov 02, 2012 1:45 pm    Post subject: Reply with quote

Part of the function of the caption is to allow the window to be moved, and to respond differently to the client area. If you want to move a window with no caption bar, you have to get the mouse coordinates relative to the screen, and decode the button clicks to work out how much click and drag there has been.

E
Back to top
View user's profile Send private message
jalih



Joined: 30 Jul 2012
Posts: 196

PostPosted: Fri Nov 02, 2012 2:16 pm    Post subject: Re: Reply with quote

LitusSaxonicum wrote:
Part of the function of the caption is to allow the window to be moved, and to respond differently to the client area.

Yes, but on a pure Win32 program I could process WM_NCHITTEST message on a window procedure, call default window procedure and test the return value. If the return value is HTCLIENT, then return HTCAPTION instead.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group