|
About Controls
Controls, like other windows, each belong to a window class, either predefined
or application defined. The window class and the corresponding window
procedure define the properties of the control, its appearance, behavior, and purpose.
An application can create controls individually by specifying the name of the
window class when calling the CreateWindowEx function. An application can also direct Windows to create controls for a
dialog box by specifying the controls in the dialog box template.
Controls are child windows. When Windows creates controls for a dialog box,
each control is the child of the dialog box. When an application creates a
control, the control is the child of a window identified by the application. This
relationship is important because a control sends messages, called notification messages, to its parent window when events, such as input from the user, occur in the
control. The application relies on these notification messages to determine
what action the user wants the application to take.
Because controls are windows, an application can manipulate them by using the
window-management functions, such as the ShowWindow and EnableWindow functions. If the window class for a control supports control messages, an application can also manipulate a control of that class by using the SendMessage function to send these messages to the control. The purpose and function of
each control message is specific to the window class and is defined by the
control's window procedure.
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
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.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
|