Visual C++ Version 4.0 Sample program ViewexI have been trying to do several examples from books th...
By johntrover
hi,i would like to know how to get docking window same as workspace window in vc++.thanx...
By purvik
I need the number of currently opened documents to maintain a TabCtrl with the titles. I found a way...
By anonymous
I have successfully docked two toolbars to my MDI window, one to the left and one to the bottom. Bu...
By suzi
Hi All, We have a resizable docking window class. Within the docking window we have a form view. In...
By kirankumarb
In my app, in my OnOpenDocument handler, i fire off a new process to run WinZipand wait for it to fi...
By mdcarter1
i am a student doing my final year project in engineering. i would like to dock a modeless property ...
By willcui
I am looking for reference books and examples of using VC++ with the Office 2000 programs, Word, Exc...
By tomgroszko, 1 Comments
Hi Everyone,after upgrade to Windows XP recenty i've noticed that dbghelp does not showsymbols ...
By sergey_v, 9 Comments
My View Class includes a private member which is a pointer to my Document. If I call a public functi...
By anonymous, 3 Comments
Hello, I am trying to initiate my application custom made ControlBars docked on the left of the fram...
By anonymous, 1 Comments
Im using a custom library and so far all I have is the triangle going in circles when you press left...
By evostance, 4 Comments
I am having trouble trying to toggle between document templates from toolbar buttons or menuitems(to...
By gregiams, 1 Comments
How may document can I open in a multi doc application?.. Is there any limit ?..Regards,Kareem....
By abdulkareem, 3 Comments
Hi all,Recently, I got a problem from my friend, but I don't know his development environment. I gue...
By peter_yan, 6 Comments
Which technology are you using? Win32 APIs, mfc, ..etc?
Thanks, Ayman Shoukry VC++ Teamaymanshoukry | Sat, 08 Sep 2007 18:09:00 GMT |
Visual Studio.net 2003 using mfc
nathan87 | Sat, 08 Sep 2007 18:10:00 GMT |
Here are some articles on the subject that might help you:
http://www.codeguru.com/Cpp/W-D/docking/
Tom
tomserface | Sat, 08 Sep 2007 18:11:00 GMT |
none of those examples show how to dock a window on the side of the screen. I want to dock the main window, not a child window. Does anyone know how to dock the main window on the side of the screen?
nathan87 | Sat, 08 Sep 2007 18:12:00 GMT |
In that case couldn't you just use MoveWindow() and snap it to the side of the screen? The left side starts at 0 and the right side can be retrieved using GetSystemMetrics(SM_CXSCREEN).
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/getsystemmetrics.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/movewindow.asp
You could track the mouse cursor as your "window" is being dragged and if it gets close move it "Suddenly" over to the left or right. Or, you could just snap it one way or the other based on the direction it moves if you always want it docked (attached to left or right).
Sorry... I thought you were trying to build something like VS Studio with windows in windows.
Tom
tomserface | Sat, 08 Sep 2007 18:13:00 GMT |
THANKS! That helps a lot, but one more question: is there a way that I can get rid of the window frame?
nathan87 | Sat, 08 Sep 2007 18:14:00 GMT |