wxWindow and HWND

242 views
Skip to first unread message

Tim Burgess

unread,
Dec 20, 2016, 10:53:49 AM12/20/16
to wx-users

I have an HWND that I need to pass into a function that takes a wxWindow as an argument. I’ve found the wxWindow::GetHWND function, but how can I perform the cast/conversion in the other direction, please?

 

Best wishes.

 

Tim Burgess

 

Igor Korot

unread,
Dec 20, 2016, 11:11:35 AM12/20/16
to wx-u...@googlegroups.com
Hi, Tim,

On Tue, Dec 20, 2016 at 10:53 AM, Tim Burgess <t...@raisedbar.net> wrote:
> I have an HWND that I need to pass into a function that takes a wxWindow as
> an argument. I’ve found the wxWindow::GetHWND function, but how can I
> perform the cast/conversion in the other direction, please?

If you have HWND you have a window/wxWindow.

Could you clarify you situation a little?

Thank you.

>
>
>
> Best wishes.
>
>
>
> Tim Burgess
>
>
>
> --
> Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
>
> To unsubscribe, send email to wx-users+u...@googlegroups.com
> or visit http://groups.google.com/group/wx-users

Stefan Battmer

unread,
Dec 20, 2016, 11:24:16 AM12/20/16
to wx-u...@googlegroups.com
Hi Tim,

just guessing, but you might be looking for this thread:

https://forums.wxwidgets.org/viewtopic.php?t=4982

Regards,

Stefan Battmer
-----------------------------------------------------------------
Expertenwissen in Theorie & Praxis:

Bildverarbeitungstage an der Hochschule Aalen vom 21.-22.2.2017
Gleich anmelden: https://www.matrix-vision.com/workshops
-----------------------------------------------------------------

MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Uwe Furtner, Erhard Meier
Reply all
Reply to author
Forward
0 new messages