the control like edit control, button contol etc
how to move these controls in runtime
i mean user can have to move the control where ever he wants with in the dialogbox
Printable View
the control like edit control, button contol etc
how to move these controls in runtime
i mean user can have to move the control where ever he wants with in the dialogbox
I personally like to use CRectTracker. Even though it was intended for OLE controls it can be used for just about anything. Granted, you have to use MoveWindow somewhere in your logic to actually move the window but CRectTracker gives you visible border options, hit testing, and handles so it saves you some time in development.
can you provide a simple project sample that uses CRectTracker? I would apreciate it!Quote:
Originally Posted by bob16972
maybe this thread will help you.. :)Quote:
Originally Posted by ravirams
dowload the attached project and see for yourself.. ;)
Attached here is a very simple example that shows how to use CRectTracker to allow user to move/resize a button at run-time.Quote:
Originally Posted by chi_luci
very nice sample! Easy and simple.. I couldn't imagine it would be so simple!Quote:
Originally Posted by ovidiucucu
Only it has one problem: what happens if you move the button outside???
well, I guess limiting the track to a RECT area would be very helpfull!
If you know how to do this, pls, pls help!!! :confused: :sick:
The answer is given in this thread (post #15).Quote:
Originally Posted by chi_luci
thanks!Quote:
Originally Posted by gstercken
Please professor, don't give me an F. I had a headache today and I made my homework too simple. :rolleyes:Quote:
Originally Posted by chi_luci
BTW. Many colleagues asked me if it's possile to track a button outside a dialog template in Visual C++ resource editor. Please tell me how! Pliz, pliz, Pliiiiiizzzzzzzzzz!!!! :cry: :cry: :cry:
:D