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   | 
		 
		
			
				
				
				  | 
					
						  
						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?
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
  
 
	
	  | 
	 | 
	
		Having my HWND and eating it, too...
		
	 | 
 
	  | 
	 | 
	
		Re: Having my HWND and eating it, too...
		By:  Oblivion on Wed, 10 October 2007 21:56  
	 | 
 
	  | 
	 | 
	
		Re: Having my HWND and eating it, too...
		
	 | 
 
	  | 
	 | 
	
		Re: Having my HWND and eating it, too...
		By:  Oblivion on Wed, 10 October 2007 22:31  
	 | 
 
	  | 
	 | 
	
		Re: Having my HWND and eating it, too...
		
	 | 
 
	  | 
	 | 
	
		Re: Having my HWND and eating it, too...
		By:  Oblivion on Wed, 10 October 2007 22:50  
	 | 
 
	  | 
	 | 
	
		Re: Having my HWND and eating it, too...
		
	 | 
 
	  | 
	 | 
	
		Re: Having my HWND and eating it, too...
		By:  Oblivion on Wed, 10 October 2007 23:11  
	 | 
 
	  | 
	 | 
	
		Re: Having my HWND and eating it, too...
		
	 | 
 
	  | 
	  | 
	
		Re: Having my HWND and eating it, too...
		
	 | 
 
	  | 
	 | 
	
		Re: Having my HWND and eating it, too...
		By:  mirek on Fri, 12 October 2007 00:09  
	 | 
  
Goto Forum:
 
 Current Time: Tue Nov 04 08:27:59 CET 2025 
 Total time taken to generate the page: 0.05321 seconds 
 |