![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Глюк при постановке в очередь печати. [D5, WinXP]
Artemius © (2004-10-26 10:22:00)Доброго денечка! Такое дело: написал програмку, которая регистрирует отправку пользователем на печать чего-либо. На Windows 98, 2000, Ме все пучком. А вот на XP... 8-( Такое ощущение, что событие постановки на печать просто не генерится!!! 8-))) Может, кто сталкивался? Вот код:
......
procedure WM_SpoolerStatus(var Msg : TWMSPOOLERSTATUS); message WM_SPOOLERSTATUS;
......
procedure TForm1.WM_SpoolerStatus(var Msg : TWMSPOOLERSTATUS);
begin
// мы поймали факт изменения очереди печати
// пусть себе печатает... пока :)
msg.Result := 0;
// просто зарегистрируем факт
EnumActiveJobs;
end;
......
simpson (2004-10-26 14:24:00) [1]Взято из MSDN:
Remarks
This message is for informational purposes only. This message is advisory and does not have guaranteed delivery semantics.Applications should not assume that they will receive a WM_SPOOLERSTATUS message for every change in spooler status.
Note The WM_SPOOLERSTATUS message is not supported after Windows XP.To be notified of changes to the print queue status, use FindFirstPrinterChangeNotification and FindNextPrinterChangeNotification. The following code outlines how this might be done.