Window.registerMessageReceiver

機能/意味
Registration / deletion of message reception function
タイプ
Windowクラスのメソッド
構文
registerMessageReceiver(mode, func, userdata)
引数
mode  Specify whether to register or delete.
 Specify wrmRegister to register. Specifying wrmUnregister will delete the registration.
 Constants starting with wrm are defined in tp_stub.h.
func  Specify the message receiving function.
 The message receiving function must be of the form bool __stdcall func(void *userdata, tTVPWindowMessage *Message), and when passing to this method, the function pointer must be cast to an integer type and passed.
 The structure tTVPWindowMessage is defined in tp_stub.h.
 If this function returns true, Kirikiri will not be aware of the window message.
userdata  Specify a data pointer to be passed to the userdata argument of the receiving function specified by the func argument.
 When passing to this method, it is necessary to cast the pointer to an integer type and pass it.
 This argument is ignored if the mode argument is not wrmRegister.
戻り値
なし (void)
説明
 This method is intended to be used from plugins written in C++ etc. It cannot be used normally from TJS2.
 In this method, you can register a message receiving function to trap messages passing through this window. The message receiving function can also trap two important messages, TVP_WM_DETACH and TVP_WM_ATTACH, in addition to a normal window message, and can be used to remove child windows when windows are rebuilt or destroyed. .
 There is a simple usage explanation in src/plugins/win32/wmrdump in the Kirikiri source distribution package.
参照
Window.HWND