Click here to Skip to main content
15,925,181 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help on Designing Tictactoe in VC++ Pin
Andrew Peace18-Feb-02 13:09
Andrew Peace18-Feb-02 13:09 
GeneralRe: Help on Designing Tictactoe in VC++ Pin
alex.barylski18-Feb-02 14:49
alex.barylski18-Feb-02 14:49 
GeneralRe: Help on Designing Tictactoe in VC++ Pin
John Cruz19-Feb-02 1:19
John Cruz19-Feb-02 1:19 
GeneralRe: Help on Designing Tictactoe in VC++ Pin
Member 139425924-Dec-04 20:17
Member 139425924-Dec-04 20:17 
GeneralMDI - How do I set or activate a view Pin
RobJones16-Feb-02 14:29
RobJones16-Feb-02 14:29 
GeneralRe: MDI - How do I set or activate a view Pin
Derek Waters17-Feb-02 11:35
Derek Waters17-Feb-02 11:35 
GeneralRe: MDI - How do I set or activate a view Pin
RobJones17-Feb-02 12:22
RobJones17-Feb-02 12:22 
GeneralRe: MDI - How do I set or activate a view Pin
Derek Waters17-Feb-02 12:31
Derek Waters17-Feb-02 12:31 
Yeah, sorry Rob, basically you need to get a pointer to the DocTemplate for the HtmlView document type. This is like the function I sent you the other day for creating documents at startup:

CDocTemplate *GetTheHtmlDocTemplate()
{
	CWinApp			*vptrTheApp = AfxGetApp();
	POSITION		vtPos;
	CDocTemplate	        *vptTemplate;
	CString			vcstrTitle;

	vtPos = vptrTheApp->GetFirstDocTemplatePosition();
	while (vtPos != NULL)
	{
		vptTemplate = vptrTheApp->GetNextDocTemplate(vtPos);
		if (vptTemplate->GetDocString(vcstrTitle, CDocTemplate::fileNewName))
		{
                        // Put the fileNewName of your Html doc/view here...
			if (vcstrTitle.CompareNoCase(_T("MyHtmlDoc")) == 0)
			{
                              return vptTemplate;
                        }
                }
        }
        return NULL;
}




------------------------
Derek Waters
derek@lj-oz.com
GeneralRe: MDI - How do I set or activate a view Pin
RobJones17-Feb-02 12:38
RobJones17-Feb-02 12:38 
Questionhow to place files in win32 console application project? Pin
padgyx16-Feb-02 13:01
padgyx16-Feb-02 13:01 
AnswerRe: how to place files in win32 console application project? Pin
alex.barylski16-Feb-02 13:36
alex.barylski16-Feb-02 13:36 
QuestionDoubleClick in CComboBox with dropdown-style? Pin
Rybeck16-Feb-02 11:29
Rybeck16-Feb-02 11:29 
AnswerRe: DoubleClick in CComboBox with dropdown-style? Pin
Rybeck17-Feb-02 5:10
Rybeck17-Feb-02 5:10 
GeneralMFC control that works like VB's Image Control Pin
16-Feb-02 10:20
suss16-Feb-02 10:20 
GeneralRe: MFC control that works like VB's Image Control Pin
alex.barylski16-Feb-02 11:30
alex.barylski16-Feb-02 11:30 
GeneralRe: MFC control that works like VB's Image Control Pin
Shog916-Feb-02 14:22
sitebuilderShog916-Feb-02 14:22 
GeneralCFontDialog Pin
16-Feb-02 8:24
suss16-Feb-02 8:24 
GeneralRe: CFontDialog Pin
Joaquín M López Muñoz16-Feb-02 8:39
Joaquín M López Muñoz16-Feb-02 8:39 
GeneralRe: CFontDialog Pin
16-Feb-02 9:10
suss16-Feb-02 9:10 
GeneralRe: CFontDialog Pin
Joaquín M López Muñoz16-Feb-02 9:28
Joaquín M López Muñoz16-Feb-02 9:28 
GeneralSuccess Report Pin
16-Feb-02 9:48
suss16-Feb-02 9:48 
Generalcreating splitter wnd - per buttonclick Pin
16-Feb-02 8:23
suss16-Feb-02 8:23 
GeneralRe: creating splitter wnd - per buttonclick Pin
alex.barylski16-Feb-02 11:32
alex.barylski16-Feb-02 11:32 
GeneralProgram entry point - again Pin
Don Miguel16-Feb-02 8:03
Don Miguel16-Feb-02 8:03 
GeneralRe: Program entry point - again Pin
Joaquín M López Muñoz16-Feb-02 8:27
Joaquín M López Muñoz16-Feb-02 8:27 

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.