Minimum Window Size
-
I've looked through articles and in the forums but wasn't able to find what I needed. I'm trying to find a way to control the minimum size of the main/parent window so the user can't make it too small for the toolbar. I know there is a way to do it but for the live of me I can't find where to put the code. I created my initial code using MS Visual Studio MFC wizard so I have the standard classes. Any help would be appreciated. Thanks, Bubba
Wishin'I was fishin'.
-
I've looked through articles and in the forums but wasn't able to find what I needed. I'm trying to find a way to control the minimum size of the main/parent window so the user can't make it too small for the toolbar. I know there is a way to do it but for the live of me I can't find where to put the code. I created my initial code using MS Visual Studio MFC wizard so I have the standard classes. Any help would be appreciated. Thanks, Bubba
Wishin'I was fishin'.
BubbaGee wrote:
Studio MFC wizard so I have the standard classes. Any help would be appreciated.
handle WM_GETMINMAXINFO Notification
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
I've looked through articles and in the forums but wasn't able to find what I needed. I'm trying to find a way to control the minimum size of the main/parent window so the user can't make it too small for the toolbar. I know there is a way to do it but for the live of me I can't find where to put the code. I created my initial code using MS Visual Studio MFC wizard so I have the standard classes. Any help would be appreciated. Thanks, Bubba
Wishin'I was fishin'.
Try with this WINDOWPLACEMENT WndpObj; WndpObj.ptMinPosition = CPoint( 25, 25 ); Fill other parameters. refer http://msdn2.microsoft.com/ko-kr/library/kb89946z.aspx[^] then call SetWindowPlacement( &WndpObj );
Dream bigger... Do bigger...Expect smaller aji
-
Try with this WINDOWPLACEMENT WndpObj; WndpObj.ptMinPosition = CPoint( 25, 25 ); Fill other parameters. refer http://msdn2.microsoft.com/ko-kr/library/kb89946z.aspx[^] then call SetWindowPlacement( &WndpObj );
Dream bigger... Do bigger...Expect smaller aji
for that you have to handle WM_SIZE too
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
for that you have to handle WM_SIZE too
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
see me wrote:
Yaa...Need to handle WM_SIZE too:)
:)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You