Click here to Skip to main content
15,909,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: about Linux Pin
Jason Hihn20-Nov-01 5:30
Jason Hihn20-Nov-01 5:30 
GeneralRe: about Linux Pin
markkuk20-Nov-01 2:44
markkuk20-Nov-01 2:44 
GeneralRe: about Linux Pin
Jason Hihn20-Nov-01 5:50
Jason Hihn20-Nov-01 5:50 
GeneralRe: about Linux Pin
Maer72720-Nov-01 19:59
Maer72720-Nov-01 19:59 
QuestionHow to register a control Pin
20-Nov-01 1:34
suss20-Nov-01 1:34 
QuestionMDI - Is there an other way ?? Pin
Rene D19-Nov-01 23:35
Rene D19-Nov-01 23:35 
AnswerRe: MDI - Is there an other way ?? Pin
Rassman20-Nov-01 2:13
Rassman20-Nov-01 2:13 
AnswerRe: MDI - Is there an other way ?? Pin
Roger Allen20-Nov-01 2:27
Roger Allen20-Nov-01 2:27 
When you create your doc templates, put the pointers into an array:

m_pDocTemplate[0] = new CMultiDocTemplate(        
m_pDocTemplate[1] = new CMultiDocTemplate(        
m_pDocTemplate[2] = new CMultiDocTemplate(
... etc


Then for you ID_MENU_001..ID_MENU_100 id's you need to map a command range
ON_COMMAND_RANGE(ID_MENU_001, ID_MENU_100, OnNewDocument)

void CYourApp::OnNewDocument(UINT nID)
{
m_pDocTemplate[nID-ID_MENU_001]->OpenDocumentFile(NULL, TRUE) ;
}


This should then open the right document type. Your ID_MENU_001...ID_MENU_100 id's need to be numbered consecutively for this to work.



Roger Allen
Sonork 100.10016
GeneralMoving Child Windows Pin
19-Nov-01 22:54
suss19-Nov-01 22:54 
GeneralRe: Moving Child Windows Pin
19-Nov-01 23:17
suss19-Nov-01 23:17 
GeneralAnimation in VC Pin
19-Nov-01 22:37
suss19-Nov-01 22:37 
GeneralRe: Animation in VC Pin
Rui Lopes20-Nov-01 7:05
Rui Lopes20-Nov-01 7:05 
GeneralScrolling A Device Context Bigger Than Screen Pin
AJ12319-Nov-01 22:03
AJ12319-Nov-01 22:03 
GeneralRe: Scrolling A Device Context Bigger Than Screen Pin
Simon Walton20-Nov-01 7:28
Simon Walton20-Nov-01 7:28 
GeneralUpgrade from MS C V7.0 to VC++ 6.0 Pin
Jerome Conus19-Nov-01 21:53
Jerome Conus19-Nov-01 21:53 
GeneralRe: Upgrade from MS C V7.0 to VC++ 6.0 Pin
Michael P Butler19-Nov-01 22:04
Michael P Butler19-Nov-01 22:04 
GeneralRe: Upgrade from MS C V7.0 to VC++ 6.0 Pin
Jerome Conus19-Nov-01 22:14
Jerome Conus19-Nov-01 22:14 
GeneralRe: Upgrade from MS C V7.0 to VC++ 6.0 Pin
Claudius Mokler19-Nov-01 22:46
Claudius Mokler19-Nov-01 22:46 
GeneralRe: Upgrade from MS C V7.0 to VC++ 6.0 Pin
Rassman20-Nov-01 3:08
Rassman20-Nov-01 3:08 
GeneralRe: Upgrade from MS C V7.0 to VC++ 6.0 Pin
Jerome Conus20-Nov-01 3:30
Jerome Conus20-Nov-01 3:30 
GeneralRe: Upgrade from MS C V7.0 to VC++ 6.0 Pin
20-Nov-01 4:06
suss20-Nov-01 4:06 
GeneralChild Dialog Box Pin
mvworld19-Nov-01 21:45
mvworld19-Nov-01 21:45 
GeneralRe: Child Dialog Box Pin
Christian Graus20-Nov-01 10:22
protectorChristian Graus20-Nov-01 10:22 
GeneralProblems using MFC dll's Pin
Nevidimka19-Nov-01 20:26
Nevidimka19-Nov-01 20:26 
GeneralRe: Problems using MFC dll's Pin
Michael Dunn19-Nov-01 20:49
sitebuilderMichael Dunn19-Nov-01 20:49 

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.