Click here to Skip to main content
15,912,205 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: spawnl Pin
2249178-Feb-05 19:12
2249178-Feb-05 19:12 
GeneralShould Be Simple Disabling "Return" Pin
JKallen8-Feb-05 13:47
JKallen8-Feb-05 13:47 
GeneralRe: Should Be Simple Disabling "Return" Pin
Michael Dunn8-Feb-05 14:02
sitebuilderMichael Dunn8-Feb-05 14:02 
GeneralRe: Should Be Simple Disabling "Return" Pin
JKallen8-Feb-05 14:21
JKallen8-Feb-05 14:21 
GeneralRe: Should Be Simple Disabling "Return" Pin
Nish Nishant8-Feb-05 19:14
sitebuilderNish Nishant8-Feb-05 19:14 
GeneralReading Excel files w/ CDatabase Pin
shultas8-Feb-05 13:00
shultas8-Feb-05 13:00 
GeneralRe: Reading Excel files w/ CDatabase Pin
David Crow9-Feb-05 3:36
David Crow9-Feb-05 3:36 
Questionhow to activate a window from a pull-down list Pin
elephantstar8-Feb-05 12:59
elephantstar8-Feb-05 12:59 
I have a pull-down list that opens up each child window using the CMultiDocTemplate::OpenDocumentFile() function. Some windows become hidden when another is active so I'd like to bring the window to the top when the user selects it from the pull-down list. Here's some of the code I have:

void Fruits::OnSelchange()
{
switch (m_fruits.GetCurSel())
{
case 0 : //apple

if (!pAppleTemplate)
{
pAppleTemplatee = new CMultiDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CMPSDoc),
RUNTIME_CLASS(CMDIChildWnd),
RUNTIME_CLASS(CApple));
pAppleTemplate->OpenDocumentFile(NULL);
}
else //if already open, make active
<-----code to activate window----->

break;

case 1 :
if (!pBananaTemplate)
{
pBananaTemplate= new CMultiDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CMPSDoc),
RUNTIME_CLASS(CMDIChildWnd),
RUNTIME_CLASS(CBanana));
pBananaTemplate->OpenDocumentFile(NULL);
}
else
<----code to activate window---->
break;
}

Any help would be much appreciated. Thanks!
QuestionHow do I set a field that accepts an OLE document (Excel, Word, etc.) in an access table? Pin
nonothing8-Feb-05 11:56
nonothing8-Feb-05 11:56 
GeneralCompile/Link Work, Code Doesn't Pin
KenWill8-Feb-05 11:45
KenWill8-Feb-05 11:45 
GeneralRe: Compile/Link Work, Code Doesn't Pin
marinme8-Feb-05 16:31
marinme8-Feb-05 16:31 
GeneralRe: Compile/Link Work, Code Doesn't Pin
KenWill9-Feb-05 3:36
KenWill9-Feb-05 3:36 
GeneralScan Active IP Pin
manofoblivion8-Feb-05 11:19
manofoblivion8-Feb-05 11:19 
GeneralRe: Scan Active IP Pin
2249178-Feb-05 17:19
2249178-Feb-05 17:19 
GeneralRe: messages of CPropertySheet Pin
ThatsAlok8-Feb-05 17:28
ThatsAlok8-Feb-05 17:28 
GeneralRe: messages of CPropertySheet Pin
manofoblivion9-Feb-05 11:35
manofoblivion9-Feb-05 11:35 
GeneralMicrosoft FlexGrid Pin
JesuZ-878-Feb-05 10:49
JesuZ-878-Feb-05 10:49 
GeneralStraight C, ANSI C, UNIX C, ect Pin
Timothy Grabrian8-Feb-05 7:46
professionalTimothy Grabrian8-Feb-05 7:46 
GeneralRe: Straight C, ANSI C, UNIX C, ect Pin
David Crow8-Feb-05 10:31
David Crow8-Feb-05 10:31 
GeneralRe: Straight C, ANSI C, UNIX C, ect Pin
markkuk8-Feb-05 13:01
markkuk8-Feb-05 13:01 
GeneralFormating string for write in excel file Pin
El'Cachubrey8-Feb-05 5:29
El'Cachubrey8-Feb-05 5:29 
GeneralRe: Formating string for write in excel file Pin
David Crow8-Feb-05 7:50
David Crow8-Feb-05 7:50 
GeneralRe: Formating string for write in excel file Pin
El'Cachubrey8-Feb-05 19:47
El'Cachubrey8-Feb-05 19:47 
GeneralRe: Formating string for write in excel file Pin
David Crow9-Feb-05 2:15
David Crow9-Feb-05 2:15 
GeneralLooking for a smart grid Pin
Anonymous8-Feb-05 5:25
Anonymous8-Feb-05 5:25 

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.