Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to create hidden Dialog Window ? Pin
Prakash Nadar25-Feb-04 3:32
Prakash Nadar25-Feb-04 3:32 
GeneralRe: How to create hidden Dialog Window ? Pin
David Crow25-Feb-04 3:37
David Crow25-Feb-04 3:37 
GeneralRe: How to create hidden Dialog Window ? Pin
Prakash Nadar25-Feb-04 4:13
Prakash Nadar25-Feb-04 4:13 
GeneralRe: How to create hidden Dialog Window ? Pin
vgrigor25-Feb-04 4:16
vgrigor25-Feb-04 4:16 
GeneralRe: How to create hidden Dialog Window ? Pin
vgrigor25-Feb-04 3:33
vgrigor25-Feb-04 3:33 
AnswerRe: How to create hidden Dialog Window ? Pin
Monty225-Feb-04 2:58
Monty225-Feb-04 2:58 
AnswerRe: How to create hidden Dialog Window ? Pin
vgrigor25-Feb-04 4:22
vgrigor25-Feb-04 4:22 
AnswerRe: How to create hidden Dialog Window ? Pin
racenjason31-May-05 11:52
professionalracenjason31-May-05 11:52 
You can replace all of your code with a single overriden function and two lines of code

void CMyDlg::OnWindowPosChanging(WINDOWPOS* lpwndpos)
{
// This is where it all happens
if(!m_bShowWindow)
lpwndpos->flags &= ~SWP_SHOWWINDOW;

CDialog::OnWindowPosChanging(lpwndpos);
}

Simply turn off m_bShowWindow (which obviously needs to be defined and switched) to show the window. This code prevents the dialog from ever being seen in the first place. Unfortunately Win98, Win95 still seem to briefly flicker before disappearing...but who is running those OS's anyway Laugh | :laugh:

Hope this information is not too late for others searching the message boards...
QuestionUnderline hot and one-click activate for treectrls? Pin
Dominik Reichl25-Feb-04 1:56
Dominik Reichl25-Feb-04 1:56 
AnswerRe: Underline hot and one-click activate for treectrls? Pin
Monty225-Feb-04 2:02
Monty225-Feb-04 2:02 
GeneralRe: Underline hot and one-click activate for treectrls? Pin
Dominik Reichl25-Feb-04 2:33
Dominik Reichl25-Feb-04 2:33 
GeneralMusic Application Pin
mavgoose25-Feb-04 1:46
mavgoose25-Feb-04 1:46 
GeneralRe: Music Application Pin
Anonymous25-Feb-04 2:04
Anonymous25-Feb-04 2:04 
GeneralRe: Music Application Pin
Maximilien25-Feb-04 2:46
Maximilien25-Feb-04 2:46 
GeneralRe: Music Application Pin
rw10425-Feb-04 2:59
rw10425-Feb-04 2:59 
GeneralRe: Music Application Pin
rw10425-Feb-04 3:19
rw10425-Feb-04 3:19 
GeneralRe: Music Application Pin
mavgoose3-Mar-04 2:02
mavgoose3-Mar-04 2:02 
GeneralMFC ‘Visio’ style GUI Pin
Murphster25-Feb-04 1:02
Murphster25-Feb-04 1:02 
GeneralRe: MFC ‘Visio’ style GUI Pin
roel_25-Feb-04 1:55
roel_25-Feb-04 1:55 
GeneralRe: MFC ‘Visio’ style GUI Pin
Murphster25-Feb-04 2:09
Murphster25-Feb-04 2:09 
GeneralRe: MFC ‘Visio’ style GUI Pin
roel_25-Feb-04 3:24
roel_25-Feb-04 3:24 
GeneralError while using fopen Pin
torrud25-Feb-04 1:01
torrud25-Feb-04 1:01 
GeneralRe: Error while using fopen Pin
toxcct25-Feb-04 2:27
toxcct25-Feb-04 2:27 
GeneralRe: Error while using fopen Pin
torrud25-Feb-04 2:36
torrud25-Feb-04 2:36 
GeneralRe: Error while using fopen Pin
toxcct25-Feb-04 2:49
toxcct25-Feb-04 2: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.