Click here to Skip to main content
15,897,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Return value of a MFC Dialog Box Applicatin.. Pin
CPallini11-Aug-09 2:54
mveCPallini11-Aug-09 2:54 
AnswerRe: Return value of a MFC Dialog Box Applicatin.. Pin
Maximilien11-Aug-09 2:59
Maximilien11-Aug-09 2:59 
GeneralRe: Return value of a MFC Dialog Box Applicatin.. Pin
CPallini11-Aug-09 3:10
mveCPallini11-Aug-09 3:10 
GeneralRe: Return value of a MFC Dialog Box Applicatin.. Pin
Member 383463011-Aug-09 4:04
Member 383463011-Aug-09 4:04 
GeneralRe: Return value of a MFC Dialog Box Applicatin.. Pin
CPallini11-Aug-09 4:49
mveCPallini11-Aug-09 4:49 
AnswerRe: Return value of a MFC Dialog Box Applicatin.. Pin
wmallory11-Aug-09 5:50
wmallory11-Aug-09 5:50 
GeneralRe: Return value of a MFC Dialog Box Applicatin.. Pin
Member 383463011-Aug-09 23:11
Member 383463011-Aug-09 23:11 
QuestionHide the appliation on startup without flickering Pin
Deepak.Prahlad11-Aug-09 0:56
Deepak.Prahlad11-Aug-09 0:56 
I have an application which minimises to tray on start-up. I achieved this by a call to <pre>OnSysCommand(SC_MINIMIZE, 0);</pre> by posting a message in <pre>OnInitDialog()</pre>. But the dialog appears for a fraction of a second. In order to avoid the flicker I used the below code from CP. But it does not work as expected.

I found that when the "m_bFirstShowWindow = false" is commented out the window is not showing up and works as expected. But in that case I could not restore the window from the Tray. What is wrong in my logic?

I am using VS2005

<pre>
void CTestDlg::OnWindowPosChanging ( WINDOWPOS* lpwndpos )
{
            CDialog::OnWindowPosChanging(lpwndpos);    
            if ( lpwndpos-&gt;flags &amp; SWP_SHOWWINDOW )
     {
          if ( m_bFirstShowWindow )
          {
               m_bFirstShowWindow = false;
               lpwndpos-&gt;flags &amp;= ~SWP_SHOWWINDOW;
          }
     }
}</pre>
AnswerRe: Hide the appliation on startup without flickering Pin
Chandrasekharan P11-Aug-09 1:09
Chandrasekharan P11-Aug-09 1:09 
GeneralRe: Hide the appliation on startup without flickering Pin
Deepak.Prahlad11-Aug-09 1:22
Deepak.Prahlad11-Aug-09 1:22 
GeneralRe: Hide the appliation on startup without flickering Pin
Chandrasekharan P11-Aug-09 2:25
Chandrasekharan P11-Aug-09 2:25 
AnswerRe: Hide the appliation on startup without flickering Pin
Milind Mehendale18-Sep-09 2:29
Milind Mehendale18-Sep-09 2:29 
QuestionResize MainFrame to fit Child Frame Pin
vikrant kpr11-Aug-09 0:49
vikrant kpr11-Aug-09 0:49 
QuestionAudio Visualization Pin
nabeel_anchal11-Aug-09 0:25
nabeel_anchal11-Aug-09 0:25 
QuestionUsing a 3rd Party Library Pin
jBusy11-Aug-09 0:25
jBusy11-Aug-09 0:25 
AnswerRe: Using a 3rd Party Library Pin
Cedric Moonen11-Aug-09 0:52
Cedric Moonen11-Aug-09 0:52 
GeneralRe: Using a 3rd Party Library Pin
jBusy11-Aug-09 1:35
jBusy11-Aug-09 1:35 
GeneralRe: Using a 3rd Party Library Pin
Bacon Ultimate Cheeseburger11-Aug-09 14:10
Bacon Ultimate Cheeseburger11-Aug-09 14:10 
QuestionFortran 77 compiler on windows Pin
kewl.jad10-Aug-09 23:59
kewl.jad10-Aug-09 23:59 
AnswerRe: Fortran 77 compiler on windows Pin
Chandrasekharan P11-Aug-09 0:24
Chandrasekharan P11-Aug-09 0:24 
QuestionRe: Fortran 77 compiler on windows Pin
kewl.jad11-Aug-09 1:49
kewl.jad11-Aug-09 1:49 
AnswerRe: Fortran 77 compiler on windows Pin
Stuart Dootson11-Aug-09 2:39
professionalStuart Dootson11-Aug-09 2:39 
GeneralRe: Fortran 77 compiler on windows Pin
kewl.jad11-Aug-09 2:49
kewl.jad11-Aug-09 2:49 
GeneralRe: Fortran 77 compiler on windows Pin
Stuart Dootson11-Aug-09 2:59
professionalStuart Dootson11-Aug-09 2:59 
GeneralRe: Fortran 77 compiler on windows Pin
kewl.jad11-Aug-09 3:34
kewl.jad11-Aug-09 3:34 

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.