Click here to Skip to main content
16,007,843 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDialogs always on top Pin
4-Sep-01 5:28
suss4-Sep-01 5:28 
GeneralRe: Dialogs always on top Pin
Carlos Antollini4-Sep-01 5:58
Carlos Antollini4-Sep-01 5:58 
GeneralRe: Dialogs always on top Pin
Carlos Antollini4-Sep-01 6:00
Carlos Antollini4-Sep-01 6:00 
GeneralRe: Dialogs always on top Pin
Carlos Antollini4-Sep-01 6:00
Carlos Antollini4-Sep-01 6:00 
GeneralRe: Dialogs always on top Pin
John Uhlenbrock4-Sep-01 6:59
John Uhlenbrock4-Sep-01 6:59 
GeneralNew-b question about dialog boxes Pin
RobJones4-Sep-01 5:16
RobJones4-Sep-01 5:16 
GeneralRe: New-b question about dialog boxes Pin
Christian Graus4-Sep-01 12:32
protectorChristian Graus4-Sep-01 12:32 
GeneralRe: New-b question about dialog boxes Pin
RobJones5-Sep-01 7:32
RobJones5-Sep-01 7:32 
Christian,
Thanks for the help.. I have implemented this code.. it appears to be working but I'm not sure I'm doing this correctly or if I should be doing this differently.. In the main dialog application I use this to open the modeless dialog:

void CBSDeluxeDlg::OnBAdd1()
{
if (!::IsWindow(m_dlgAdd1.GetSafeHwnd()))
m_dlgAdd1.Create(IDD_ADD1, this);

m_dlgAdd1.ShowWindow(SW_SHOW);
}
In the properties of IDD_ADD1 Dialog box I have style "Overlapped" if I use style "child" all the buttons from the main app show through the modeless dialog and I can't use any of the controls of the modeless box.. now to hide the dialog box I use the following code when the OK button is pushed.

void CAdd1Dlg::OnBOk1()
{
CAdd1Dlg::ShowWindow(SW_HIDE);
}

I havent tested to see if the dialog stays active and is just hidden.. I wanted to make sure that the code was correct first..

Thanks for all your help!


Rob Jones
GeneralRe: New-b question about dialog boxes Pin
Christian Graus5-Sep-01 13:34
protectorChristian Graus5-Sep-01 13:34 
GeneralRe: New-b question about dialog boxes Pin
Nemanja Trifunovic5-Sep-01 8:50
Nemanja Trifunovic5-Sep-01 8:50 
GeneralNeed a good tutorial Pin
The PeteMan4-Sep-01 5:00
The PeteMan4-Sep-01 5:00 
GeneralRe: Need a good tutorial Pin
RobJones4-Sep-01 5:19
RobJones4-Sep-01 5:19 
GeneralRe: Need a good tutorial Pin
Hano8-Sep-01 11:44
Hano8-Sep-01 11:44 
GeneralUrgent:: Problem in Changing the style of ComboBox Pin
Dhanush4-Sep-01 4:40
professionalDhanush4-Sep-01 4:40 
QuestionWhy my bitmaps are in 16 colors and not 256 in views??? Pin
LukeV4-Sep-01 4:05
LukeV4-Sep-01 4:05 
QuestionCRichEditCtrl: Why ????????????? Pin
4-Sep-01 4:04
suss4-Sep-01 4:04 
AnswerRe: CRichEditCtrl: Why ????????????? Pin
Carlos Antollini4-Sep-01 4:33
Carlos Antollini4-Sep-01 4:33 
GeneralCreating Plugins for MSIE 4 Pin
sanskypotov4-Sep-01 3:49
sanskypotov4-Sep-01 3:49 
GeneralRe: Creating Plugins for MSIE 4 Pin
Not Active4-Sep-01 13:37
mentorNot Active4-Sep-01 13:37 
GeneralEquivilant of JScript's "split" in C++ Pin
4-Sep-01 3:49
suss4-Sep-01 3:49 
GeneralRe: Equivilant of JScript's Pin
John Connah4-Sep-01 4:36
John Connah4-Sep-01 4:36 
GeneralRe: Equivilant of JScript's Pin
5-Sep-01 11:43
suss5-Sep-01 11:43 
GeneralDoes not ANYONE know how to kill this bug?!?!!?!?! Pin
Tommy H D Svensson4-Sep-01 3:12
Tommy H D Svensson4-Sep-01 3:12 
GeneralRe: Does not ANYONE know how to kill this bug?!?!!?!?! Pin
The_Server4-Sep-01 13:37
The_Server4-Sep-01 13:37 
GeneralRe: Does not ANYONE know how to kill this bug?!?!!?!?! Pin
Tommy H D Svensson5-Sep-01 2:46
Tommy H D Svensson5-Sep-01 2:46 

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.