Windows handles (HWND) are assigned by Windows when the window or control is created. No program can set the HWND of a window or control. The HWND is how Windows identifies each window or control, so *each window or control must have a unique HWND*. Just as each house or business must have a unique address to ensure the mail gets to the right place. By the way, the best way to get an answer to a question is to post the question on sourceforge. Many people will be not very happy if you are sending them unsolicited help requests. Posting of sourceforge means you can carry on a conversation more easily than through email as well.
On Thu, Mar 28, 2019 at 11:55 AM Procházka Lukáš Ing. <l...@pontex.cz> wrote: > Hello, > > I have a third party app which provides the WinAPI HWND (written in C) to > Lua as a number or as a string, e.g.: > > C: HWND hwnd = 0x12345678 > Lua: local hwnd_n = 305419896 -- "number" > local hwnd_s = "0x12345678" -- "string" > > wxLua: How do I obtain/create a Lua 'wxWindow' (or whatever 'wx' object) > which would "work" with HWND of value of 'hwnd'? > > Best regards, > > Lukas > > > > _______________________________________________ > wxlua-users mailing list > wxlua-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wxlua-users >
_______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users