U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Widgets - General questions or Mixed problems » why the ctrl does`t have HWND?
Re: why the ctrl does`t have HWND? [message #46404 is a reply to message #46390] Thu, 05 May 2016 20:52 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1796
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hello akabee!

Sorry for replying so late, but I think there is better way to do this. Have a look at DHCtrl in CtrlCore/Win32GuiA.h (or CtrlCore/X11GuiA.h for Linux version). DHCtrl is a special Ctrl that does nothing, but has its own HWND (or Window in X11 backend). DHCtrl can be added to your layouts and manipulated just like any other widget, so you don't need to keep track of the popup and move it all the time.

I think one of the original intents behind DHCtrl was actually quite similar to your usecase: It is used for direct rendering of OpenGL in GLCtrl. You can have a look at that one too, to get some hints about DHCtrl usage.

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DropList color is the same when editable or not
Next Topic: ColumnList clipping problem
Goto Forum:
  


Current Time: Mon Sep 28 09:33:32 GMT+2 2026

Total time taken to generate the page: 0.00991 seconds