Non Moving dialog box
-
Hi, I have a dialog box that I don't want users to be able to move. Currently I have timer running that centers the window ever 5 milliseconds, which could prove to be a bit heavy on resources so I don't want to continue this way. My application is a Windows CE app and I want the window to be positioned in one place and never moved. Any ideas??? Thanks, Claire :confused:
-
Hi, I have a dialog box that I don't want users to be able to move. Currently I have timer running that centers the window ever 5 milliseconds, which could prove to be a bit heavy on resources so I don't want to continue this way. My application is a Windows CE app and I want the window to be positioned in one place and never moved. Any ideas??? Thanks, Claire :confused:
-
Hi, I have a dialog box that I don't want users to be able to move. Currently I have timer running that centers the window ever 5 milliseconds, which could prove to be a bit heavy on resources so I don't want to continue this way. My application is a Windows CE app and I want the window to be positioned in one place and never moved. Any ideas??? Thanks, Claire :confused:
-
Hello, the codegurus around the world.;) (Copy Right 2001 Masaaki Onishi) Check here by Paul DiLascia.:cool: I think that this works for Dialog application. http://msdn.microsoft.com/msdnmag/issues/01/02/c/c0102.asp Have a nice day! -Masaaki Onishi-
-
Hi, I have a dialog box that I don't want users to be able to move. Currently I have timer running that centers the window ever 5 milliseconds, which could prove to be a bit heavy on resources so I don't want to continue this way. My application is a Windows CE app and I want the window to be positioned in one place and never moved. Any ideas??? Thanks, Claire :confused:
detect WM_MOVING. You might be able to prevent movement by resetting the drag rectangle to the initial dialog position P.S. - Why don't you want the dialog moved?
-
Hi, I have a dialog box that I don't want users to be able to move. Currently I have timer running that centers the window ever 5 milliseconds, which could prove to be a bit heavy on resources so I don't want to continue this way. My application is a Windows CE app and I want the window to be positioned in one place and never moved. Any ideas??? Thanks, Claire :confused:
try this: 1:Add the following in the *.h: afx_msg UINT OnNcHitTest(CPoint point); 2:Add in the *.cpp ON_WM_NCHITTEST() 3:Add in the *.cpp: UINT CYourDialog::OnNcHitTest(Cpoint point) { UINT nHitTest=CDialog::OnNcHitTest(point); return (nHitTest==HTCAPTION)?HTCLIENT:nHitTest; } good luck for you! ;) julia
-
Hi, I have a dialog box that I don't want users to be able to move. Currently I have timer running that centers the window ever 5 milliseconds, which could prove to be a bit heavy on resources so I don't want to continue this way. My application is a Windows CE app and I want the window to be positioned in one place and never moved. Any ideas??? Thanks, Claire :confused: