[wxlua-users] How to obtain/create wxWindow from HWND?

2019-03-28 Thread Procházka Lukáš Ing .
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 'w

Re: [wxlua-users] How to obtain/create wxWindow from HWND?

2019-03-28 Thread David Kenny
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 uniq