Click here to Skip to main content
15,916,463 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Window coords and toolbar buttons Pin
S O S8-Nov-02 5:33
S O S8-Nov-02 5:33 
GeneralRe: Window coords and toolbar buttons Pin
Anonymous8-Nov-02 5:34
Anonymous8-Nov-02 5:34 
GeneralRe: Window coords and toolbar buttons Pin
Anonymous8-Nov-02 5:36
Anonymous8-Nov-02 5:36 
General"keyboard layout changed" event Pin
alex148-Nov-02 2:09
alex148-Nov-02 2:09 
GeneralCreation of a combobox/editbox from a derived listctrl. Pin
Joan M8-Nov-02 1:47
professionalJoan M8-Nov-02 1:47 
GeneralRe: Creation of a combobox/editbox from a derived listctrl. Pin
includeh108-Nov-02 3:59
includeh108-Nov-02 3:59 
GeneralRe: Creation of a combobox/editbox from a derived listctrl. Pin
Joan M8-Nov-02 4:18
professionalJoan M8-Nov-02 4:18 
QuestionHow to close an MDI view? Pin
Alexinuk8-Nov-02 1:20
Alexinuk8-Nov-02 1:20 
Ok, here's the situation: I've created a new MDI app (with Appwizard) to which I've added four CFormView's. I've registered to Document Templates ok and can open new views without any problem.

The thing is these views are to operate sequentially (there is only one document) - i.e. the user will complete all the nessecary bits on one form, then click a button whoch will open a different form and close the current one.

The new view opens OK, but i'm having difficulty closing the first one without getting various nasty access violations etc. I gather from MSDN that DestroyWindow is the thing I should be calling, but that I should be calling this for both the view and frame - is this right? If so I cannot get it to work at all (shuts down ok but I then get all sorts of access violations which seem to be caused by some bit or other being left in memory).

Any body know how to do this? It strikes me as something pretty elementary but I just can't get a grip on it. Help!
All I want to do is close the view totally.

Alex.
Generalrestarting a program Pin
dennisV7-Nov-02 22:48
dennisV7-Nov-02 22:48 
GeneralRe: restarting a program Pin
benjymous7-Nov-02 22:57
benjymous7-Nov-02 22:57 
GeneralRe: restarting a program Pin
dennisV7-Nov-02 23:20
dennisV7-Nov-02 23:20 
GeneralRe: restarting a program Pin
benjymous7-Nov-02 23:25
benjymous7-Nov-02 23:25 
GeneralRich Edit OLE help!!! Pin
dennisV7-Nov-02 22:42
dennisV7-Nov-02 22:42 
Generalfinding out whether process is running Pin
mariuszpopiolek7-Nov-02 22:23
mariuszpopiolek7-Nov-02 22:23 
GeneralRe: finding out whether process is running Pin
Daniel Turini7-Nov-02 22:38
Daniel Turini7-Nov-02 22:38 
GeneralRe: finding out whether process is running Pin
mariuszpopiolek7-Nov-02 22:51
mariuszpopiolek7-Nov-02 22:51 
GeneralVS.NET GUID autogeneration trick Pin
Jörgen Sigvardsson7-Nov-02 22:10
Jörgen Sigvardsson7-Nov-02 22:10 
GeneralRe: VS.NET GUID autogeneration trick Pin
Daniel Turini7-Nov-02 22:34
Daniel Turini7-Nov-02 22:34 
GeneralRe: VS.NET GUID autogeneration trick Pin
Jörgen Sigvardsson7-Nov-02 22:40
Jörgen Sigvardsson7-Nov-02 22:40 
GeneralColumn width of a list view control Pin
Daniel Strigl7-Nov-02 22:07
Daniel Strigl7-Nov-02 22:07 
GeneralRe: Column width of a list view control Pin
Joan M7-Nov-02 23:33
professionalJoan M7-Nov-02 23:33 
GeneralRe: Column width of a list view control Pin
Daniel Strigl8-Nov-02 0:01
Daniel Strigl8-Nov-02 0:01 
GeneralRe: how can i access from c++ to dbase database? Pin
Vagif Abilov7-Nov-02 22:05
professionalVagif Abilov7-Nov-02 22:05 
Questionuse *.fon font? Pin
alex147-Nov-02 21:35
alex147-Nov-02 21:35 
QuestionHow to change CString data to CString data(in Hex format)? (And change back) Pin
ooosawaddee37-Nov-02 21:08
ooosawaddee37-Nov-02 21:08 

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.