Silly questions about Hwnd and HDC

Chris January chris at
Sat Nov 6 14:46:36 CET 2004

> To create Context's for rendering, I need to have a valid HDC 
> value. To get the HDC -value (HDC = handle device context for 
> GDI), which can 
> be obtained by:
> GetDC(WinID), where the WinId can be collected from winId = 
> ((QWidget*)d->paintDevice)->winId(), or can be set to NULL. I've 
> experienced HDC values to 345432, and so on.

Much simpler simply to use




More information about the kde-cygwin mailing list