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

C / C++ / MFC

 
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 
GeneralRe: How to stop a CView from resizing? Pin
moredip12-Apr-02 9:01
moredip12-Apr-02 9:01 
Well I tried what you suggested, but Windows doesn't seem to want to call my OnGetMinMaxInfo() Frown | :(

I've got a CVideoView, which is derived from CPlaybackView, which is derived from - you guessed it - CView.

here's what I've got in CVideoView:

//CVideoview.h
...
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	afx_msg void OnGetMinMaxInfo( MINMAXINFO FAR* lpMMI );
	//afx_msg void OnWindowPosChanging( WINDOWPOS* lpwndpos );
...
DECLARE_MESSAGE_MAP()
//CVideoview.cpp
...
	ON_WM_SIZE()
	//}}AFX_MSG_MAP
	ON_WM_GETMINMAXINFO()
	//ON_WM_WINDOWPOSCHANGING()
...
ENDMESSAGEMAP()
...
...
void CVideoView::OnGetMinMaxInfo( MINMAXINFO FAR* lpMMI )
{
	TRACE( "In CVideoView::OnGetMinMaxInfo()" );
	lpMMI->ptMinTrackSize.x = CXVHC+CXMARGIN*2;
	lpMMI->ptMinTrackSize.y = CYVHC+CXMARGIN*3;
}


That TRACE() never prints Frown | :(

As you might have noticed, I commented out my overridden WM_WINDOWPOSCHANGING, cos I thought that might be why OnGetMinMaxInfo() wasn't being called. But it makes no difference.

I'm wondering what brain-dead mistake I've made Wink | ;)
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 
GeneralRe: process crash on dual processor Winnt4 server Pin
Tim Smith12-Apr-02 8:06
Tim Smith12-Apr-02 8:06 

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.