全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:2216
推到 Plurk!
推到 Facebook!

PeekMessage in AbortProc

尚未結案
Win32Fan
一般會員


發表:1
回覆:0
積分:0
註冊:2007-03-14

發送簡訊給我
#1 引用回覆 回覆 發表時間:2007-03-14 12:17:59 IP:124.200.xxx.xxx 訂閱
hello !
I am reading <Programming Windows >(Charles Petzold).
:Chapter 13 _Using the Printer.
BOOL CALLBACK AbortProc (HDC hdcPrn, int iCode)
{
     MSG   msg ;         while (PeekMessage (&msg, NULL, 0, 0, PM_REMOVE))
     {
          TranslateMessage (&msg) ;
          DispatchMessage (&msg) ;
     }
     return TRUE ;
}
The MSDN(6.0) said :
“If the iError parameter is SP_OUTOFDISK, the application need not cancel the print job. If it does not cancel the job, it must yield to Print Manager by calling the PeekMessage or GetMessage function.
I want to ask :
Why is the PeekMessage or GetMessage necessary ? What is its use in this function?
//Note: I live in the '.cn' . I worried the 'GB2312' font is supported not here. But you can answer me using your font .
------
Win32Fan
系統時間:2017-12-12 8:48:22
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!