Originally posted by: Jens Rahm
void CMyMoveableDlg::OnMouseMove(UINT nFlags, CPoint point)
CDialog::OnMouseMove(nFlags, point);
In the dialog class override the WM_MOUSEMOVE message like this:
{
if(nFlags == MK_LBUTTON)
{
::ReleaseCapture();
::SendMessage(m_hWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0);
}
}
Originally posted by: Peter Drozd
It seems that when you drag the dialog that can now be moved, there is a dotted lined box that surrounds the masked out region of the box, which is the real size of the bitmap resource being used.
The problem is now making this dotted line defining the bounding rectangle to dissapear. Any Ideas???
-pete
I am designing a dialog box with rounded borders. you have to use a region to do this. the bounding rectangle can be much bigger than the viewable region of the dialog box.
Originally posted by: AAL
Thanks
ReplyOriginally posted by: Jon
So simple yet so functional. I will use this a million times. Thank you!
ReplyOriginally posted by: Denis Nesen
It's imposible.... Work.
ReplyOriginally posted by: omi
Reply
Originally posted by: Serge Sly
void CMyDlg::OnLButtonDown(UINT nFlags, CPoint point)
I'm use next code:
{
CDialog::OnLButtonDown(nFlags, point);
SetCursor(AfxGetApp()->LoadStandardCursor(IDC_SIZEALL));
SendMessage( WM_NCLBUTTONDOWN, HTCAPTION, MAKELPARAM( point.x, point.y));
SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
PostMessage(WM_LBUTTONUP);
}
Reply
Originally posted by: Onkar Singh
I wanted to do this a little later in my project but this seems to handy to use.
Thanks,
Onkar Singh
Originally posted by: Walker
It's very good. I used it.
but , I can not catch LBUTTONUP message.
sometimes it comes to me , but too late to use it.
Let me know how i get LBUTTONUP message in time.
Reply
Originally posted by: Jamie Nordmeyer
Woo Hoo!! My SetWindowRgn based dialog now moves!!! Thanks a million for shedding the light.
Reply