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
Post a Comment