Click here to Skip to main content
15,917,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tab Order Pin
Iain Clarke, Warrior Programmer17-Jul-03 4:25
Iain Clarke, Warrior Programmer17-Jul-03 4:25 
GeneralVS.NET and Win XP... Pin
Anonymous17-Jul-03 3:44
Anonymous17-Jul-03 3:44 
GeneralRe: VS.NET and Win XP... Pin
valikac17-Jul-03 4:31
valikac17-Jul-03 4:31 
GeneralRe: VS.NET and Win XP... Pin
pranavamhari17-Jul-03 6:28
pranavamhari17-Jul-03 6:28 
GeneralRe: VS.NET and Win XP... Pin
jspano17-Jul-03 7:34
jspano17-Jul-03 7:34 
GeneralRe: VS.NET and Win XP... Pin
Mike Nordell17-Jul-03 9:24
Mike Nordell17-Jul-03 9:24 
GeneralRe: VS.NET and Win XP... Pin
jspano18-Jul-03 4:51
jspano18-Jul-03 4:51 
GeneralModeless Windows Pin
Jay Hova17-Jul-03 3:44
Jay Hova17-Jul-03 3:44 
Hi,

I still can not figure this out, was wondering if anyone had suggestions.

I have a modeless window and a modal window, each having their own window option that when selected bring up the corresonding window. The modal window has radio buttons on it, so when a specific reaio button is selected and ok is entered, it will display the modless window.

When I select the menu to bring up the modeless window it works fine, only opens one window or sets focus to it if it has not been created. When I select the modal window and check the appropriate radio it will display the modeless window regardless if it is created already. It will just continue to duplicate the modeless window.

Can someone help me out so that it will set focus on the open window and not diplicate it.
currently I am using this code in the OnOK method.
if (!m_pCommandOpt)// == NULL)
{
     m_pCommandOpt = new CMainCommand(this);

     if (m_pCommandOpt->Create(IDD_MAIN_TAB_DIALOG) == TRUE)
     {
           GetDlgItem(IDOK)->EnableWindow(FALSE);
	   m_pCommandOpt->ShowWindow(SW_SHOW);
     }
}
      else
	m_pCommandOpt->SetActiveWindow();>



THANKS in advance.
GeneralRe: Modeless Windows Pin
G. Steudtel17-Jul-03 5:07
G. Steudtel17-Jul-03 5:07 
QuestionHow to Calculate Net Connection Speed??????? Pin
HemantR...17-Jul-03 3:08
HemantR...17-Jul-03 3:08 
AnswerRe: How to Calculate Net Connection Speed??????? Pin
valikac17-Jul-03 4:33
valikac17-Jul-03 4:33 
GeneralRe: How to Calculate Net Connection Speed??????? Pin
HemantR...17-Jul-03 5:00
HemantR...17-Jul-03 5:00 
Generalreplacing a character in a string Pin
si_6917-Jul-03 2:41
si_6917-Jul-03 2:41 
GeneralRe: replacing a character in a string Pin
Ian Darling17-Jul-03 2:46
Ian Darling17-Jul-03 2:46 
GeneralRe: replacing a character in a string Pin
Ryan Binns17-Jul-03 3:05
Ryan Binns17-Jul-03 3:05 
GeneralHelp! How VC++ program running on multiple PCs Pin
aurorahe17-Jul-03 2:40
aurorahe17-Jul-03 2:40 
GeneralRe: Help! How VC++ program running on multiple PCs Pin
Ian Darling17-Jul-03 2:51
Ian Darling17-Jul-03 2:51 
GeneralRe: Help! How VC++ program running on multiple PCs Pin
aurorahe17-Jul-03 4:22
aurorahe17-Jul-03 4:22 
GeneralRe: Help! How VC++ program running on multiple PCs Pin
Neville Franks17-Jul-03 11:56
Neville Franks17-Jul-03 11:56 
GeneralRe: error including C files in VC++ 6 project Pin
Iain Clarke, Warrior Programmer17-Jul-03 2:58
Iain Clarke, Warrior Programmer17-Jul-03 2:58 
GeneralRe: error including C files in VC++ 6 project Pin
Iain Clarke, Warrior Programmer17-Jul-03 4:18
Iain Clarke, Warrior Programmer17-Jul-03 4:18 
Generaldesparate help needed in making a param array Pin
safee ullah17-Jul-03 2:17
safee ullah17-Jul-03 2:17 
GeneralRe: desparate help needed in making a param array Pin
Ryan Binns17-Jul-03 3:10
Ryan Binns17-Jul-03 3:10 
GeneralRe: desparate help needed in making a param array Pin
Anonymous17-Jul-03 3:59
Anonymous17-Jul-03 3:59 
GeneralRe: desparate help needed in making a param array Pin
Ryan Binns17-Jul-03 4:03
Ryan Binns17-Jul-03 4:03 

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.