Jump to content

MMProgRef - Secondary Window Functions

From EDM2

Reprint Courtesy of International Business Machines Corporation, © International Business Machines Corporation

Multimedia Programming Reference
  1. Introduction
  2. What's New...
  3. MCI Functions
  4. High-Level Macro Service Functions
  5. Subsystem Messages
  6. Notification Messages
  7. MCI Command Messages
  8. String Commands
  9. Memory Playlist Commands
  10. Graphic Button Control
  11. Secondary Window Functions
  12. MMIO Functions
  13. MMIO Messages
  14. CODEC Messages
  15. DIVE Functions
  16. Real-Time MIDI Functions
  17. SPI Functions
  18. Data Stream State Table
  19. SMH Messages
  20. DDCMD Messages
  21. VSD Commands
  22. SHD Messages
  23. SHC Messages
  24. Data Types
  25. Types of MIDI Messages
  26. Multimedia Specification Overview
  27. Resource Interchange File Format
  28. Multimedia File Formats
  29. RIFF Compound Files and Elements - Sharing and Access
  30. Return Codes
  31. Notices
  32. Glossary

The secondary window manager provides all the capability of a standard dialog window, but it permits the window to be sizable and automatically formats the window and manages the scroll bars.

The functions that manipulate and control the secondary window are designed to convert easily from the standard dialog manager.

This section describes the secondary window functions and data structures.

Secondary Window Functions

The following table lists the secondary window functions:

Function Description
WinCreateSecondaryWindow Creates a secondary window from a dialog template in memory.
WinDefSecondaryWindowProc Provides the default behavior for a secondary window.
WinDefaultSize Sizes the window to its default size—the optimal size of the dialog window.
WinDestroySecondaryWindow Eliminates a secondary window.
WinDismissSecondaryWindow Causes modal WinProcessSecondaryWindow or WinSecondaryWindow calls to return.
WinInsertDefaultSize Adds the default size function to the system menu of a secondary window.
WinLoadSecondaryWindow Creates a secondary window from a dialog template in a resource.
WinProcessSecondaryWindow Processes a modal secondary window by dispatching messages while the modal window is displayed.
WinQuerySecondaryHWND Returns a window handle to various windows created as part of a secondary window.
WinSecondaryMessageBox Creates a modal window similar to WinMessageBox that can be used to display error messages and ask questions.
WinSecondaryWindow Loads and processes a modal secondary window and returns the result value established by WinDismissSecondaryWindow.