Click here to Skip to main content
15,884,986 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to move a dialog that donot use title in wince
Posted

1 solution

Hi,

I think you need to elaborate on your question, it is not very clear.

What do you want to achieve and what is your problem?
 
Share this answer
 
Comments
pengxinglove 16-May-10 21:41pm    
hi,
thank you,
i just want move a dialog that property include style is popup and border is NONE by using the mouse
os:wince 5.0
LittleYellowBird 17-May-10 3:23am    
I guess you need to look for the event 'LeftButtonDown' (or whatever the user is going to use to move the window) then use SetWindowPosition according to the mouse co-ordinates ..... ?
pengxinglove 17-May-10 21:08pm    
yes ,
i do like that:
void CTestHitPro_v1Dlg::OnMouseMove(UINT nFlags, CPoint point)
{
CRect rt;
GetClientRect( &rt );

ClientToScreen(&rt);
if( nFlags == MK_LBUTTON )
MoveWindow( point.x,point.y, rt.Width(), rt.Height() );

CDialog::OnMouseMove(nFlags, point);
}
but the result let me down
LittleYellowBird 18-May-10 4:21am    
Right well ask a new question explaining what you have tried and which part does not work.
pengxinglove 31-May-10 1:50am    
thank you Alison p

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