Click here to Skip to main content
16,005,181 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Command ID's Pin
#realJSOP24-Oct-01 5:05
professional#realJSOP24-Oct-01 5:05 
GeneralRe: Command ID's Pin
Bill Wilson24-Oct-01 6:13
Bill Wilson24-Oct-01 6:13 
GeneralRe: Command ID's Pin
#realJSOP24-Oct-01 6:19
professional#realJSOP24-Oct-01 6:19 
GeneralRe: Command ID's Pin
Bill Wilson24-Oct-01 6:24
Bill Wilson24-Oct-01 6:24 
GeneralRe: Command ID's - displaying status bar test and tooltips etc Pin
24-Oct-01 6:42
suss24-Oct-01 6:42 
GeneralRe: Command ID's - displaying status bar test and tooltips etc Pin
Tomasz Sowinski24-Oct-01 7:01
Tomasz Sowinski24-Oct-01 7:01 
Generalnon resizable CFormView Pin
Aviv Halperin24-Oct-01 4:29
Aviv Halperin24-Oct-01 4:29 
GeneralRe: non resizable CFormView Pin
#realJSOP24-Oct-01 5:13
professional#realJSOP24-Oct-01 5:13 
Override the OnSize() message in your view and just don't pass the message on to the base class.

You may have to have a variable that indicates that the window is being initialized so that you can pass the size info along, and NOT to pass it along any other time.

1) Define a private boolean var in your class definition like so:

BOOL m_bAllowResize;


2) In the view constructor, do this:

m_bAllowResize = TRUE;


3) At the end of OnInitialUpdate() do this:

m_bAllowResize = FALSE;


4) In your OnSize function, do this:

if (!bAllowResize) { return; }


I haven't tried this, and you may have to try moving some of the code I listed above around in the class, but in theory, this should be close to what you want.



To hell with those thin-skinned pillow-biters. - Me, 10/03/2001
GeneralRe: non resizable CFormView Pin
Paolo Messina24-Oct-01 8:26
professionalPaolo Messina24-Oct-01 8:26 
GeneralRe: non resizable CFormView Pin
#realJSOP24-Oct-01 8:45
professional#realJSOP24-Oct-01 8:45 
GeneralRe: non resizable CFormView Pin
Paolo Messina24-Oct-01 9:29
professionalPaolo Messina24-Oct-01 9:29 
GeneralRGB (for Christian) Pin
24-Oct-01 3:42
suss24-Oct-01 3:42 
GeneralRe: RGB (for Christian) Pin
Christian Graus24-Oct-01 10:33
protectorChristian Graus24-Oct-01 10:33 
GeneralRe: RGB (for Christian) Pin
24-Oct-01 10:59
suss24-Oct-01 10:59 
GeneralRe: RGB (for Christian) Pin
24-Oct-01 11:01
suss24-Oct-01 11:01 
GeneralMenu in a tree control Pin
24-Oct-01 2:55
suss24-Oct-01 2:55 
GeneralRe: Menu in a tree control Pin
Tomasz Sowinski24-Oct-01 3:29
Tomasz Sowinski24-Oct-01 3:29 
Generalabout LoadLibrary Pin
Maer72724-Oct-01 2:31
Maer72724-Oct-01 2:31 
GeneralRe: about LoadLibrary Pin
Tomasz Sowinski24-Oct-01 3:40
Tomasz Sowinski24-Oct-01 3:40 
Generala simple problem about Dll Pin
Maer72724-Oct-01 2:27
Maer72724-Oct-01 2:27 
GeneralRe: a simple problem about Dll Pin
Steen Krogsgaard24-Oct-01 4:36
Steen Krogsgaard24-Oct-01 4:36 
Generaljust a test. don't bother.... Pin
Gilbert Jeiziner24-Oct-01 2:02
Gilbert Jeiziner24-Oct-01 2:02 
GeneralWhy do not use SetTimer() in CMyView:CListView Pin
24-Oct-01 0:42
suss24-Oct-01 0:42 
GeneralRe: Why do not use SetTimer() in CMyView:CListView Pin
Masaaki Onishi24-Oct-01 4:31
Masaaki Onishi24-Oct-01 4:31 
GeneralRe: Why do not use SetTimer() in CMyView:CListView Pin
Steen Krogsgaard24-Oct-01 4:42
Steen Krogsgaard24-Oct-01 4:42 

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.