|
![]() |
| Latest News : | Date: | Bookmark |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Routine | Explanation |
Basic
functions |
|
| WM_CreateWindow() | Creates a window. |
| WM_CreateWindowAsChild() | Creates a child window. |
| WM_DeleteWindow() | Deletes a window. |
| WM_Exec() | Redraws invalid windows by executing callbacks (all jobs). |
| WM_Exec1() | Redraws one invalid windows by executing one callbacks (one job only). |
| WM_GetClientRect() | Returns the size of the active window. |
| WM_GetClientRectEX() | Returns the size of a window. |
| WM_GetDesktopWindow() | Returns the window handle of the desktop window |
| WM_GetDesktopWindowEX() | Returns the window handle of the specified desktop window |
| WM_GetDialogItem() | Returns the window handle of a dialog box item (widget). |
| WM_GetOrgX() | Returns the origin in X of the active window. |
| WM_GetOrgY() | Returns the origin in Y of the active window. |
| WM_GetWindowOrgX() | Returns the origin in X of a window. |
| WM_GetWindowOrgY() | Returns the origin in Y of a window. |
| WM_GetWindowRect() | Returns the screen coordinates of the active window. |
| WM_GetWindowRectEx() | Returns the screen coordinates of a window. |
| WM_GetWindowSizeX() | Returns the horizontal size (width) of a window. |
| WM_GetWindowSizeY() | Returns the vertical size (height) of a window. |
| WM_HideWindow() | Makes a window invisible. |
| WM_InvalidateArea() | Invalidates a certain section of the display. |
| WM_InvalidateRect() | Invalidates part of a window. |
| WM_InvalidateWindow() | Invalidate a window. |
| WM_MoveChildTo() | Sets the position of a window in window coordinates. |
| WM_MoveTo() | Sets the position of a window. |
| WM_MoveWindow() | Movse a window to another position. |
| WM_Paint() | Draws or redraw a window immediately. |
| WM_ResizeWindow() | Changes window size. |
| WM_SelectWindow() | Sets the active window to be used for for drawing operations. |
| WM_SetSize() | Sets the new size of a window. |
| WM_SetXSize() | Sets the new X-size of a window. |
| WM_SetYSize() | Sets the new Y-size of a window. |
| WM_ShowWindow() | Makes a window visible. |
| WM_Update() | Draws the invalid part of the given window. |
Advanced
functions |
|
| WM_Activate() | Activate the window manager. |
| WM_AttachWindow() | Attaches a window to a new parent window. |
| WM_AttachWindowAt() | Attaches a window to a new parent window at the given position. |
| WM_BroadcastMessage() | Sends a message to all existing windows. |
| WM_BringToBottom() | Place a window behind its siblings. |
| WM_BringToTop() | Places a window in front of its siblings. |
| WM_ClrHasTrans() | Clears the has transparency flag. |
| WM_Deactivate() | Deactivates the window manager. |
| WM_DefaultProc () | Default routine to handle messages. |
| WM_DetachWindow() | Detaches a window from its parent window. |
| WM_DisableWindow() | Sets the widget state to disabled. |
| WM_EnableWindow() | Sets the window state to enabled (default). |
| WM_ForEachDesc() | Iterates over all descendants of a window. |
| WM_GetActiveWindow() | Returns handle of the active window. |
| WM_GetDesktopWindow() | Returns handle of the desktop window. |
| WM_GetFirstChild() | Returns handle of a window's first child window. |
| WM_GetFocussedWindow() | Returns the handle of the window with the input focus. |
| WM_GetHasTrans() | Returns current value of the has transparency flag. |
| WM_GetInvalidRect() | Returns the invalid rectangle of the given window. |
| WM_GetNextSibling() | Returns handle of a windowTs next sibling. |
| WM_GetParent() | Returns handle of a windowTs parent window. |
| WM_GetPrevSibling() | Returns the handle of a window's previous sibling. |
| WM_GetStayOnTop() | Returns current value of the stay on top flag. |
| WM_GetUserData() | Retrieves the user data of a window. |
| WM_HasCaptured() | Checks if the given window has captured mouse- and touch screen input. |
| WM_HasFocus() | Checks if the given window has the input focus. |
| WM_IsCompletelyVisible() | Checks if a window is completely visible or not. |
| WM_IsEnabled() | Returns if a window is enabled or not. |
| WM_IsWindow() | Determines whether a specified handle is a valid window handle. |
| WM_MakeModal() | Changes the window to a 'modal' window. |
| WM_NotifyParent() | WM_NotifyParent() Sends a WM_NOTIFY_PARENT message to the parent of the given window. |
| WM_PaintWindowAndDescs() | Draws a given window and all descendant windows immediately. |
| WM_ReleaseCapture() | Stops capturing mouse- and touch screen-input. |
| WM_SendMessage() | Sends a message to a window. |
| WM_SendToParent() | WM_SendToParent() Sends the given message to the parent window of the given window. |
| WM_SetDesktopColor() | Sets desktop window color. |
| WM_SetCallback() | Sets the callback routine for a window. |
| WM_SetCapture() | Starts capturing mouse- and touch screen-input. |
| WM_SetCreateFlags() | Sets the flags to be used as default when creating new windows |
| WM_SetFocus() | Sets input focus to a specified window. |
| WM_SetHasTrans() | Sets the has transparency flag. |
| WM_SetId() | Sends a WM_SET_ID message to the given window. |
| WM_SetpfPollPID() | Sets a function to be called by the WM for polling the PID. |
| WM_SetStayOnTop() | Sets the stay on top flag. |
| WM_SetTransState() | Sets or clears the WM_CF_HASTRANS and WM_CF_CONST_OUTLINE flags. |
| WM_SetUserClipRect() | Temporarily reduces the clipping area. |
| WM_SetUserData() | Sets the user data of the given window. |
| WM_UpdateWindowAndDescs() | Draws the invalid part of a given window and the invalid part of all descendant windows. |
| WM_ValidateRect() | Validates parts of a window. |
| WM_ValidateWindow() | Validates a window. |
Memory
device support (optional) |
|
| WM_DisableMemdev() | Disable usage of memory devices for redrawing. |
| WM_EnableMemdev() | Enable usage of memory devices for redrawing. |
Widget
related functions |
|
| WM_GetClientWindow() | Returns the handle of the client window. |
| WM_GetId() | Returns the ID of a widget. |
| WM_GetInsideRect() | Returns the size of the active window less the border. |
| WM_GetInsideRectEx() | Returns the size of a window less the border. |
| WM_GetScrollState() | Gets the state of a scroll bar widget. |
| WM_SetScrollState() | Sets the state of a scroll bar widget. |
The WM may be used with or without callback routines. In most cases, using call- backs is preferable.
The idea behind the callback mechanism that emWin offers for windows and window objects (widgets) is that of an event-driven system. As in most windowing systems, the principle is that the flow of control is not just from the user program to the graphic system, but also from the user program to the graphic system and back up to the user program by means of the callback routines provided by the user program. This mechanism -- often characterized as the Hollywood principle ("Don't call us, we'll call you!") -- is needed by the window manager mainly in order to trigger the redrawing of windows. This contrasts with classical programming, but it makes it possible to exploit the invalidation logic of the window manager.
You do not have to use callback routines, but in doing so, the WM loses the ability to manage redrawing (updating) of the windows. It is also possible to mix; for example, having some windows use callbacks and others not. However, if a window does not use the callback mechanism, your application is responsible for updating its contents.
Return to main emWin page...
You can download an evaluation
version of emWin from our Literature/Download section....
Abatron | Adeneo
Embedded | ADI
Engineering | Blackhawk | Corelis | Domain
Technologies | e-con
Systems
EMA
TimingDesigner | Embedded
Planet | Entrek | EPI/Mentor |
FlatOak |
Intel
Software | IntervalZero
Microcross | Microsoft
Embedded | Segger | Signum | Sophia | SwiftModule | Tasking | TRITON
Modules
Products
by Processor | Products
by Supplier | Boards & Modules
| Segger News |
| NEWS: Tools |
| 30-day free evaluation |
| Literature Centre |
|
| << Backward | Forward >> | Top of Page |
|
Copyright
© 2001 -
Direct Insight Ltd |