Click here to Skip to main content
15,884,353 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnGetMinMaxInfo Pin
Ernest Laurentin7-Mar-03 5:26
Ernest Laurentin7-Mar-03 5:26 
GeneralRe: OnGetMinMaxInfo Pin
ns7-Mar-03 5:30
ns7-Mar-03 5:30 
GeneralRe: OnGetMinMaxInfo Pin
G. Steudtel7-Mar-03 5:51
G. Steudtel7-Mar-03 5:51 
GeneralTHanks!!!!Great info! Pin
ns11-Mar-03 1:51
ns11-Mar-03 1:51 
GeneralContextMenu with CTabCtrl Pin
AnTri7-Mar-03 4:11
AnTri7-Mar-03 4:11 
GeneralRe: ContextMenu with CTabCtrl Pin
Ernest Laurentin7-Mar-03 5:20
Ernest Laurentin7-Mar-03 5:20 
GeneralRe: ContextMenu with CTabCtrl Pin
Brian Shifrin7-Mar-03 6:27
Brian Shifrin7-Mar-03 6:27 
Generalreactivate the view in an SDI app Pin
luedi7-Mar-03 4:06
luedi7-Mar-03 4:06 
Hi,

how can I reactivate the one and only view of the one and document in a SDI app?

A little explanation why I must do this: I have a standard SDI application and added a ControlBar with an embedded CEditView latetly. The problem is, that this EditView will activate itself within the MainFrame if you click on it. I need the possibility to reactive the View of the main document programatically if I want to do some view dependant processing, for example closing the app. Closing the app e.g. will query the active view wether the underlying document has changed. If I have the wrong view active (e.g. the CEditView), this message is send to the wrong document.

As a second example: The CEditView is a LogConsole for my application. If I have activated the CEditView, e.g. with a mouseclick I want to reactivate the main SDI view with the ESC key like the Output Control bar in the Visual Studio. But how do I find the document to send the Acitvation command to?

In a MDI application there is the MDIGetActive() window, i think, but there seems to be no such window handle in a SDI application.

I thought about hooking somewhere into the InitialUpdateFrame or OnCreateClient procedure, and safe the created view from there. But I'm sure wether this is safe, also when I have opened different documents.

Thanks for any ideas.
Dirk
GeneralRe: reactivate the view in an SDI app Pin
Brian Shifrin7-Mar-03 6:38
Brian Shifrin7-Mar-03 6:38 
GeneralRe: reactivate the view in an SDI app Pin
luedi7-Mar-03 12:08
luedi7-Mar-03 12:08 
GeneralCFile Write Pin
ns7-Mar-03 3:28
ns7-Mar-03 3:28 
GeneralRe: CFile Write Pin
Chris Losinger7-Mar-03 3:39
professionalChris Losinger7-Mar-03 3:39 
GeneralThanks and another ques about OnSize Pin
ns7-Mar-03 3:45
ns7-Mar-03 3:45 
GeneralRe: Thanks and another ques about OnSize Pin
ns7-Mar-03 4:16
ns7-Mar-03 4:16 
GeneralEmbedding Internet Explorer (Win32, no MFC) Pin
Dominik Reichl7-Mar-03 2:43
Dominik Reichl7-Mar-03 2:43 
GeneralRe: Embedding Internet Explorer (Win32, no MFC) Pin
Stefan Pedersen7-Mar-03 3:40
Stefan Pedersen7-Mar-03 3:40 
GeneralCreating memory bitmap Pin
Anonymous7-Mar-03 2:13
Anonymous7-Mar-03 2:13 
GeneralRe: Creating memory bitmap Pin
Joel Lucsy7-Mar-03 2:36
Joel Lucsy7-Mar-03 2:36 
GeneralRe: Creating memory bitmap Pin
djordj7-Mar-03 2:40
djordj7-Mar-03 2:40 
GeneralRe: Creating memory bitmap Pin
Scott H. Settlemier7-Mar-03 4:09
Scott H. Settlemier7-Mar-03 4:09 
GeneralRe: Creating memory bitmap Pin
djordj7-Mar-03 4:14
djordj7-Mar-03 4:14 
GeneralRe: Creating memory bitmap Pin
Scott H. Settlemier7-Mar-03 4:42
Scott H. Settlemier7-Mar-03 4:42 
GeneralInstalling VC7.0 Pin
Dave_7-Mar-03 1:52
Dave_7-Mar-03 1:52 
GeneralRe: Installing VC7.0 Pin
RobJones7-Mar-03 8:13
RobJones7-Mar-03 8:13 
GeneralRe: Installing VC7.0 Pin
Dave_7-Mar-03 8:19
Dave_7-Mar-03 8:19 

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.