Click here to Skip to main content
15,899,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSDI with an MDI style close button? Pin
kumaichi6-Jul-00 13:50
kumaichi6-Jul-00 13:50 
GeneralChanging the background color of a read-only CEdit Pin
Joan Murt6-Jul-00 10:11
sussJoan Murt6-Jul-00 10:11 
GeneralRe: Changing the background color of a read-only CEdit Pin
Sam Hobbs7-Jul-00 6:07
Sam Hobbs7-Jul-00 6:07 
GeneralRe: Changing the background color of a read-only CEdit Pin
Philip Nicoletti7-Jul-00 6:46
Philip Nicoletti7-Jul-00 6:46 
GeneralThank you for your help, but there is still a little problem Pin
Joan Murt11-Jul-00 9:27
sussJoan Murt11-Jul-00 9:27 
GeneralRe: Changing the background color of a read-only CEdit Pin
Joan Murt12-Jul-00 8:02
sussJoan Murt12-Jul-00 8:02 
GeneralCMonthCalCtrl -> Need help on getting Date... Pin
MaverickTC6-Jul-00 9:55
MaverickTC6-Jul-00 9:55 
GeneralGet active view from modeless dialog Pin
Christoph Rupp6-Jul-00 8:33
sussChristoph Rupp6-Jul-00 8:33 
Hi,

how can i get the active view (or the active document) from a non-modal dialog?
I have tried

CFrameWnd *pFrame=GetParentFrame();
CDocument *pDoc=pFrame->GetActiveDocument();

and

CView *pView=pFrame->GetActiveView();

but both, GetActiveDocument() and GetActiveView() return NULL although there was a document (and therefore a few, too) created.
I'm working with MDI docs/views.

Thanks for your help!
Chris.
GeneralRe: Get active view from modeless dialog Pin
Mike Dunn6-Jul-00 8:50
Mike Dunn6-Jul-00 8:50 
GeneralRe: Get active view from modeless dialog Pin
Christoph Rupp6-Jul-00 21:45
sussChristoph Rupp6-Jul-00 21:45 
GeneralRe: Get active view from modeless dialog Pin
Paolo Messina6-Jul-00 23:07
professionalPaolo Messina6-Jul-00 23:07 
GeneralWriting VxDs in VC Pin
Sajid Siraj6-Jul-00 7:25
Sajid Siraj6-Jul-00 7:25 
QuestionHow to scroll to a row in a CListCtrl Pin
Tony10-Jul-00 3:43
Tony10-Jul-00 3:43 
AnswerRe: How to scroll to a row in a CListCtrl Pin
Mike Dunn10-Jul-00 6:26
Mike Dunn10-Jul-00 6:26 
Generalneed help with PJNaughter's CSerialPort class Pin
acidmarco9-Jul-00 23:13
acidmarco9-Jul-00 23:13 
GeneralRe: need help with PJNaughter's CSerialPort class Pin
Remus Lazar10-Jul-00 22:23
Remus Lazar10-Jul-00 22:23 
GeneralWindows Address Book Pin
Cirmu Nicolae9-Jul-00 22:53
sussCirmu Nicolae9-Jul-00 22:53 
GeneralFederated Databases vs. Distributed Access Pin
Member 11569-Jul-00 11:50
Member 11569-Jul-00 11:50 
GeneralFederated Databases vs. Distributed Access Pin
Member 11569-Jul-00 11:49
Member 11569-Jul-00 11:49 
Questioncan any body help me Pin
David9-Jul-00 10:11
David9-Jul-00 10:11 
AnswerRe: can any body help me Pin
phoenix11-Jul-00 0:17
phoenix11-Jul-00 0:17 
GeneralWith external resourcefile dialog with Custom Control not loaded Pin
M.Vo.9-Jul-00 3:24
M.Vo.9-Jul-00 3:24 
GeneralRe: With external resourcefile dialog with Custom Control not loaded Pin
Paolo Messina9-Jul-00 7:13
professionalPaolo Messina9-Jul-00 7:13 
GeneralRe: With external resourcefile dialog with Custom Control not loaded Pin
M.Vo.9-Jul-00 10:12
M.Vo.9-Jul-00 10:12 
GeneralRe: With external resourcefile dialog with Custom Control not loaded Pin
Paolo Messina9-Jul-00 11:47
professionalPaolo Messina9-Jul-00 11:47 

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.