Click here to Skip to main content
15,908,444 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to set a PDF fields? Pin
Bacon Ultimate Cheeseburger11-Aug-09 14:08
Bacon Ultimate Cheeseburger11-Aug-09 14:08 
GeneralRe: How to set a PDF fields? Pin
Hadi Dayvary11-Aug-09 20:13
professionalHadi Dayvary11-Aug-09 20:13 
GeneralRe: How to set a PDF fields? Pin
Hadi Dayvary11-Aug-09 20:14
professionalHadi Dayvary11-Aug-09 20:14 
GeneralRe: How to set a PDF fields? Pin
Bacon Ultimate Cheeseburger11-Aug-09 21:36
Bacon Ultimate Cheeseburger11-Aug-09 21:36 
GeneralRe: How to set a PDF fields? Pin
ThatsAlok11-Aug-09 22:19
ThatsAlok11-Aug-09 22:19 
Questiondelete [] problem, and extra char(s) showing up in substring? Pin
Mike the Red11-Aug-09 2:11
Mike the Red11-Aug-09 2:11 
AnswerRe: delete [] problem, and extra char(s) showing up in substring? Pin
CPallini11-Aug-09 2:26
mveCPallini11-Aug-09 2:26 
GeneralDeath is in the details... Thanks pallini! -nt- Pin
Mike the Red11-Aug-09 2:31
Mike the Red11-Aug-09 2:31 
GeneralYou are welcome. Pin
CPallini11-Aug-09 2:36
mveCPallini11-Aug-09 2:36 
AnswerRe: delete [] problem, and extra char(s) showing up in substring? Pin
David Crow11-Aug-09 2:53
David Crow11-Aug-09 2:53 
AnswerRe: delete [] problem, and extra char(s) showing up in substring? Pin
Cedric Moonen11-Aug-09 3:10
Cedric Moonen11-Aug-09 3:10 
Generalomfg -or- Thank you, Cedric Pin
Mike the Red11-Aug-09 4:03
Mike the Red11-Aug-09 4:03 
QuestionFSCTL_EXTEND_VOLUME fails Pin
Madan Chauhan11-Aug-09 1:30
Madan Chauhan11-Aug-09 1:30 
QuestionReturn value of a MFC Dialog Box Applicatin.. Pin
Member 383463011-Aug-09 1:02
Member 383463011-Aug-09 1:02 
AnswerRe: Return value of a MFC Dialog Box Applicatin.. Pin
Cedric Moonen11-Aug-09 1:10
Cedric Moonen11-Aug-09 1:10 
QuestionRe: Return value of a MFC Dialog Box Applicatin.. Pin
CPallini11-Aug-09 1:49
mveCPallini11-Aug-09 1:49 
QuestionRe: Return value of a MFC Dialog Box Applicatin.. Pin
Maximilien11-Aug-09 2:39
Maximilien11-Aug-09 2:39 
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>

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.