Click here to Skip to main content
15,917,565 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHTML viewer Pin
Jamie Hale6-May-02 10:29
Jamie Hale6-May-02 10:29 
GeneralMemory deallocation Pin
Szymon Pusz6-May-02 10:05
Szymon Pusz6-May-02 10:05 
GeneralRe: Memory deallocation Pin
Tim Smith6-May-02 10:09
Tim Smith6-May-02 10:09 
GeneralVC++ 6 release and debug Pin
6-May-02 9:46
suss6-May-02 9:46 
GeneralRe: VC++ 6 release and debug Pin
Paul M Watt6-May-02 9:55
mentorPaul M Watt6-May-02 9:55 
GeneralRe: VC++ 6 release and debug Pin
Chris Losinger6-May-02 9:55
professionalChris Losinger6-May-02 9:55 
Questionhow to clear view's content? Pin
Angel Kid6-May-02 9:03
Angel Kid6-May-02 9:03 
AnswerRe: how to clear view's content? Pin
Matt Gullett6-May-02 10:17
Matt Gullett6-May-02 10:17 
What kind of view?

It could be as simple as calling SetWindowText(hWnd, ""); It could be as involved as destorying all your internal document objects and calling Invalidate(FALSE);

Unless you are using one of the MFC provided control-views (tree view, edit view, list view), you are doing all the drawing yourself in the OnDraw function. If that is the case you will have to do whatever you need to do to blank the screen.

For CEditView, just SetWindowText, for CTreeView I believe it is DeleteAllItems and for CListView I believe it is DeleteAllItems also.

Look in MSDN for more info.
GeneralVC7 can't find source files Pin
Jim A. Johnson6-May-02 8:12
Jim A. Johnson6-May-02 8:12 
GeneralRe: VC7 can't find source files Pin
Tom Archer6-May-02 12:55
Tom Archer6-May-02 12:55 
GeneralDrawing transparent bitmap ... Pin
Hadi Rezaee6-May-02 8:05
Hadi Rezaee6-May-02 8:05 
GeneralRe: Drawing transparent bitmap ... Pin
Shog96-May-02 8:28
sitebuilderShog96-May-02 8:28 
GeneralRe: Drawing transparent bitmap ... Pin
Hadi Rezaee6-May-02 9:11
Hadi Rezaee6-May-02 9:11 
GeneralRe: Drawing transparent bitmap ... Pin
Paul M Watt6-May-02 8:29
mentorPaul M Watt6-May-02 8:29 
GeneralRe: Drawing transparent bitmap ... Pin
Hadi Rezaee6-May-02 9:17
Hadi Rezaee6-May-02 9:17 
GeneralException handling under XP Pin
Parish6-May-02 8:04
Parish6-May-02 8:04 
GeneralRe: Exception handling under XP Pin
Matt Gullett6-May-02 10:13
Matt Gullett6-May-02 10:13 
GeneralRe: Exception handling under XP Pin
Parish8-May-02 5:27
Parish8-May-02 5:27 
GeneralMultiple Dialogs Pin
tordyvel6-May-02 7:33
tordyvel6-May-02 7:33 
GeneralRe: Multiple Dialogs Pin
KingsGambit6-May-02 7:53
KingsGambit6-May-02 7:53 
GeneralRe: Multiple Dialogs Pin
Paul M Watt6-May-02 8:01
mentorPaul M Watt6-May-02 8:01 
GeneralRe: Multiple Dialogs Pin
Tom Archer6-May-02 12:40
Tom Archer6-May-02 12:40 
GeneralPresentation question Pin
HenrikO6-May-02 7:03
HenrikO6-May-02 7:03 
GeneralRe: Presentation question Pin
Rama Krishna Vavilala6-May-02 7:09
Rama Krishna Vavilala6-May-02 7:09 
GeneralUsing MFC on Windows XP Pin
6-May-02 6:55
suss6-May-02 6:55 

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.