Advertisement

yet another win32 question

Started by March 16, 2000 07:14 AM
1 comment, last by Aztec 24 years, 6 months ago
so, what exactly is the point of PAINTSTRUCT ? i''ve been messing around with some sample applications in an attempt to learn win32 programming ( i''m getting the basics fairly well, for the most part ). I ran across that, typed in the sample code, but i don''t paticularly understand it all that well. also, is there any place i can go to see a listing of the more commonly used functions for windows programming?
"This information can be used to paint the client area of a window owned by that application. " - MSDN

All client window painting has to go between BeginPaint and EndPaint. PAINTSTRUCT * is a necessary argument for these calls and the data returned in the PAINTSTRUCT can be used for drawing the client area.

However, the only thing I would use from it is the HDC member, but I generally get that as the return value from BeginPaint(...).

I don''t know about "commonly used" functions, but microsofts site would be a good starting point.

HTH,

-mordell


__________________________________________

Yeah, sure... we are laughing WITH you ...
Advertisement
The PAINTSTRUCT is used by Windows to know which part of a window to repaint (the invalid rect), the clipping region for a particular operation and a few other internals.

As to your other question, I believe that anyone who plans to do a fair amount of Windows programming should have a good book on the subject. There''s just too much to learn and the help documentation in MSDN is often rather vague on some points. Programming Windows by Charles Petzold is excellent. Buy it! Once you get comfortable with the API, you''ll use it frequently as a reference (in addition to MSDN).

This topic is closed to new replies.

Advertisement