mfc - Device context null in OnEraseBkgnd(CDC* pDC) handler -


i facing problem getting device context null in onerasebkgnd fucntion handler. have onerasebkgnd handler in custom tab control class inherited ctabctrl, getting same problem in drawitem(lpdrawitemstruct lpdrawitemstruct) of custom button control class inherited cbutton.

device context getting null sporadically , not always. please let me know if idea why device context have become null.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -