cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
FillRect question
FillRect question
Aug 19, 2014 at 11:44pm UTC
tec23
(39)
Why doesn't FillRect work in WM_CREATE but works in WM_PAINT?
Aug 20, 2014 at 3:55am UTC
Homberto
(126)
Because when a window is ready to be painted it sends the WM_PAINT message. The WM_CREATE is sent before the WM_PAINT message so it isn't ready at WM_CREATE.
You don't sand the tree before you cut it down.
Topic archived. No new replies allowed.