Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPBufferDC m_hDC is NULL
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPBufferDC m_hDC is NULL

 Post Reply Post Reply
Author
Message
blueseaing View Drop Down
Groupie
Groupie


Joined: 14 June 2004
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote blueseaing Quote  Post ReplyReply Direct Link To This Post Topic: CXTPBufferDC m_hDC is NULL
    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);

}

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.062 seconds.