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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -