Click here to Skip to main content
15,886,823 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
THANK YOU FOR CHANGING THE TITLE.

I currently have an application that that has 3 property pages.
Manually using the mouse with left button down I can move any of the 3 pages to anywhere on the desktop. Just moving the page not the whole application window.

Can someone please tell me if this can be accomplished programmatically?
I am using VC++. I have tried doing a search and have not been able to get an example.

I have been able to set the mouse to the page i want to move. But am stuck after that.

I did try move Window function, but it moves all 3 pages.

Can Someone please help?

Sorry should have put this in here as well

If you want an example of what I am trying to do, add a few pages to the browser and take one tab out and move it to the desktop.


C++
::MoveWindow(m_TargethWnd,0,0,TARGETWIDTH + 2,TARGETHEIGHT + 2, TRUE); 
Posted
Updated 11-Dec-14 7:35am
v5
Comments
Richard MacCutchan 11-Dec-14 12:56pm    
MoveWindow should do it, but if it moves all three windows then you need to show us your code.
Richard MacCutchan 11-Dec-14 13:57pm    
I can't believe that one line of code moves all your windows.
FISH786 11-Dec-14 14:04pm    
it sure does, I thought the HWND to the window would have solved it. I know for a fact that i have different HWND because I get different values and i get the same values when i check it through SPY
barneyman 11-Dec-14 17:59pm    
sounds like the parent is catching the wm_move of one child window and moving the others in sync, either as a feature or a bug - what you've described happening is not native windows behaviour
FISH786 11-Dec-14 18:21pm    
You are right, either a bug or a feature one or the other. Is there a way to use the WM_MOUSEMOVE and WM_LBUTTONDOWN and achieve the same result?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900