|
-
Sep 27th, 2001, 03:39 AM
#1
Thread Starter
Hyperactive Member
ok got the WM_PAINT msg handled
Ok now everything updates smoothly and stays where its supposed to, but now i have another problem. I have created a simple function that bitblts my titlebar, my main form and my buttons. I have put this function in the WM_PAINT and the bitblt works fine and system resources aren't being used, but i also have another function in the WM_LBUTTONDOWN that checks the mouse coord, and if within a specified region will respond accordingly. Lets say that i have a button thats my rewind button, the mouse is clicked and its within the specified region for the rewind button my function in the WM_LBUTTONDOWN msg will call bitblt and blit the down image to the form... the problem is that the image does not show.... i was thinking its because of the WM_PAINT message that draws over the image before i can see it, so what i did was declare (bool Is_Btn_Down , then in my rewind function, i set (Is_Btn_Down = TRUE), then in my WM_PAINT function i check if (Is_Btn_Down = TRUE) or (FALSE), if it = TRUE then i bitblt the down button image and if its FALSE it should bitblt the UP button image. the problem is that the WM_PAINT message doesn't update the window unless it is moved offscreen, minimized or covered by another window. So i click my rewind button, it seems that nothing happens, but if i minimize the app and restore it, i see my down state rewind button, so this tells me that my functions are working properly but WM_PAINT isn't updating, how do i send a WM_PAINT message or something to my main window, I've tried UpdateWindow but it didn't work. is there something else..
Thanx for any input 
AAG
This Business Is Binary. Your a 1 or a 0. Alive or Dead. (AntiTrust)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|