Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Having my HWND and eating it, too...
Having my HWND and eating it, too... [message #12095] Wed, 10 October 2007 21:29 Go to previous message
tvanriper is currently offline  tvanriper
Messages: 85
Registered: September 2007
Location: Germantown, MD, USA
Member
I have a problem.

I'm not using an OCX control. I'm not using OLE or COM in any form for this. I have a function to a third-party library that takes a HWND as its argument.

The HWND needs to represent an area within a TopWindow to which the third-party library may render whatever it wants.

I created a custom class derived from Ctrl, but quickly discovered that Ctrl objects do not have their own HWNDs.

So, I tried creating deriving the class from TopWindow instead, after noticing all the happy fun function for creating HWNDs there. However, for some reason, when I call GetHWND() against this control, I still get a null.

So I'm stumped. At the moment, I am not sure how I should create this window. I've tried some other things, but they lead to assertions.

Does anyone have anything to suggest?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon3.gif
Read Message
Previous Topic: Toolbar clears after ESC key [solved, it`s the bug in user code]
Next Topic: label text not wrapped
Goto Forum:
  


Current Time: Mon Apr 29 10:20:18 CEST 2024

Total time taken to generate the page: 0.02300 seconds