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

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -