soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SNativeWnd-i.h
Go to the documentation of this file.
1/**
2 * @file SNativeWnd-i.h
3 * @brief Interface for Native Window Operations
4 * @version v1.0
5 * @author SOUI group
6 * @date 2014/08/01
7 *
8 * @details This file defines the interface for native window operations, including message handling and event arguments.
9 */
10
11 #ifndef __SNATIVEWND_I__H__
12 #define __SNATIVEWND_I__H__
13
14 #include <interface/obj-ref-i.h>
15 #include <interface/SEvtArgs-i.h>
17 SNSBEGIN
18
19 /**
20 * @typedef FunMsgHandler
21 * @brief Function pointer type for message handlers.
22 *
23 * @details This function pointer type is used to define custom message handlers for native windows.
24 *
25 * @param pMsg Pointer to the message structure.
26 * @param pRes Pointer to the result of the message processing.
27 * @param ctx Context pointer for the message handler.
28 * @return BOOL TRUE if the message was handled, FALSE otherwise.
29 */
30 typedef BOOL (*FunMsgHandler)(const LPMSG pMsg, LRESULT *pRes, void *ctx);
31
32 /**
33 * @struct MsgHandlerInfo
34 * @brief Structure containing message handler information.
35 *
36 * @details This structure holds the function pointer and context for a message handler.
37 */
38 typedef struct _MsgHandlerInfo
39 {
40 FunMsgHandler fun; //!< Function pointer to the message handler.
41 void *ctx; //!< Context pointer for the message handler.
43
44 /**
45 * @interface INativeWnd
46 * @brief Interface for Native Window Operations
47 *
48 * @details This interface defines the methods for managing native windows, including message handling and event arguments.
49 */
50 #undef INTERFACE
51 #define INTERFACE INativeWnd
52 DECLARE_INTERFACE_(INativeWnd, IObjRef){
53 #include "SNativeWndApi.h"
54 };
55
56 SNSEND
57 #endif // __SNATIVEWND_I__H__
Interface for Native Window Operations.
Interface for reference counting.
Definition obj-ref-i.h:19
Structure containing message handler information.