Scalabium Software |
|
| Knowledge for your independence. | |
|
If you need detect how many jobs are in the MS Windows print
spooler, then you must handle a WM_SPOOLERSTATUS message. When
job is added or deleted in the spooler querue, this message will
be broadcast. type
TyourForm = class(TForm)
private
{ Private declarations }
procedure WMSpoolerStatus(var Msg: TWMSpoolerStatus);
message WM_SPOOLERSTATUS;
public
{ Public declarations }
end;
implementation
{$R *.DFM}
procedure TyourForm.WMSpoolerStatus(var Msg: TWMSpoolerStatus);
begin
ShowMessage('Now in the spooler a ' + IntToStr(msg.JobsLeft) + ' jobs';
msg.Result := 0;
end;
|
|
||||||||||||||||||||||||||||||||||||
![]() |
Copyrightc 1998-2008, Scalabium
Software. All rights reserved. |
November 26, 1999 |