|
|
|
|
|
|
|
|
|
|
|
Is an alias of SendMessage for MiniGUI-Processes and MiniGUI-Standalone.
|
|
|
The message structure.
|
|
||||||||||||||||
|
Broadcasts a message to all main window on the desktop. This function posts the message specified by (iMsg, wParam, lParam) to all the main windows on the desktop.
|
|
|
Dispatches a message to the window's callback procedure. This function dispatches the message pointed to by pMsg to the target window's callback procedure.
/* * A typical message loop. */ MSG Msg; MAINWINCREATE CreateInfo; HWND hMainWnd; InitCreateInfo (&CreateInfo); hMainWnd = CreateMainWindow (&CreateInfo); if (hMainWnd == HWND_INVALID) return -1; while (GetMessage (&Msg, hMainWnd)) { TranslateMessage (&Msg); DispatchMessage (&Msg); } |
|
|
Empties a message queue. This function empties the message queue of the main window hWnd.
|
|
||||||||||||
|
Gets a message from the message queue of a main window. This function gets a message from the message queue of the main window hMainWnd, and returns until there is a message in the message queue.
/* * A typical message loop. */ MSG Msg; MAINWINCREATE CreateInfo; HWND hMainWnd; InitCreateInfo (&CreateInfo); hMainWnd = CreateMainWindow (&CreateInfo); if (hMainWnd == HWND_INVALID) return -1; while (GetMessage (&Msg, hMainWnd)) { TranslateMessage (&Msg); DispatchMessage (&Msg); } |
|
|
Checks if there is any pending message in the message queue of a main window. This function checks whether there is any pending message in the message queue of the main window hMainWnd.
|
|
|
Translates a message identifier to the message string. This function returns the message string of the message identifier message. E.g. this function will return the string of "MSG_CHAR" for MSG_CHAR message.
|
|
||||||||||||||||||||||||
|
Peeks a message from the message queue of a main window. This functions peek a message from the message queue of the window hWnd and returns immediatly. Unlike GetMessage, this function does not wait for a message.
|
|
||||||||||||||||||||||||||||
|
Peeks a message from the message queue of a main window. This functions peek a message from the message queue of the window hWnd; if bWait is TRUE, it will wait for the message, else return immediatly.
|
|
||||||||||||||||||||||||
|
Peeks a post message from the message queue of a main window. This functions peek a message from the message queue of the window hWnd and returns immediatly. Unlike PeekMessage, this function only peek a post message.
|
|
||||||||||||||||||||
|
Posts a message into the message queue of a window and returns immediatly. This functions posts a message into the message queue of the window hWnd and returns immediately.
|
|
|
Puts a MSG_QUIT message into the message queue of a main window. This function puts a MSG_QUIT message into the message queue of the main window hWnd. The next call to GetMessage will return 0.
|
|
||||||||||||||||||||||||
|
Prints a message in readable string form to a stdio stream. This function prints the message specified by (iMsg, wParam, lParam) in readable string form to the stdio stream fp.
|
|
||||||||||||||||||||
|
Sends a message to the active window in layer. This function sends the message specified by (iMsg, wParam, lParam) to the current active window in the specific layer (layer).
|
|
||||||||||||
|
Sends a message to a client. This function sends a message to the specified client cli.
|
|
||||||||||||||||
|
Sends a message to all clients in the topmost layer. This function sends the message specified by (iMsg, wParam, lParam) to all clients in the topmost layer.
|
|
||||||||||||||||||||
|
Sends a message to a window. This function sends a message to the window hWnd, and will return until the message-handling process returns.
|
|
||||||||||||||||||||
|
Sends a notification message to a window. This function sends the notification message specified by (iMsg, wParam, lParam) to the window hWnd. This function puts the notication message in the message queue and then returns immediately.
|
|
||||||||||||||||||||
|
Sets the auto-repeat message. This function sets the auto-repeat message. When the default message procedure receives an MSG_IDLE message, the default handler will send the auto-repeat message to the target window as a notification message.
|
|
|
Sets a new keyboard layout. This function sets the keymaps to translate key scancodes to MSG_CHAR or MSG_KEYSYM messages. The default keymaps is for US PC keyboard layout, you can call this function to set a different keyboard layout. The argument of kbd_layout specifies the name of the keyboard layout.
|
|
|
Removes all messages in the message queue associated with a window. This function removes all messages which are associated with the specified window pMainWnd.
|
|
||||||||||||||||||||
|
Translates a key down and key up message to a corresponding character. This function translates a key down and key up message to a character. If the message is not a key message, this function does nothing. The behavior of this function is inflected by the current keyboard layout. The default keyboard layout is US PC keyboard, but you can call SetKeyboardLayout function to set a different keyboard layout.
|
|
|
Translates key down and key up messages to MSG_CHAR message and post it into the message queue. This function translates key down and key up message to an MSG_CHAR message or some MSG_KEYSYM messages, and send the message(s) to the window procedure as a notification message. If the message is not a key message, this function does nothing. The behavior of this function is inflected by the current keyboard layout. The default keyboard layout is US PC keyboard, but you can call SetKeyboardLayout function to set a different keyboard layout.
|
|
||||||||||||
|
Waits for a message from the message queue of a main window. This function waits for a message from the message queue of the main window hMainWnd, and returns until there is a message in the message queue. Unlike GetMessage, this function does not remove the message from the message queue.
|
1.4.2