GetDC
Retrieves a device context for the client area.
DeviceContext GetDC( )
Identifies the device context for the window client area if successful; otherwise, the return value is NULL.
EX1
int Window_GetDC_ex1(bool bX = true) { WorksheetPage MyDlg = Project.WorksheetPages(0); DeviceContext dc = MyDlg.GetWindow().GetDC(); return dc.GetDeviceCaps(bX? LOGPIXELSX : LOGPIXELSY); }
origin.h