i think i have to set the m_hWnd with get_HWND?
the datatypes are different. How do i have to convert them?

osg::WIN32WindowsBase::setHwnd(const HWND & Value);

HRESULT STDMETHODCALLTYPE get_HWND(
   LONG_PTR* phWnd
);

how do i test if m_hWnd ist valid?
I am not so familar with the win32api.

Patrik Mueller schrieb:
> Hm...
>
> it seems the control is dervied from CWindow (from ATL documentation)...
> And CWindow has a m_hWnd. So you could check if the handle is valid.
>
> Daniel Zuidinga schrieb:
>   
>> Patrik Mueller schrieb:
>>     
>>> Hi,
>>>
>>> are this->m_hWnd (a real HWND) and m_hDC valid ?
>>> you use hdc and m_hDC...
>>>
>>>   
>>>       
>> m_hDC should be valid. I get the hdc from the ATL-control drawing method.
>>
>> I am not sure at the m_hWnd. It points to the ATL-Control-Class. This 
>> isn´t a window?!?
>> An ATL-Control doesn´t  have a window?
>>
>> I created the ATL-Control following this tutorial: 
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_atl_ATL_Tutorial.asp
>> and i modified the the OnDraw-method, where at the first draw my 
>> initialisation goes.
>>
>>
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> Opensg-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/opensg-users
>>     
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>   




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to