?
Solved

How to close the CFormView?

Posted on 2004-03-29
6
Medium Priority
?
666 Views
Last Modified: 2013-11-20
Hi, if i doing a application using CFormView, how i'm going to auto close the CFormView after i opened it? what method to do it?
0
Comment
Question by:JerryGan9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 80 total points
ID: 10703419
directly from the form view itself
PostMessage(WM_CLOSE, 0, 0L);

else
pFormView->PostMessage(WM_CLOSE, 0, 0L);
0
 

Author Comment

by:JerryGan9
ID: 10703538
i means i use CFormView to do application which contents a few CFormView, if i successful login to 2nd CFormView, the 1st CFormView i want Close it after successful login in to 2nd CFormView, coz the 1st CFormView still got memory there...
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 11850844
My comment would be a way to achieve the desired effect
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month12 days, 4 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question