How to drag a dialog box derived from DHtmlDialog ?
2012-05-21 14:06
465 查看
http://www.tech-archive.net/Archive/VC/microsoft.public.vc.mfc/2006-04/msg01276.html
Repair Windows Errors & Optimize Windows Performance
From: "AliR" <AliR@xxxxxxxxxxxxx>
Date: Mon, 17 Apr 2006 11:30:02 -0500
You can do that by catching the DISPID_HTMLELEMENTEVENTS_ONSELECTSTART and
DISPID_HTMLELEMENTEVENTS_ONDRAGSTART for all the elements in the Document.
and call
SendMessage(m_hWnd,WM_NCLBUTTONDOWN,HTCAPTION,0);
Here is an example:
http://www.codeproject.com/dotnet/HtmlSkinCDHtmlDialog.asp
AliR.
"Shatrughan" <shatrughan@xxxxxxxxxxxxxxx> wrote in message
news:ueL6QYhYGHA.1888@xxxxxxxxxxxxxxxxxxxxxxx
Hi
I have created a dialogbox which is derived from CDHtmlDialog. My
dialogbox
don't have titlebar.
Because it is a DHtmlDialog box it contains a web page. Web page hase an
Image looks like titlebar (Which is not a titlebar).
Now what I want is I want to drag my dialog by pressing this image
(titlebar).
I tried to Override OnLButtonDown but control not going there. Why I don't
know?
Aftre tring this I am able to drag my dialog by pressing on border only.
Which is not my requirement.
UINT CDhtmldemoDlg::OnNcHitTest(CPoint point)
{
return HTCAPTION ;
}
Any suggestion ????
--
Thanks and Regards
Shatrughan Prasad Bareth
.
References:
How to drag a dialog box derived from DHtmlDialog ?
From: Shatrughan
Prev by Date: Re: Date Format In CMonthCalCtrl Control
Next by Date: Re: Date Format In CMonthCalCtrl Control
Previous by thread: How to drag a dialog box derived from DHtmlDialog ?
Next by thread: How i can set bmp as a dialog background?
Index(es):
Date
Thread
Re: How to drag a dialog box derived from DHtmlDialog ?
Tech-Archive recommends:Repair Windows Errors & Optimize Windows Performance
From: "AliR" <AliR@xxxxxxxxxxxxx>
Date: Mon, 17 Apr 2006 11:30:02 -0500
You can do that by catching the DISPID_HTMLELEMENTEVENTS_ONSELECTSTART and
DISPID_HTMLELEMENTEVENTS_ONDRAGSTART for all the elements in the Document.
and call
SendMessage(m_hWnd,WM_NCLBUTTONDOWN,HTCAPTION,0);
Here is an example:
http://www.codeproject.com/dotnet/HtmlSkinCDHtmlDialog.asp
AliR.
"Shatrughan" <shatrughan@xxxxxxxxxxxxxxx> wrote in message
news:ueL6QYhYGHA.1888@xxxxxxxxxxxxxxxxxxxxxxx
Hi
I have created a dialogbox which is derived from CDHtmlDialog. My
dialogbox
don't have titlebar.
Because it is a DHtmlDialog box it contains a web page. Web page hase an
Image looks like titlebar (Which is not a titlebar).
Now what I want is I want to drag my dialog by pressing this image
(titlebar).
I tried to Override OnLButtonDown but control not going there. Why I don't
know?
Aftre tring this I am able to drag my dialog by pressing on border only.
Which is not my requirement.
UINT CDhtmldemoDlg::OnNcHitTest(CPoint point)
{
return HTCAPTION ;
}
Any suggestion ????
--
Thanks and Regards
Shatrughan Prasad Bareth
.
References:
How to drag a dialog box derived from DHtmlDialog ?
From: Shatrughan
Prev by Date: Re: Date Format In CMonthCalCtrl Control
Next by Date: Re: Date Format In CMonthCalCtrl Control
Previous by thread: How to drag a dialog box derived from DHtmlDialog ?
Next by thread: How i can set bmp as a dialog background?
Index(es):
Date
Thread
相关文章推荐
- How to: Display a Dialog Box for Selecting Entries from the Contacts Folder
- How to implement Drag and Drop from managed WinForm to Explorer
- How to implement popup Calendar dialog box with DataGrid
- How to access Dropbox from the command line in Linux
- How to load a dll resource dialog box at an application Dialog box (怎么在一个应用程序对话框动态加载DLL里的资源对话框)
- How to cover an IE windowed control (Select Box, ActiveX Object, etc.) with a DHTML layer.
- How to Display Image In Picturebox in VC++ from Iplimage and Mat
- How to implement popup Calendar dialog box with DataGrid
- How to Load Dialog From a Resource DLL?
- How to create a resizeable dialog box with scroll bars in Visual C++
- how to get internal items from a dialog created from wizard of VC2005
- How to drag a virtual file from your app into Windows Explorer
- how to show a dialog box that prompts you to either "Open it" or "Save it to disk"again?
- How to Display Image In Picturebox in VC++ from Iplimage and Mat
- How to drag information from a DataGridView control
- How to make our assemblies appeared in Add Reference dialog box
- (OK) How to access a NAT guest from host with VirtualBox - NAT Port Forwarding
- How to Display a SharePoint Dialog from Ribbon Button and Get Selected Item Context
- How to Customize Common Open File Dialog Box Places Bar in Windows
- How To Skip Search Dialog Box