Click here to Skip to main content
15,888,461 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: about pthread.h Pin
Richard MacCutchan19-Oct-10 0:26
mveRichard MacCutchan19-Oct-10 0:26 
Questionproblem Pin
samosato12-Oct-10 9:57
samosato12-Oct-10 9:57 
AnswerRe: problem Pin
Nuri Ismail12-Oct-10 21:55
Nuri Ismail12-Oct-10 21:55 
AnswerRe: problem Pin
Richard MacCutchan12-Oct-10 22:38
mveRichard MacCutchan12-Oct-10 22:38 
AnswerRe: problem [modified] Pin
Alain Rist13-Oct-10 4:52
Alain Rist13-Oct-10 4:52 
QuestionFire connection point event from ATL Service Pin
pratik_mishra3511-Oct-10 2:17
pratik_mishra3511-Oct-10 2:17 
Questionhow show the tooltip in each platform(vb,c#) Pin
765studio@gmail.com8-Oct-10 20:35
765studio@gmail.com8-Oct-10 20:35 
QuestionProblems to print Pin
Dansveen7-Oct-10 11:42
Dansveen7-Oct-10 11:42 
Hi All

I have problems to send print in my application.
If I send print and if I change my view before ready to print, all commands will be cancelled.
I send direct to print, print setup is not showed, the view can be closed, and OpenDocumentFile doesn't show this view if command is print;
My application needs fill a graph, reading from a database, while not read all data he is not ready to print, I have a flag to do this.
See my code:
//if the document was found, try to print it
        if(pDoc!=NULL)
        {
            //if document is ready for printing, print it now
            dwTick=::GetTickCount();
            nPrintWindowTimeout=5;
            if(nPrintWindowTimeout<0)
                nPrintWindowTimeout=0;
            dwWaitLimit=(DWORD)nPrintWindowTimeout*1000;
            if(pDoc->IsReadyForPrintWindow() || (dwTick < item.m_dwTickStart || dwTick - item.m_dwTickStart > dwWaitLimit) )
            {
                //remove screen from the queue
                m_arPrintQueue.RemoveAt(0);
                //print
                pDoc->SetPrinting(TRUE);
                if (pDoc->GetView()) 
                {
                    if (item.m_bPrintSetup == TRUE)
                        pDoc->GetView()->SendMessage(WM_COMMAND, ID_FILE_PRINT_SETUP);
                    else
// But if I change my view this is never executed, the message queue is not keeping this in another view
// This is sended in a CView, not in MainFrame, my derived CView process WM_COMMAND
                        pDoc->GetView()->SendMessage(WM_COMMAND, ID_FILE_PRINT);
                }
                pDoc->SetPrinting(FALSE);
                pDoc->OnCloseDocument();
            }
        }
    }


Somebody, can help me?
Thank you
QuestionWhy normal virtual function required blank body in base class Pin
am 20096-Oct-10 2:22
am 20096-Oct-10 2:22 
AnswerRe: Why normal virtual function required blank body in base class Pin
Alain Rist6-Oct-10 3:13
Alain Rist6-Oct-10 3:13 
QuestionEnable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
karuuzo5-Oct-10 6:58
karuuzo5-Oct-10 6:58 
AnswerRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
Alain Rist5-Oct-10 21:16
Alain Rist5-Oct-10 21:16 
GeneralRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
karuuzo6-Oct-10 1:13
karuuzo6-Oct-10 1:13 
GeneralRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
Alain Rist6-Oct-10 2:09
Alain Rist6-Oct-10 2:09 
GeneralRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
karuuzo6-Oct-10 3:48
karuuzo6-Oct-10 3:48 
AnswerRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
Alain Rist6-Oct-10 4:19
Alain Rist6-Oct-10 4:19 
GeneralRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
karuuzo6-Oct-10 5:14
karuuzo6-Oct-10 5:14 
AnswerRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
Alain Rist6-Oct-10 5:23
Alain Rist6-Oct-10 5:23 
GeneralRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
Richard MacCutchan6-Oct-10 4:03
mveRichard MacCutchan6-Oct-10 4:03 
GeneralRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
karuuzo6-Oct-10 4:12
karuuzo6-Oct-10 4:12 
GeneralRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
Richard MacCutchan6-Oct-10 5:02
mveRichard MacCutchan6-Oct-10 5:02 
GeneralRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
karuuzo6-Oct-10 5:23
karuuzo6-Oct-10 5:23 
QuestionRegarding Tools Pin
Anil Kumar.Arvapalli3-Oct-10 21:16
Anil Kumar.Arvapalli3-Oct-10 21:16 
AnswerRe: Regarding Tools Pin
LunaticFringe4-Oct-10 12:28
LunaticFringe4-Oct-10 12:28 
AnswerRe: Regarding Tools Pin
federico.strati5-Oct-10 3:19
federico.strati5-Oct-10 3:19 

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.