Advertisement

What WM_ message am i missing????

Started by February 14, 2000 05:49 PM
3 comments, last by Enix 24 years, 10 months ago
None of my windows are drawn when they first appear. ive tried sending the WM_PAINT message to all of my new windows, but this does not help. The windows are drawn fine once they are resized though. im cleary missing some message here, anyone know what message this might be?
Well, hmm. WM_PAINT is pretty low priority. Is it possible it''s getting stuck in your queue someplace, due to timer messages or something? And are you sure WM_PAINT is being sent and set up right? (WM_SIZING internally calls the paint routine)

-fel
~ The opinions stated by this individual are the opinions of this individual and not the opinions of her company, any organization she might be part of, her parrot, or anyone else. ~
Advertisement
Call InvalidateRect(...); instead of posting a WM_PAINT message when you want windows to redraw your window.

//Peter
Are you calling UpdateWindow() and ShowWindow() in your WinMain() ? i think you wont see anything until youve done this.
You creating the window with the WS_VISIBLE style?
Hope this helps

http://www.positech.co.uk
Cliffski is right. Your window is invalid until you call UpdateWindow or use the WS_VISIBLE style which validates it automatically.

Still Learning...
Still Learning...

This topic is closed to new replies.

Advertisement