Print Page | Close Window

CXTPBufferDC m_hDC is NULL

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1437
Printed Date: 07 November 2025 at 3:22am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPBufferDC m_hDC is NULL
Posted By: blueseaing
Subject: CXTPBufferDC m_hDC is NULL
Date Posted: 21 November 2004 at 9:10pm

I find rencently ,my xtp baed app ofen occure fail , and I find the pointer of CXTPBufferDC ofen has a Nullo m_hDc, for example,


void CXTPCommandBar::OnPaint()
{
 CPaintDC paintDC(this);
 CXTPBufferDC dc(paintDC, CXTPClientRect(this));


 //========= now if(dc.m_hDC==NULL) will return TRUE============

  DrawCommandBar(&dc);

}




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net