Click here to Skip to main content
16,006,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalshared folders Pin
12-Apr-02 8:11
suss12-Apr-02 8:11 
GeneralRe: shared folders Pin
Mike Nordell13-Apr-02 20:51
Mike Nordell13-Apr-02 20:51 
GeneralFull row highlight Pin
kirankm12-Apr-02 7:27
kirankm12-Apr-02 7:27 
GeneralRe: Full row highlight Pin
James R. Twine12-Apr-02 7:49
James R. Twine12-Apr-02 7:49 
QuestionHow to stop a CView from resizing? Pin
moredip12-Apr-02 7:07
moredip12-Apr-02 7:07 
AnswerRe: How to stop a CView from resizing? Pin
Tim Deveaux12-Apr-02 7:12
Tim Deveaux12-Apr-02 7:12 
GeneralRe: How to stop a CView from resizing? Pin
moredip12-Apr-02 8:10
moredip12-Apr-02 8:10 
AnswerRe: How to stop a CView from resizing? Pin
Paul M Watt12-Apr-02 8:15
mentorPaul M Watt12-Apr-02 8:15 
WM_GETMINMAXINFO is the message that you want to override. This message is called right before the WM_ENTERSIZEMOVE message is called, indicating that the program is entering the modal size move loop. Window caches the min max information, and will not let the mouse track to a size any larger or smaller than the dimensions that you specified. This is how you can make it so that the user does not drag the window really tiny, then when they let go it snaps back to a larger size.

WM_GETMINMAXINFO is also called right after WM_WINDOWPOSCHANGING in order to verify that the min and max requirements are met for the window based on what the application sets inside of the handler for WM_WINDOWPOSCHANGING.

I think that your best bet is to handle WM_GETMINMAXINFO for min and max requirements, and anything that needs to be dealt with in between that range should be dealt with in WM_WINDOWPOSCHANGED.

Good Luck


Checkout my Guide to Win32 Paint for Intermediates
GeneralRe: How to stop a CView from resizing? Pin
moredip12-Apr-02 9:01
moredip12-Apr-02 9:01 
GeneralRe: How to stop a CView from resizing? Pin
Matt Gullett12-Apr-02 9:14
Matt Gullett12-Apr-02 9:14 
GeneralRe: How to stop a CView from resizing? Pin
moredip12-Apr-02 9:36
moredip12-Apr-02 9:36 
GeneralRe: How to stop a CView from resizing? Pin
Paul M Watt12-Apr-02 9:43
mentorPaul M Watt12-Apr-02 9:43 
GeneralRe: How to stop a CView from resizing? Pin
moredip12-Apr-02 10:03
moredip12-Apr-02 10:03 
Generalprocess crash on dual processor Winnt4 server Pin
Jim Crafton12-Apr-02 6:47
Jim Crafton12-Apr-02 6:47 
GeneralRe: process crash on dual processor Winnt4 server Pin
Tim Deveaux12-Apr-02 7:03
Tim Deveaux12-Apr-02 7:03 
GeneralRe: process crash on dual processor Winnt4 server Pin
Jim Crafton12-Apr-02 7:17
Jim Crafton12-Apr-02 7:17 
GeneralRe: process crash on dual processor Winnt4 server Pin
Tim Deveaux12-Apr-02 7:21
Tim Deveaux12-Apr-02 7:21 
GeneralRe: process crash on dual processor Winnt4 server Pin
Jim Crafton12-Apr-02 7:58
Jim Crafton12-Apr-02 7:58 
GeneralRe: process crash on dual processor Winnt4 server Pin
Tim Smith12-Apr-02 8:03
Tim Smith12-Apr-02 8:03 
GeneralRe: process crash on dual processor Winnt4 server Pin
Jim Crafton12-Apr-02 8:05
Jim Crafton12-Apr-02 8:05 
GeneralRe: process crash on dual processor Winnt4 server Pin
James R. Twine12-Apr-02 7:43
James R. Twine12-Apr-02 7:43 
GeneralRe: process crash on dual processor Winnt4 server Pin
Mike Nordell13-Apr-02 20:59
Mike Nordell13-Apr-02 20:59 
GeneralRe: process crash on dual processor Winnt4 server Pin
James R. Twine15-Apr-02 2:54
James R. Twine15-Apr-02 2:54 
GeneralRe: process crash on dual processor Winnt4 server Pin
Tim Smith12-Apr-02 7:56
Tim Smith12-Apr-02 7:56 
GeneralRe: process crash on dual processor Winnt4 server Pin
Jim Crafton12-Apr-02 8:03
Jim Crafton12-Apr-02 8:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.