Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

a question on EndPaint

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
friends,

what happens if we dont call EndPaint(HWND,PS*)

eg

case WM_PAINT:
BeginPaint(hwnd,&ps);
return 0;

case .....


hawapani

 
I'm guessing, but I assume it would cause a memory leak if you don't call EndPaint after each call to BeginPaint, and if your window client area is being updated frequently (as it probably will be) that's going to have quite a big impact on resources. Phil
 
That was my guess also but i am not sure
about other implications.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top