Click here to Skip to main content
16,013,207 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to access the view from the doc? Pin
Larry J. Siddens4-Sep-03 9:28
Larry J. Siddens4-Sep-03 9:28 
AnswerRe: how to access the view from the doc? Pin
David Crow4-Sep-03 9:38
David Crow4-Sep-03 9:38 
GeneralRe: how to access the view from the doc? Pin
Binayak4-Sep-03 9:55
Binayak4-Sep-03 9:55 
GeneralRe: how to access the view from the doc? Pin
Larry J. Siddens4-Sep-03 10:03
Larry J. Siddens4-Sep-03 10:03 
GeneralRe: how to access the view from the doc? Pin
Binayak4-Sep-03 10:30
Binayak4-Sep-03 10:30 
GeneralRe: how to access the view from the doc? Pin
Larry J. Siddens4-Sep-03 10:34
Larry J. Siddens4-Sep-03 10:34 
GeneralRe: how to access the view from the doc? Pin
Binayak4-Sep-03 10:36
Binayak4-Sep-03 10:36 
GeneralRe: how to access the view from the doc? Pin
Larry J. Siddens4-Sep-03 10:40
Larry J. Siddens4-Sep-03 10:40 
Try this:

POSITION Pos = GetFirstViewPosition();
ASSERT( Pos ); // Check to see if it returns a valid value.
CGeneratorView* pView = (CGeneratorView*)GetNextView( Pos );
pVeiw->OnPopupRemove();

or:
POSITION Pos = GetFirstViewPosition();
ASSERT( Pos );
CGeneratorView* pView = reinterpret_cast< CGeneratorView* >( GetNextView( Pos ));
pView->OnPopupRemove();

The dynamic_cast is best, you need to enable the RTTI in you build options to use this. It is better checking than the reinterpret_cast which does nothing.

Now, This is assuming that OnPopupRemove is a public method.

Larry

Larry J. Siddens
Cornerstone Communications

TAME THE DOCUMENT MONSTER
www.unifier.biz
GeneralRe: how to access the view from the doc? Pin
Binayak4-Sep-03 10:50
Binayak4-Sep-03 10:50 
GeneralRe: how to access the view from the doc? Pin
Larry J. Siddens4-Sep-03 10:52
Larry J. Siddens4-Sep-03 10:52 
GeneralRe: how to access the view from the doc? Pin
David Crow5-Sep-03 3:46
David Crow5-Sep-03 3:46 
GeneralRe: how to access the view from the doc? Pin
Jagadeesh VN6-Sep-03 2:39
Jagadeesh VN6-Sep-03 2:39 
GeneralGetting icons associated with file extensions Pin
skaanji4-Sep-03 8:59
skaanji4-Sep-03 8:59 
GeneralRe: Getting icons associated with file extensions Pin
valikac4-Sep-03 9:02
valikac4-Sep-03 9:02 
GeneralRe: Getting icons associated with file extensions Pin
skaanji4-Sep-03 9:39
skaanji4-Sep-03 9:39 
Generalselection in virtual list view ctrl Pin
peterchen4-Sep-03 8:38
peterchen4-Sep-03 8:38 
GeneralRe: selection in virtual list view ctrl Pin
valikac4-Sep-03 9:00
valikac4-Sep-03 9:00 
GeneralRe: selection in virtual list view ctrl Pin
peterchen4-Sep-03 10:18
peterchen4-Sep-03 10:18 
GeneralExtand and access the internat Microsoft Office object structure Pin
gicio4-Sep-03 7:42
gicio4-Sep-03 7:42 
Generalerror using ifstream Pin
act_x4-Sep-03 6:49
act_x4-Sep-03 6:49 
GeneralRe: error using ifstream Pin
David Crow4-Sep-03 7:21
David Crow4-Sep-03 7:21 
GeneralRe: error using ifstream Pin
act_x4-Sep-03 7:34
act_x4-Sep-03 7:34 
GeneralRe: error using ifstream Pin
David Crow4-Sep-03 7:50
David Crow4-Sep-03 7:50 
GeneralC++ Regex Library Pin
afronaut4-Sep-03 5:05
afronaut4-Sep-03 5:05 
GeneralRe: C++ Regex Library Pin
David Crow4-Sep-03 6:11
David Crow4-Sep-03 6:11 

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.