Click here to Skip to main content
15,895,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalcursor question Pin
ls.wang25-Feb-04 16:35
ls.wang25-Feb-04 16:35 
GeneralAMD64 and MFC Pin
Robert Buldoc25-Feb-04 15:12
Robert Buldoc25-Feb-04 15:12 
GeneralRe: AMD64 and MFC Pin
Michael Dunn25-Feb-04 15:15
sitebuilderMichael Dunn25-Feb-04 15:15 
GeneralRe: AMD64 and MFC Pin
Robert Buldoc25-Feb-04 15:16
Robert Buldoc25-Feb-04 15:16 
GeneralAccess CFormView vars from CMainFrame Pin
Daniel132425-Feb-04 12:02
Daniel132425-Feb-04 12:02 
GeneralRe: Access CFormView vars from CMainFrame Pin
ian mariano25-Feb-04 12:18
ian mariano25-Feb-04 12:18 
GeneralRe: Access CFormView vars from CMainFrame Pin
Daniel132425-Feb-04 13:10
Daniel132425-Feb-04 13:10 
GeneralRe: Access CFormView vars from CMainFrame Pin
Steve S25-Feb-04 22:47
Steve S25-Feb-04 22:47 
You may be reinventing the wheel.
CDocument has CanCloseFrame(), which currently checks the dirty bit of the document and then prompts if you want to save.
You can override this, and have the document ask the form if it's OK to close, and return false if not.
You then don't need to handle WM_CLOSE in CMainFrame, unless you need to for other reasons.

Steve S
GeneralRe: Access CFormView vars from CMainFrame Pin
ian mariano26-Feb-04 1:02
ian mariano26-Feb-04 1:02 
GeneralString Question Pin
USMCmaggot25-Feb-04 11:29
USMCmaggot25-Feb-04 11:29 
GeneralRe: String Question Pin
Daniel132425-Feb-04 11:46
Daniel132425-Feb-04 11:46 
GeneralRe: String Question Pin
Wes Aday25-Feb-04 11:53
professionalWes Aday25-Feb-04 11:53 
GeneralHeapAlloc bombing Pin
TimWallace25-Feb-04 11:26
TimWallace25-Feb-04 11:26 
GeneralRe: HeapAlloc bombing Pin
Ravi Bhavnani25-Feb-04 12:15
professionalRavi Bhavnani25-Feb-04 12:15 
GeneralRe: HeapAlloc bombing SOLVED Pin
TimWallace26-Feb-04 5:16
TimWallace26-Feb-04 5:16 
GeneralCalling MFC from managed C++ Pin
jbmeeh25-Feb-04 10:41
jbmeeh25-Feb-04 10:41 
GeneralMSDN Pin
v0id_dev25-Feb-04 10:30
v0id_dev25-Feb-04 10:30 
GeneralRe: MSDN Pin
ian mariano25-Feb-04 12:23
ian mariano25-Feb-04 12:23 
QuestionRandom number? Pin
LudaLuda25-Feb-04 9:56
LudaLuda25-Feb-04 9:56 
AnswerRe: Random number? Pin
Christian Graus25-Feb-04 10:12
protectorChristian Graus25-Feb-04 10:12 
AnswerRe: Random number? Pin
John M. Drescher25-Feb-04 11:13
John M. Drescher25-Feb-04 11:13 
GeneralCalcFixedLayout and CalcDynamicLayout Pin
ozamgal25-Feb-04 9:06
ozamgal25-Feb-04 9:06 
GeneralMicrosoft SDK/DDK for AMD64 Pin
Alexander M.,25-Feb-04 9:04
Alexander M.,25-Feb-04 9:04 
GeneralRe: Microsoft SDK/DDK for AMD64 [EDITED] Pin
John M. Drescher25-Feb-04 11:19
John M. Drescher25-Feb-04 11:19 
GeneralRe: Microsoft SDK/DDK for AMD64 Pin
John M. Drescher25-Feb-04 11:25
John M. Drescher25-Feb-04 11:25 

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.