Home » Community » Newbie corner » Using an existing win32 control.
Using an existing win32 control. [message #36644] |
Sat, 23 June 2012 12:06 |
rxantos
Messages: 72 Registered: October 2011
|
Member |
|
|
What would be the procedure of adding an existing Win32 control to an application using Ultimate++?
I'm thinking of using a class derived from Upp::Ctrl and then set control as a child window of the window of the Upp::Ctrl class. But I don't know how to make Upp::Ctrl avoid drawing its background. Nor do I know what do I need to intercept when the control is resized (so I can resize the child control).
Does anyone have an example or at least an indication on how to do it?
|
|
|
Re: Using an existing win32 control. [message #36649 is a reply to message #36644] |
Sun, 24 June 2012 06:38 |
|
Hi,
You can try to have a look at DHCtrl - it is a Ctrl derived class that allows you to access the HWND directly, so it might be the best way. I have almost no win32 programming experience, however, so I can't tell if it is even possible to run win32 control without win32 event loop.
To see how how to do the resizing and other event handling, have a look at GLCtrl. It uses DHCtrl to paint OpenGL graphics directly on U++ widget and will probably give few good hints.
Out of curiosity, what kind of control would you like to use this way? It might be actually easier to implement it in U++, or it might be even implemented by someone
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Sat May 04 15:04:36 CEST 2024
Total time taken to generate the page: 0.02427 seconds
|