Click here to Skip to main content
15,920,576 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUsing matlab symbolic equation in Visual Studio 6.0 Pin
Member 69647712-Nov-03 17:46
Member 69647712-Nov-03 17:46 
QuestionToolTip not show in my DLL ??? Pin
ccnuxjg12-Nov-03 17:12
ccnuxjg12-Nov-03 17:12 
GeneralSite Suggestion Pin
LOSTTWARE.com12-Nov-03 16:10
LOSTTWARE.com12-Nov-03 16:10 
GeneralRe: Site Suggestion Pin
Mike Dimmick13-Nov-03 3:41
Mike Dimmick13-Nov-03 3:41 
GeneralMFC VC++ 6.0 Pin
LOSTTWARE.com12-Nov-03 16:08
LOSTTWARE.com12-Nov-03 16:08 
GeneralNEED HELP BAD Pin
LOSTTWARE.com12-Nov-03 20:33
LOSTTWARE.com12-Nov-03 20:33 
GeneralRe: NEED HELP BAD Pin
Antti Keskinen13-Nov-03 0:59
Antti Keskinen13-Nov-03 0:59 
GeneralRe: NEED HELP BAD Pin
Roger Allen13-Nov-03 1:07
Roger Allen13-Nov-03 1:07 
If I understand correctly you have many CDocTemplate objects registered in your application, and you want to open a specific document type?

You can do that by getting a pointer to the correct CDocTemplate object and calling OpenDocumentFile() on it. Pass NULL to open an empty document, or pass a filename if you need to open an existing file.

If you need to do this from an existing open document and need to open the same type of document, you can call GetDocTemplate(0 to get the CDocTemplate pointer you need. If not, then you need to acquire a pointer to it through the CWinApp:m_pDocManager pointer. You can iterate the list of CDocTemplate objects using GetFirstDocTemplatePosition() and GetNextDocTemplate(). When you find the right one (if you know which one it is) you can proceed from there.

This article of mine may also be of help:

Doc/View stuff[^]

Roger Allen - Sonork 100.10016
If your dead and reading this, then you have no life!
GeneralProblem with RTL Mirroring CFileDialog-derived dialogs in Windows 98 Pin
Eriol4112-Nov-03 15:53
Eriol4112-Nov-03 15:53 
GeneralHelp with MS Data Grid and Data Control Pin
Member 65260612-Nov-03 15:19
Member 65260612-Nov-03 15:19 
GeneralScreensaver child process croaks... Pin
ToddTTT12-Nov-03 14:42
ToddTTT12-Nov-03 14:42 
GeneralCreating a dialog from a COM dll Pin
Matt Gates12-Nov-03 14:31
Matt Gates12-Nov-03 14:31 
GeneralRe: Creating a dialog from a COM dll Pin
Prakash Nadar13-Nov-03 0:19
Prakash Nadar13-Nov-03 0:19 
QuestionHow can I convert the JPEG files to thumbnails? Pin
ElizabethC12-Nov-03 12:57
ElizabethC12-Nov-03 12:57 
AnswerRe: How can I convert the JPEG files to thumbnails? Pin
Andrew Walker12-Nov-03 18:40
Andrew Walker12-Nov-03 18:40 
GeneralRe: How can I convert the JPEG files to thumbnails? Pin
ElizabethC13-Nov-03 6:09
ElizabethC13-Nov-03 6:09 
GeneralRe: How can I convert the JPEG files to thumbnails? Pin
Prakash Nadar13-Nov-03 16:08
Prakash Nadar13-Nov-03 16:08 
GeneralRe: How can I convert the JPEG files to thumbnails? Pin
ElizabethC17-Nov-03 5:57
ElizabethC17-Nov-03 5:57 
GeneralSendInput / keyb_event in a keyboard hook Pin
OddArne12-Nov-03 12:38
OddArne12-Nov-03 12:38 
Generalbmp save file question gdi+ Pin
ptharso12-Nov-03 11:05
ptharso12-Nov-03 11:05 
GeneralReceive vs ReceiveFrom... Pin
NewHSKid12-Nov-03 9:53
NewHSKid12-Nov-03 9:53 
GeneralRe: Receive vs ReceiveFrom... Pin
Alexander M.,13-Nov-03 8:11
Alexander M.,13-Nov-03 8:11 
GeneralRe: Receive vs ReceiveFrom... Pin
Steve S13-Nov-03 22:11
Steve S13-Nov-03 22:11 
GeneralRe: Receive vs ReceiveFrom... Pin
Alexander M.,13-Nov-03 22:56
Alexander M.,13-Nov-03 22:56 
GeneralRe: Receive vs ReceiveFrom... Pin
NewHSKid14-Nov-03 1:02
NewHSKid14-Nov-03 1:02 

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.