docview

MFC: Accessing Views from Mainframe

I am trying to access a view inside a splitter from my mainframe. At the moment I have this: CWnd* pView = m_wndSplitter.GetPane( 0, 0 ); However this gets me a pointer to the CWnd not the CMyViewClass object. Can anyone explain to me what I need to do in order to access the view object itself so I can access member functions in the f...

How do I use the wx.lib.docview package?

I'm currently working on a simple wxPython app that's essentially document based. So far I've been manually implementing the usual open/save/undo/redo etc etc stuff. It occurred to me that wxPython must have something to help me out and after a bit of searching revealed the docview package. At this point though I'm just not quite sure...

Help to restructure my Doc/View more correctly

Edited by OP. My program is in need of a lot of cleanup and restructuring. In another post I asked about leaving the MFC DocView framework and going to the WinProc & Message Loop way (what is that called for short?). Well at present I am thinking that I should clean up what I have in Doc View and perhaps later convert to non-MFC it th...

UpdateAllViews() from within a worker thread?

I have a worker thread in a class that is owned by a ChildView. (I intend to move this to the Doc eventually.) When the worker thread completes a task I want all the views to be updated. How can I make a call to tell the Doc to issue an UpdateAllViews()? Or is there a better approach? Thank you. Added by OP: I am looking for a simple...

docview in emacs: refreshing dvi content automatically

Hello: Is there a way Emacs can automatically refresh the buffer showing the dvi right after my LaTeX compilation? Thank you. ...

rotate document in emacs doc-view-mode

Hello, I have a document displayed in a doc-view buffer. However, the document is rotated 90 degrees left. Can I rotate a doc in emacs doc-view? Thanks ...

Paste or Drop, copy data and release source?

I have an MFC DocView SDI App that receives data from either the clipboard or drag and drop. The data is in either CF_HDROP or CF_TEXT format. I have a COleDropTarget derived CMyDropTarget member m_dropTarget of my CMainFrame class. I have two member functions of CMyDropTarget; OnDrop(...) and OnPaste() which each call another member fun...

After Navigate2 Method returns S_OK Stuck at READYSTATE of READYSTATE_LOADING

I am working on a MFC Document View architecture application which has multiple documents and views and a tabbed window interface. I have been tasked with making an automatic switch to another tab on the press of the OK button in one of the other tabs. When the other tab is clicked on it uses a C++ wrapper over IWebBrowser2 to navigate...

How to scroll down on pages in doc-view mode in Emacs?

I have recently started using doc-view in Emacs, but I am having quite a few problems with it. The main one is that I can't scroll down on pages. I can see the next or previous page using "n" or "p", but the commands to scroll up and down a page, which are supposedly SPACE and DEL, do not work. Well, to be fair, DEL works, but it goes to...