|
Configuring Compressors and Decompressors
The following example uses the ICQueryConfigure macro to demonstrate how to test whether a compressor supports the
configuration dialog box and to display it if it does.
// If the compressor handles a configuration dialog box, display it
// using our application window as the parent window.
if (ICQueryConfigure(hIC)) ICConfigure(hIC, hwndApp);
The following example shows how to obtain the state data using the ICGetState macro.
dwStateSize = ICGetStateSize(hIC); // gets size of buffer required
h = GlobalAlloc(GHND, dwStateSize); // allocates buffer
ICGetState(hIC, (LPVOID)lpData, dwStateSize); // gets the state data
// Store the state data as required.
The following example shows how to restore state data using the ICSetState macro. State data restored by applications should not contain any changes to
the state data obtained from a driver.
ICSetState(hIC, (LPVOID)lpData, dwStateSize); // sets new state data
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|