Visual C++6
-
Hi everybody, iam trying to prevent the user from resizing, maximizing and minimizing a FormView window by using : OnSize and OnSizing functions, but it did not work? can somebody help? Thansk in advance
U r using Mdi Application ? Than Override OnSize in CChildFrm and you will get the functionality.
-
Hi everybody, iam trying to prevent the user from resizing, maximizing and minimizing a FormView window by using : OnSize and OnSizing functions, but it did not work? can somebody help? Thansk in advance
susanne1 wrote:
Hi everybody, iam trying to prevent the user from resizing, maximizing and minimizing a FormView window by using : OnSize and OnSizing functions, but it did not work? can somebody help? Thansk in advance
You can handle WM_GETMINMAXINFO or in MFC add a message map entry called ON_WM_GETMINMAXINFO and function prototype looks like this ... afx_msg void OnGetMinMaxInfo( MINMAXINFO FAR* lpMMI );
Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com
-
Hi everybody, iam trying to prevent the user from resizing, maximizing and minimizing a FormView window by using : OnSize and OnSizing functions, but it did not work? can somebody help? Thansk in advance
-
For disabling window resizing you've to handle
WM_GETMINMAXINFO
message. Check this [^]for code snippet. Regards, Jijo._____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
-
Hi Jijo, thanks for your reply, i used WM_GETMINMAXINFO message but it did not work(visual studio does not come to it) :-( Any idea why? Thanks
susanne1 wrote:
Any idea why?
Without seeing your code, it's going to be hard to say for sure. Did you use ClassWizard to create the handler function for it, or did you try to implement the function manually?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
-
Hi Jijo, thanks for your reply, i used WM_GETMINMAXINFO message but it did not work(visual studio does not come to it) :-( Any idea why? Thanks
-
Hi everybody, iam trying to prevent the user from resizing, maximizing and minimizing a FormView window by using : OnSize and OnSizing functions, but it did not work? can somebody help? Thansk in advance
-
susanne1 wrote:
Subject:Visual C++6
susanne1 wrote:
iam trying to prevent the user from resizing, maximizing and minimizing a FormView window
So your question is not about Visual C++ 6, is it ?