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

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -

angular - DownloadURL return null in below code -